Setting root with UUID in cmdline.txt

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Setting root with UUID in cmdline.txt

Postby Patatra » Sun Apr 07, 2013 12:19 pm

Hi,

As I'm using different USB keys on the Pi, I would like to indicate the root disk in cmdline.txt using the UUID of the USB key that share the system but it doesn't work. I got the UUID using blkid.
It doesn't boot, it stucks on the Raspberry we first see and nothing else, no boot message, no error, nothing.

What am I doing wrong?

$this->bbcode_second_pass_code('', 'smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=UUID=7a6820e4-9dd6-4799-9570-4b3852f4aea4 rootfstype=ext4 elevator=noop rootwait')

I've try with <UUID>, "UUID", UUID but it's the same.

Thanks.
Patatra
 
Posts: 13
Joined: Fri Mar 08, 2013 9:18 am

Re: Setting root with UUID in cmdline.txt

Postby pepedog » Sun Apr 07, 2013 2:45 pm

I searched the raspberry pi forum for UUID, 85 matches
I searched within those 85 matches for rootfstype, and nothing there, I doubt this would ever work
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Setting root with UUID in cmdline.txt

Postby Patatra » Sun Apr 07, 2013 3:20 pm

I've made that search too, didn't find anything either.
But I've seen on OpenElec's wiki :

$this->bbcode_second_pass_quote('', 'N')ext we create a “cmdline.txt” file that contains bootloader parameters:Lp

$this->bbcode_second_pass_quote('', 'e')cho "boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 ssh quiet" | sudo tee /media/System/cmdline.txt


To explain the boot parameters:

boot=/dev/mmcblk0p1 tells OpenELEC the partition which contains the kernel.img and SYSTEM file. It is also possible to use partition labels (boot=LABEL=System) or UUID (boot=UUID=<insert_your_uuid>) or to boot over the network (PXE)

disk=/dev/mmcblk0p2 tells OpenELEC the “Storage” partition. It can also use partition labels (disk=LABEL=Storage) or UUID (disk=UUID=<insert_your_uuid>) or boot over the network (PXE)


So I think that it could work for Arch too. But it did not, even with LABEL.
Patatra
 
Posts: 13
Joined: Fri Mar 08, 2013 9:18 am

Re: Setting root with UUID in cmdline.txt

Postby WarheadsSE » Sun Apr 07, 2013 3:34 pm

You need an united for label to work
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Setting root with UUID in cmdline.txt

Postby Patatra » Sun Apr 07, 2013 3:41 pm

Sorry but what do you mean by "an united"? English isn't my native language :|
Patatra
 
Posts: 13
Joined: Fri Mar 08, 2013 9:18 am

Re: Setting root with UUID in cmdline.txt

Postby WarheadsSE » Sun Apr 07, 2013 5:45 pm

Damn you auto correct.

An initrd
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Setting root with UUID in cmdline.txt

Postby Patatra » Mon Apr 08, 2013 10:02 am

Ok! So it wasn't my bad english! :D

I'll try that. Do I need special stuff in the initrd for label to work?
I've made one with just $this->bbcode_second_pass_code('', ' HOOKS="base udev autodetect block filesystems"
') and a gzip compression, will it be enough?

Now, I just have to set initrd= in cmdline.txt?
I don't have access to the Pi right now so can't test.

Thanks.
Patatra
 
Posts: 13
Joined: Fri Mar 08, 2013 9:18 am

Re: Setting root with UUID in cmdline.txt

Postby crashmaster » Wed Apr 10, 2013 2:01 am

I don't think it's so easy to use an initrd on the RPi. See "using initrd" thread some days ago.
crashmaster
 
Posts: 119
Joined: Wed Mar 13, 2013 1:00 am

Re: Setting root with UUID in cmdline.txt

Postby Patatra » Wed Apr 10, 2013 7:51 am

Oups,
I already read this thread, found it via forum search but didn"t realize it was just a few days old :?

Will continue on the other thread then!
Thanks
Patatra
 
Posts: 13
Joined: Fri Mar 08, 2013 9:18 am


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 69 guests