ReefBum
Posts: 4
Joined: Wed Aug 21, 2019 10:07 pm

Pi 4 Headless?

Wed Aug 21, 2019 10:50 pm

Received new Pi4 4gb today.
Raspbian Buster Lite downloaded today and installed on 32gb SD (Pi 4 running headless)
I can reach it via SSH just fine from laptop but none of my USB drives I have tried will mount

I have been using a Pi3 B+ for a year of so as a headless little personal mail server which has been working ok but has some memory issues sometimes with only 1gb. With the Pi4 now having 4gb memory I decided to upgrade

However I'm having issues with the USB drive mounting at boot. The same drives mount fine on boot with the Pi3. Is there something I'm missing with the new Pi4 to run headless?

Regards

epoch1970
Posts: 3547
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Pi 4 Headless?

Thu Aug 22, 2019 8:10 pm

Which PSU do you use?
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

jerrm
Posts: 165
Joined: Wed May 02, 2018 7:35 pm

Re: Pi 4 Headless?

Thu Aug 22, 2019 8:34 pm

Are these USB thumb drives or SATA drives with adapters.

If drives with adapters, try the quirks setting in the sticky https://www.raspberrypi.org/forums/view ... 8&t=245931 (it's not just for speed). Pretty much any adapter was OK with USB2 on older Pis. USB3 on the Pi4 can be much pickier.

ReefBum
Posts: 4
Joined: Wed Aug 21, 2019 10:07 pm

Re: Pi 4 Headless?

Fri Aug 23, 2019 6:55 pm

PSU is raspberry official

drive is sata ssd with adapter

the same drive/adapter is working 100% on pi 3b+ buster

If I plug in hdmi monitor, it works 100% but headless it fails.

User avatar
HawaiianPi
Posts: 4530
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Pi 4 Headless?

Fri Aug 23, 2019 7:11 pm

What is the filesystem on the drive (how is it formatted)?

Which USB-SATA adapter?

If I plug in hdmi monitor, it works 100% but headless it fails.
That makes no sense to me. :? One has nothing to do with the other (AFAIK).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

User avatar
DougieLawson
Posts: 35789
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Pi 4 Headless?

Fri Aug 23, 2019 7:15 pm

Run
sudo apt update
sudo apt dist-upgrade -y
sudo reboot


That should get you the latest (beyond 2019-07-10) stable 4.19.66-v7l+ kernel and the latest stable bootcode/firmware

I recall seeing a bug somewhere on here about not booting without HDMI.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

pfletch101
Posts: 500
Joined: Sat Feb 24, 2018 4:09 am
Location: Illinois, USA

Re: Pi 4 Headless?

Fri Aug 23, 2019 8:43 pm

See Andyroo's answer when I asked the same question (https://www.raspberrypi.org/forums/view ... 7#p1506293). The added requirement for headless setup in Buster is that the default screen size has to be set for (at least) VNC to work. Both OS versions will autodetect most HDMI monitors and display a sensible screen size. In Stretch, VNC will default to a very low resolution screen if the screen size hasn't been specified, but Buster requires that one be explicitly set if there is no physical monitor plugged in.

User avatar
HawaiianPi
Posts: 4530
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Pi 4 Headless?

Fri Aug 23, 2019 9:27 pm

pfletch101 wrote:
Fri Aug 23, 2019 8:43 pm
See Andyroo's answer when I asked the same question (https://www.raspberrypi.org/forums/view ... 7#p1506293). The added requirement for headless setup in Buster is that the default screen size has to be set for (at least) VNC to work.
OP is running Lite, so no VNC.

... but Buster requires that one be explicitly set if there is no physical monitor plugged in.
DougieLawson wrote:
Fri Aug 23, 2019 7:15 pm
I recall seeing a bug somewhere on here about not booting without HDMI.
I just tried Raspbian Buster Lite 2019-07-10 on my 4B4, completely headless (nothing but power connected). Seems to be working fine for me.
  • Pi 4B 4GB in Flirc case.
  • Raspbian Buster Lite (2019-07-10-raspbian-buster-lite.zip)
  • SamSung EVO+ 32GB micro SD card (image written to card with Etcher).
  • Official Pi3 2.5A PSU with USB-C adapter.
  • Added "ssh" and "wpa_supplicant.conf" files to card.

Does that bug have anything to do with USB drives (the OP had a USB drive connected, I did not)?
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

User avatar
DougieLawson
Posts: 35789
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Pi 4 Headless?

Fri Aug 23, 2019 9:33 pm

I don't remember what I saw, it could be a figment of my warped imagination. At the moment (until the household finance director heads off on her three month trip to Australia) I'm not allowed to buy a RPi4, so I've not been paying total attention to the RPi4 threads.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
HawaiianPi
Posts: 4530
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Pi 4 Headless?

Fri Aug 23, 2019 9:56 pm

Just tried it with a USB drive connected and mounted in /etc/fstab. Still works. ¯\_(ツ)_/¯

Same as previous post, but with a USB 3.0 card reader connected, with a 32GB FAT32 formatted card inside.

Connecting from, Win10 laptop using WSL for SSH.

~$ ssh [email protected]
[email protected]'s password:
Linux raspberrypi 4.19.57-v7l+ #1244 SMP Thu Jul 4 18:48:07 BST 2019 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Aug 23 22:24:29 2019 from 192.168.2.10

[email protected]:~ $ ls /mnt/sda1
'System Volume Information'


[email protected]:~ $ uname -a
Linux raspberrypi 4.19.57-v7l+ #1244 SMP Thu Jul 4 18:48:07 BST 2019 armv7l GNU/Linux


[email protected]:~ $ cat /etc/fstab
proc /proc proc defaults 0 0
PARTUUID=84b22cec-01 /boot vfat defaults 0 2
PARTUUID=84b22cec-02 / ext4 defaults,noatime 0 1
#
/dev/sda1 /mnt/sda1 vfat defaults 0 0


OP indicated the issue was mounting a USB drive at boot (not failure to boot), but I still don't understand how connecting an HDMI monitor could affect mounting (and I can't replicate the problem).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

ReefBum
Posts: 4
Joined: Wed Aug 21, 2019 10:07 pm

Re: Pi 4 Headless?

Sat Aug 24, 2019 4:17 am

thanks for the help

I don't know if I fat fingered something or not my old eyes are wore out sometimes
but starting with a fresh install and running dist-upgrade seems to have solved it

regards

Return to “Troubleshooting”