RPi tries to boot from the wrong USB-drive

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
shaft8472
Posts: 1
Joined: Sun Jul 26, 2020 8:11 pm

RPi tries to boot from the wrong USB-drive

Post by shaft8472 »

I have two RPi’s both running DietPi. Both of them have two USB drives plugged in. One is a SanDisk and runs DietPi, the other is a Samsung and is mainly for backup purposes.

One of them tries to boot from the ‘backup’-USB. The other RPi doesn’t have that problem. It’s a recent problem, it worked fine in the past. I’ve checked the cmdline.txt if the correct partuuid is used, both have the correct USB-drive in there.

I do not understand why one fails to booth with that 2nd USB-drive inserted.

Any ideas?
User avatar
Joulinar
Posts: 2088
Joined: Sat Nov 16, 2019 12:49 am

Re: RPi tries to boot from the wrong USB-drive

Post by Joulinar »

Hi,

I guess you mean the RootFS is located on your external USB device? Correct? Did you checked /etc/fstab if settings for RootFS are correct as well? Next to that, you could have a look to dmesg. Right at the beginning you should find something like this:

Code: Select all

[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 bcm2708_fb.fbwidth=720 bcm2708_fb.fbheight=480 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000  console=tty1 root=PARTUUID=2fed7fee-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet net.ifnames=0
Does it display the correct root=PARTUUID??
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
jrjong
Posts: 1
Joined: Sat Aug 29, 2020 1:23 pm

Re: RPi tries to boot from the wrong USB-drive

Post by jrjong »

Joulinar wrote: Sun Jul 26, 2020 8:34 pm Hi,

I guess you mean the RootFS is located on your external USB device? Correct? Did you checked /etc/fstab if settings for RootFS are correct as well? Next to that, you could have a look to dmesg. Right at the beginning you should find something like this:

Code: Select all

[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 bcm2708_fb.fbwidth=720 bcm2708_fb.fbheight=480 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000  console=tty1 root=PARTUUID=2fed7fee-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet net.ifnames=0
Does it display the correct root=PARTUUID??
Thanks for the https://one2step.net solution Joulinar. Will update the results soon.
Post Reply