You are not logged in.

#1 2015-05-23 05:37:16

stevepa
Member
From: Texas USA
Registered: 2012-02-12
Posts: 113

[Solved]Inside Grub Console: Determining the root fs UUID value

I am attempting to understand how to use the grub console to boot Linux manually.

I've been able to satisfy myself about how to do it based on available doc, except when the root filesystem is on LVM.

My question: What "grub" console command will give me the UUID for lvm logical volumes? I can use 'ls' to see devices like (hd0,msdos1) or (lvm/vg00-lvol1) etc, but I can't use those LVM references like that as a kernel parameter, right?

Specifically, it's the "myuuid" I am trying to figure out as below:

linux /vmlinuz-linux root=UUID=<myuuid>

Now, I realize I can use the console 'cat' command to just list the /boot/grub.cfg or the /etc/fstab on the root filesystem, but is that the only way?

I checked the wiki thoroughly I thought, plus the upstream grub doc, but didn't see an answer. Of course, I may have missed it. I am very interested in where this is covered in the wiki, as I was told it clearly was.

Thanks very much.
Steve.

Last edited by stevepa (2015-05-24 14:02:23)


Arch - LVM - ext4 - gnome (T60p 14.1 1400p  x86_64), (T60 15 flexview 1400p i686)

Offline

#2 2015-05-23 11:38:27

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [Solved]Inside Grub Console: Determining the root fs UUID value

With pvdisplay, have a look at

man 8 pvdisplay

Offline

#3 2015-05-23 16:46:12

stevepa
Member
From: Texas USA
Registered: 2012-02-12
Posts: 113

Re: [Solved]Inside Grub Console: Determining the root fs UUID value

qinohe wrote:

With pvdisplay, have a look at

man 8 pvdisplay

pvdisplay is not available in the grub console, right?
At least, it is not listed here http://www.gnu.org/software/grub/manual … y-commands

I know how to get the UUID outside of grub console.


Maybe I don't understand what I should concentrate on. Can you elaborate?

TIA

Steve.

Last edited by stevepa (2015-05-23 19:26:01)


Arch - LVM - ext4 - gnome (T60p 14.1 1400p  x86_64), (T60 15 flexview 1400p i686)

Offline

#4 2015-05-23 17:32:56

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [Solved]Inside Grub Console: Determining the root fs UUID value

Ai, sorry for the disturbance. Should have read better.
No, pvdisplay wont work in grub console, and I guess you have tried 'ls -l', which works for simply good old ext4 partitions?

Offline

#5 2015-05-24 14:01:56

stevepa
Member
From: Texas USA
Registered: 2012-02-12
Posts: 113

Re: [Solved]Inside Grub Console: Determining the root fs UUID value

The solution to finding your UUID's from the 'grub console', is

insmod ext2
insmod lvm

ls -l

I use bash 'ls -l' all the time so I knew it did not list UUID's, but in the grub shell, it does!


Arch - LVM - ext4 - gnome (T60p 14.1 1400p  x86_64), (T60 15 flexview 1400p i686)

Offline

Board footer

Powered by FluxBB