Boot a RasPi

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

Reply to
Bernd
Loading thread data ...

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
Reply to
Martin Gregorie

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

Reply to
ray carter

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
Reply to
Kees Nuyt

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

formatting link

Reply to
A. Dumas

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

Reply to
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 ...

Reply to
Rob Morley

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.