| View previous topic :: View next topic |
| Author |
Message |
pll n00b

Joined: 16 Dec 2011 Posts: 15
|
Posted: Wed Aug 01, 2012 12:09 pm Post subject: [SOLVED] no /dev/disk/by-uuid in initramfs |
|
|
My root partition is not on the same drive as the bootloader and kernel. I'm trying to mount root by uuid within an initramfs (I need the initramfs for other things) but /dev/disk/by-uuid does not exist. Manually running blkid does list devices and their uuid's, I suppose I could hack something together with that.
I was just wondering if I could get some help with how /dev/disk/by-uuid gets populated. I've tried mounting devtmpfs and running mdev -s but neither do the trick, though they do bring up /dev/sdb sdc etc..
Thanks for any help. _________________ Peace, love, linux
Last edited by pll on Wed Aug 01, 2012 1:51 pm; edited 1 time in total |
|
| Back to top |
|
 |
eccerr0r Advocate

Joined: 01 Jul 2004 Posts: 2996 Location: USA
|
Posted: Wed Aug 01, 2012 1:45 pm Post subject: |
|
|
You could try installing udev into initramfs. Udev creates the uuid directories.
mdev is a miniature udev, which doesn't fully populate /dev.
Could you do it without the uuid directories? I think you should just hack it - Translate uuid to /dev/xxx with the help of blkid... _________________ Core-i7-2700K@4.1GHz/8GB RAM/180GB SSD/Intel HD3000 graphics
What the heck am I advocating? |
|
| Back to top |
|
 |
pll n00b

Joined: 16 Dec 2011 Posts: 15
|
Posted: Wed Aug 01, 2012 1:50 pm Post subject: |
|
|
I see. I suppose it's not worth installing udev in it's entirety.
I just had a look at blkid's man pages it turns out you can simply do
and it returns
"/dev/sdb1" or whatever so no fancy regex needed.
Thanks for the help eccerr0r ^_^ _________________ Peace, love, linux |
|
| Back to top |
|
 |
SlashBeast Moderator


Joined: 23 May 2006 Posts: 2722
|
|
| Back to top |
|
 |
|