View previous topic :: View next topic |
Author |
Message |
pll n00b
Joined: 16 Dec 2011 Posts: 19
|
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 Watchman
Joined: 01 Jul 2004 Posts: 9709 Location: almost Mile High in the 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... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
pll n00b
Joined: 16 Dec 2011 Posts: 19
|
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 Retired Dev
Joined: 23 May 2006 Posts: 2922
|
|
Back to top |
|
|
|