mezinster
Posts: 2
Joined: Wed Sep 13, 2017 11:11 am

Booting from USB on Pi2

Wed Sep 13, 2017 11:16 am

Is that article related to Pi2 also?
https://www.raspberrypi.org/documentati ... des/msd.md

drgeoff
Posts: 7401
Joined: Wed Jan 25, 2012 6:39 pm

Re: Booting from USB on Pi2

Wed Sep 13, 2017 6:14 pm

Definitely not possible for original RPI2 which has BCM2836 chip.

Possibly possible for version 2 which has the BCM2837 chip (same as RPi3).

RonR
Posts: 179
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Booting from USB on Pi2

Wed Sep 13, 2017 8:37 pm

Booting from USB is easy on a Pi1, Pi2, or Pi3:

1. Write the latest Raspbian image to an SD card and boot it.

2. Write the latest Raspbian image to a USB drive and plug it into the Pi.

3. Run blkid to determine the PARTUUID of the USB drive.

4. Edit /boot/cmdline.txt and change root=PARTUUID=xxxxxxxx to match the PARTUUID of the USB drive.

5. Reboot. The Pi should be running from the USB drive.

If you ever need to boot from a different USB drive or from the SD card, it's necessary to FIRST mount the boot partition of the SD card (/dev/mmcblk0p1) and edit the boot partition's cmdline.txt so that root=PARTUUID=xxxxxxxx matches the device you wish to boot from.

B.Goode
Posts: 4601
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Booting from USB on Pi2

Wed Sep 13, 2017 8:51 pm

Booting from USB is easy on a Pi1, Pi2, or Pi3:
That depends on interpretation of what "Booting from USB " means.

Some difficult and demanding users might object that you are describing a system which boots initially from a microSD card and transfers control to a system installed on a usb device.

RonR
Posts: 179
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Booting from USB on Pi2

Wed Sep 13, 2017 9:09 pm

B.Goode wrote:
Wed Sep 13, 2017 8:51 pm
Booting from USB is easy on a Pi1, Pi2, or Pi3:
Some difficult and demanding users might object that you are describing a system which boots initially from a microSD card and transfers control to a system installed on a usb device.
What do you propose for a Pi1 or Pi2?

User avatar
rpdom
Posts: 11699
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

Re: Booting from USB on Pi2

Wed Sep 13, 2017 9:13 pm

The only option for a Pi1 or Pi2 is to use the SD card to boot.

RonR
Posts: 179
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Booting from USB on Pi2

Wed Sep 13, 2017 9:25 pm

rpdom wrote:
Wed Sep 13, 2017 9:13 pm
The only option for a Pi1 or Pi2 is to use the SD card to boot.
Apparently B.Goode has a better way. :)

I'm always open to learning, but not to arguing over semantics.

User avatar
fruitoftheloom
Posts: 14913
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: Booting from USB on Pi2

Wed Sep 13, 2017 9:26 pm

My only "PC" is an Asus ChromeBit running ChromeOS, cloudcentric at its best !
Rockchip Quad-Core RK3288C SoC as used in ASUS Chromebook C201 & Chromebook Flip C100PA as well as the Tinker SBC

User avatar
fruitoftheloom
Posts: 14913
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: Booting from USB on Pi2

Wed Sep 13, 2017 9:27 pm

RonR wrote:
Wed Sep 13, 2017 8:37 pm
Booting from USB is easy on a Pi1, Pi2, or Pi3:

1. Write the latest Raspbian image to an SD card and boot it.

2. Write the latest Raspbian image to a USB drive and plug it into the Pi.

3. Run blkid to determine the PARTUUID of the USB drive.

4. Edit /boot/cmdline.txt and change root=PARTUUID=xxxxxxxx to match the PARTUUID of the USB drive.

5. Reboot. The Pi should be running from the USB drive.

If you ever need to boot from a different USB drive or from the SD card, it's necessary to FIRST mount the boot partition of the SD card (/dev/mmcblk0p1) and edit the boot partition's cmdline.txt so that root=PARTUUID=xxxxxxxx matches the device you wish to boot from.
That still is SD Card Booting........

https://www.raspberrypi.org/documentati ... bootmodes/
My only "PC" is an Asus ChromeBit running ChromeOS, cloudcentric at its best !
Rockchip Quad-Core RK3288C SoC as used in ASUS Chromebook C201 & Chromebook Flip C100PA as well as the Tinker SBC

RonR
Posts: 179
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Booting from USB on Pi2

Wed Sep 13, 2017 10:05 pm

Using just bootcode.bin, I don't see any way to select which USB device boots in the case of multiple bootable USB devices being present. I assume it simply boots the one that comes ready first.

RonR
Posts: 179
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Booting from USB on Pi2

Wed Sep 13, 2017 11:51 pm

RonR wrote:
Wed Sep 13, 2017 10:05 pm
Using just bootcode.bin, I don't see any way to select which USB device boots in the case of multiple bootable USB devices being present. I assume it simply boots the one that comes ready first.
It appears to be worse than I thought. bootcode.bin appears to only boot from the first device (/dev/sda). I use two USB drives, one a bootable Raspbian image and the other formatted NTFS. If the NTFS drive comes up first, it doesn't ignore it and go on to the Raspbian drive.

Thanks, but I'll stick with the method outlined above which has been working reliably for more than 3 years.

asandford
Posts: 1715
Joined: Mon Dec 31, 2012 12:54 pm
Location: Ealing

Re: Booting from USB on Pi2

Thu Sep 14, 2017 12:16 am

RonR wrote:
Wed Sep 13, 2017 9:25 pm

Apparently B.Goode has a better way. :)

I'm always open to learning, but not to arguing over semantics.
I think you either misread or misinterpreted what he wrote.

Perhaps the title should be "Booting without an SDcard on Pi2"

Strictly speaking, even an NFS/iSCSI boot is USB boot

drgeoff
Posts: 7401
Joined: Wed Jan 25, 2012 6:39 pm

Re: Booting from USB on Pi2

Thu Sep 14, 2017 7:40 am

It is quite clear from the link in the first post that the OP is not asking about booting from a SD card and then running from an USB device.

mezinster
Posts: 2
Joined: Wed Sep 13, 2017 11:11 am

Re: Booting from USB on Pi2

Thu Sep 14, 2017 10:11 am

Guys! I believe i've got the answer on my question :)

Pi2 DOES NOT BOOT over USB (except the case with newer Chip as in Pi3)

asandford
Posts: 1715
Joined: Mon Dec 31, 2012 12:54 pm
Location: Ealing

Re: Booting from USB on Pi2

Fri Sep 15, 2017 12:37 am

drgeoff wrote:
Thu Sep 14, 2017 7:40 am
It is quite clear from the link in the first post that the OP is not asking about booting from a SD card and then running from an USB device.
It's clear to most of us perhaps, there appears to be an exception

drgeoff
Posts: 7401
Joined: Wed Jan 25, 2012 6:39 pm

Re: Booting from USB on Pi2

Fri Sep 15, 2017 6:37 am

asandford wrote:
Fri Sep 15, 2017 12:37 am
drgeoff wrote:
Thu Sep 14, 2017 7:40 am
It is quite clear from the link in the first post that the OP is not asking about booting from a SD card and then running from an USB device.
It's clear to most of us perhaps, there appears to be an exception
There is always one. :)

But it gets annoying when the one is always the same one. :(

Return to “Advanced users”

Who is online

Users browsing this forum: ivanfp, mahjongg and 22 guests