retux
Posts: 9
Joined: Fri Apr 12, 2013 4:02 pm

cmdline.txt supports UUID?

Wed Aug 28, 2013 2:35 pm

Is my first post here, so sorry if topic has been already covered.

I moved my root fs to an usb stick, of course running RasPi firmware from within /boot partition in SD card.
If I identify root fs using device name root=/dev/sda1 and so in /etc/fstab system boots ok, root partition got mounted and everything goes just fine.
But... I was wondering that device name sda1 could change if other storage device get connected... So I wanted to use UUID.

I tried it but had no sucess. I tried it following procedure described here:

http://www.raspberrypi.org/phpBB3/viewt ... 29&t=44177

Trying using both GUID and UUID, no luck at all.

Does anybody knows if firmware really support UUID identification in root=UUID=<UUID HASH> ?

Regards

retux
Posts: 9
Joined: Fri Apr 12, 2013 4:02 pm

Re: cmdline.txt supports UUID?

Tue Oct 01, 2013 7:04 pm

Well, I finally solved compilling kernel, with option:

Code: Select all

CONFIG_BLK_DEV_INITRD=y 
In raspbian stock kernel option is:

Code: Select all

CONFIG_BLK_DEV_INITRD=n
I think I would be really nice if stock kernel is built with CONFIG_BLK_DEV_INITRD=y

Does anybody knows where/who can we ask for?

Complete procedure is here (spanish):

http://www.equiscentrico.com.ar/2013/09 ... -usar.html

User avatar
Offcenter
Posts: 182
Joined: Wed Jul 31, 2013 4:57 pm
Location: Northwestern New Jersey USA

Re: cmdline.txt supports UUID?

Tue Oct 01, 2013 10:44 pm

I couldn't make it work either. I need to have two thumb drives
hooked up, but using UUID or GUID, the system just won't boot.
George in New Jersey.
(learning a little bit every day.)
(and darned confused most of the time!)

User avatar
Elliott B
Posts: 101
Joined: Thu Jan 09, 2014 11:58 pm

Re: cmdline.txt supports UUID?

Mon Feb 17, 2014 8:03 am

EDIT: It worked for me, but you have to use the "Partition unique GUID", not UUID. Get it with gdisk "i" command. I did not have to recompile the kernel; I'm using Volumio, which is Linux 3.10.25+.

Code: Select all

[email protected]:~# gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): i
Using 1
Partition GUID code: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 (Linux filesystem)
Partition unique GUID: B0183455-2BAA-497C-9A93-201366ACC4AD
First sector: 2048 (at 1024.0 KiB)
Last sector: 1953458142 (at 931.5 GiB)
Partition size: 1953456095 sectors (931.5 GiB)
Attribute flags: 0000000000000000
Partition name: 'passport'

jwaugh
Posts: 1
Joined: Fri May 22, 2015 3:16 pm

Re: cmdline.txt supports UUID?

Fri May 22, 2015 3:31 pm

I wasn't able to get it to work with the Partition unique UUID reported by gdisk. It was different every boot and every boot hung after recognizing the USB drive. However the PARTUUID reported by 'blkid /dev/whatever' *did* work (and is consistent across boots)
.

Keroul
Posts: 1
Joined: Mon May 23, 2016 5:28 am

Re: cmdline.txt supports UUID?

Mon May 23, 2016 5:33 am

jwaugh wrote:I wasn't able to get it to work with the Partition unique UUID reported by gdisk. It was different every boot and every boot hung after recognizing the USB drive.
Make sure, you actually use GPT and not MBR partition table. In the latter case gdisk generates a temporary stuff and informs you about it... No surprise if it changes every run.

Return to “Advanced users”