On 2010年07月01日 09:01, linux fan wrote: > On 6/30/10, Bruce Dubbs<bruce.du...@gmail.com> wrote: > >> The Linux kernel generally needs to be told what it's root partition is. >> To the best of my knowledge, it understands root=/dev/<device> and >> root=LABEL=label-name. > I so wished that to be true that I grasped at straws, but kernel won't > understand > root=LABEL=label-name any better than root=UUID=bla-bla-bla without initrd. > However, there is a somewhat cool thing which worked: > > menuentry "GNU/Linux, with Linux 2.6.33 (label)" { > insmod ext2 > search --no-floppy --label --set LFS-6-6 > linux /boot/vmlinux-2.6.33 > } > > where LFS-6-6 is the e2label of the partition in question. > And fstab can have: > LABEL=LFS-6-6 / ext3 defaults 1 1 Your root partition is the partition in which you built you kernel. otherwise your kernel will panic upon boot process.
It's the same as search.fs_uuid in grub.cfg and uuid=yyyyyyy-uuuuuuuu / [filesystem] defaults 1 1 in /etc/fstab -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page