You are not logged in.

#1 2011-10-11 00:38:18

morphjk
Member
Registered: 2010-06-10
Posts: 59

[SOLVED] Grub Entry to boot via UUID

I'm trying to get my system booting by UUID but I am having issues with the grub entry as it won't boot. The following is the non uuid one that works:

# (2) Arch Linux

title  Arch Linux sda5

root   (hd0,4)

kernel /boot/vmlinuz-linux root=/dev/sda5 ro

initrd /boot/initramfs-linux.img

And below are the two that I have tried for uuid:

title  Arch Linux by UUID (sda5)

uuid   857136db-0356-46bd-9fff-0126b575218b

kernel /boot/vmlinuz-linux root=UUID=857136db-0356-46bd-9fff-0126b575218b

initrd /boot/initramfs-linux.img

and

title  Arch Linux by UUID (sda5)

uuid   857136db-0356-46bd-9fff-0126b575218b

kernel /boot/vmlinuz-linux root=/dev/disk/by-uuid/857136db-0356-46bd-9fff-0126b575218b

initrd /boot/initramfs-linux.img

Can someone point out which bit is wrong?

Thanks

Last edited by morphjk (2011-10-11 04:08:53)

Offline

#2 2011-10-11 03:15:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,354

Re: [SOLVED] Grub Entry to boot via UUID

Try:

title  Arch Linux by UUID (sda5)
kernel /boot/vmlinuz-linux root=/dev/disk/by-uuid/857136db-0356-46bd-9fff-0126b575218b
initrd /boot/initramfs-linux.img

You may need the root   (hd0,4) line as well.  I think that is required to tell Grub where to find it's intermediate files.  It would go in front of the kernel line.

Edit:  I assume, of course, that your UUID is correct smile  You might check that.

Last edited by ewaller (2011-10-11 03:16:48)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2011-10-11 04:08:17

morphjk
Member
Registered: 2010-06-10
Posts: 59

Re: [SOLVED] Grub Entry to boot via UUID

Yeah first thing I checked was that the uuid was correct.

You were correct and adding that line in got me up and running. Should've tried that first.

Offline

Board footer

Powered by FluxBB