From: Anand Sivaram on 17 Jul 2010 13:50 On Sat, Jul 17, 2010 at 12:23, Andrei Popescu <andreimpopescu(a)gmail.com>wrote: > On Sb, 17 iul 10, 09:06:02, Anand Sivaram wrote: > > > > > It is necessary to use initrd image while using UUID. So UUID method may > > not work with custom kernels where drivers are compiled in. > > Could you please elaborate on that? How can UUID fail if you have > modules compiled in the kernel, since UUID is a property of the > filesystem? > > Regards, > Andrei > -- > Offtopic discussions among Debian users and developers: > http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iQEcBAEBCAAGBQJMQVOBAAoJEHNWs3jeoi3pgJkH/1sIYoAOzgjqvUmQPgmyhEQA > yHfiV3t9B6vRc5nUKb9Ck/Z4aZaodz0VKMOZSwc8VlZutOitJLgPSqXPKvWnciRk > gcTJKDCvpn6Z/SB2jAHhk4MNVs2rn5jOvl1Qwpb046ak0vuvPJpmhl+X+SYQXsry > Qp/ARgVzQDSsvYeVazt2uNF7ZBwXGKESYnZV1eHwgMQHaps/qB88w2HLMJYDYYF4 > xD6qWdkq6AnSH1L3Ywuyf8V+MelxjctbZOGBSNjcFzvzios6g9JMYrLdTJWEy8jX > 006l0xPTL51UeUjGmOZTLYDOvFyhUV/AaWpuehXSY6GO+/pK2e5pfVmqVjJyjzE= > =dJRE > -----END PGP SIGNATURE----- > > @Andrei, Even if every driver is compiled into the kernel, an initrd may be required to use root=UUID=....format. That is what my experience too, finally I swithed to root=/dev/sda2 There are many suggestions that root=/dev/disk/by-uuid/.... could be used instead without an initrd. See the link, https://bbs.archlinux.org/viewtopic.php?id=61451
From: Andrei Popescu on 18 Jul 2010 04:10 On Sb, 17 iul 10, 23:10:39, Anand Sivaram wrote: > > > > Could you please elaborate on that? How can UUID fail if you have > > modules compiled in the kernel, since UUID is a property of the > > filesystem? > > Even if every driver is compiled into the kernel, an initrd may be required > to > use root=UUID=....format. > That is what my experience too, finally I swithed to root=/dev/sda2 > There are many suggestions that root=/dev/disk/by-uuid/.... > could be used instead without an initrd. > > See the link, > https://bbs.archlinux.org/viewtopic.php?id=61451 The link only talks about /dev/disk/by-uuid/... which is correct. Those are actually symlinks created by udev and I'm guessing they are not present if you don't have an initrd. But passing root=UUID=... should not require an initrd, because it doesn't rely on /dev being present. Regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
From: Anand Sivaram on 19 Jul 2010 05:40
On Sun, Jul 18, 2010 at 13:39, Andrei Popescu <andreimpopescu(a)gmail.com>wrote: > On Sb, 17 iul 10, 23:10:39, Anand Sivaram wrote: > > > > > > Could you please elaborate on that? How can UUID fail if you have > > > modules compiled in the kernel, since UUID is a property of the > > > filesystem? > > > > Even if every driver is compiled into the kernel, an initrd may be > required > > to > > use root=UUID=....format. > > That is what my experience too, finally I swithed to root=/dev/sda2 > > There are many suggestions that root=/dev/disk/by-uuid/.... > > could be used instead without an initrd. > > > > See the link, > > https://bbs.archlinux.org/viewtopic.php?id=61451 > > The link only talks about /dev/disk/by-uuid/... which is correct. Those > are actually symlinks created by udev and I'm guessing they are not > present if you don't have an initrd. But passing root=UUID=... should > not require an initrd, because it doesn't rely on /dev being present. > > Regards, > Andrei > -- > Offtopic discussions among Debian users and developers: > http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iQEcBAEBCAAGBQJMQra/AAoJEHNWs3jeoi3pQLcH/iaFfF7w6oqspQuqlODIk1v6 > lIHoL/bTED1XhsADh+mfIOpEnEbT09UILN5RsoCZhxzwDU6LtBz1XQiR4sJLGqvZ > IPY4mwxSquJCBPZBs3RO1UxSsGlzyULNLnHFoUXLLYzApUYNMVbIfNGdOj2Db5vb > aWThBHPXfQczfh/0dITU7kkycH43uGhiZ5mjtrct61ZLRc8yzPQ1C6V89+h0p9bs > Jze55L5UZAGm2Jsttic0RlrWz0UWP1OYVbyS0dn/jr32OWVswZEuh7SbhuyZij3z > yuLU2IB08Lkzky0oVAkVWFMFGZyd8S1vn31RMvSgIhIG12+M0WQ8AGKH2eU4kq0= > =nCgD > -----END PGP SIGNATURE----- > > I am using a custom 2.6.34 kernel with every driver built in. Currently it is booted with root=/dev/sda2 option. Just to see how it works, I changed that to 1) linux /boot/vmlinuz-2.6.34 root=UUID=ddc23ac8-37bf-4e89-a1cd-d77aefc011c8 ro quiet and 2) linux /boot/vmlinuz-2.6.34 root=/dev/disk/by-uuid/ddc23ac8-37bf-4e89-a1cd-d77aefc011c8 In both cases the system did not boot up. The error was unable to mount root device. So finally, to use uuid option in either way, it is required to use initrd. |