Boot a RasPi

Apr 02, 2018 6 Replies

Hi,



I want to move the root-Dir to an other device. Away from the SD-card. Boot-Dir and Start-Files can rest on SD-Card.



I have an other device /dev/sdb and copied all files and directories from the root of the SD-card to the new partition /dev/sdb1.



I think that in the file /boot/cmdline.txt I can do the trick.



But then I am clueless.



What Do I have to configure?



What is the way RasPi boots up?



Bernd


Thats been discussed here within the last month or so, so searching back through archived newsgroups should find the thread. Or look in the wiki at the RaspberryPi Foundation.

Martin | martin at Gregorie | gregorie dot org

With a normal linux, you do it in /etc/fstab.

yes, or

root=PARTUUID=4d7e5657-02

You can find the PARTUUID with lsblk -O

My /boot/cmdline.txt:

dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=4d7e5657-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

(note: the above is in one line, wrapped for usenet etiquette)

Regards, Kees Nuyt

You could move it all to the external disk, it's easy enough (for a fresh installation) :

formatting link

Am 03.04.2018 um 03:46 schrieb Kees Nuyt:

I assumed this ...

But when I try this (both: set in cmdline.txt and add a entry in fstab) pi will not boot as before ...

Ah, ok thx ...

There was an error with the old image ...

EOD

I'll come back later with the next question ;-)

Bernd

But you also have to pass the location of the root directory as an argument to the kernel, because it can't mount anything else until it's mounted the root directory. IIRC ...

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required