Re: [gentoo-user] Grub Config Questions

2013-05-03 Thread Fast Turtle
On Mon, 29 Apr 2013 19:01:56 +0800
Jackie  wrote:

> 在 Mon, 29 Apr 2013 10:53:43 +0800,Fast Turtle  写道:
> 
> > On Mon, 29 Apr 2013 09:07:07 +0800
> > Jackie  wrote:
> >
> >> 在 Mon, 29 Apr 2013 08:58:56 +0800,Fast Turtle   
> >> 写道:
> >>
> >> > I followed a method of using UUID's in grub from
> >> >  
> >> http://www.linux-archive.org/gentoo-user/481167-mounting-root-partition-uuid-no-initrd-needed.html
> >> > and am getting an error 11 message
> >> >
> >> > My grub Conf
> >> >
> >> > title FlashGen2
> >> >
> >> > root=PARTUUID=b969b2c9-becb-48cc-ad6d-81517bb12ca8
> >> >
> >> > kernel /boot/kernel-genkernel-x86_6403.4.34-gentoo
> >> > root=PARTUID=b969b2c9-becb-48cc-ad6d-81517bb12ca8
> >> >
> >> > The error is about the PARTUUID but I don't know which one.
> >> >
> >>
> >> make sure that your grub support uuid and try root=uuid=X,appeared  
> >> to
> >> me that it should be uuid rather than PARTUUID.Not so sure.
> >>
> > Been doing more reading and it looks as though you may be correct since  
> > I'm using Grub(legacy) not Grub2 that it appears the page talked about.  
> > Will check and see if that is the case.
> >
> 
> Could be,I used grub-legacy for a while in the past and found it not so  
> good too.Hard to configure as I wanted.
> 
Someone in the forums provided a possible work around - Seems that the PARTUUID 
needed comes from GDISK as GPARTED doesn't show the correct one. 

They are doing what I'm trying except using Grub-Legacy not Grub2 so I'm fairly 
confident it'll work as needed.

The info they provided:

gdisk /dev/sdb
GPT fdisk (gdisk) version 0.8.6

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): i
Partition number (1-4): 1
Partition GUID code: C12A7328-F81F-11D2-BA4B-00A0C93EC93B (EFI System)
Partition unique GUID: 29884E5A-69FF-42E8-AB7B-0DEB95FB6EA9
First sector: 63 (at 31.5 KiB)
Last sector: 81915434 (at 39.1 GiB)
Partition size: 81915372 sectors (39.1 GiB)
Attribute flags: 
Partition name: 'Linux/Windows data'

Command (? for help): p
Disk /dev/sdb: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 0F7425A1-EB79-4B6A-A7F2-1F98F8E7D8A9
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 8-sector boundaries
Total free space is 5099 sectors (2.5 MiB)

Number  Start (sector)End (sector)  Size   Code  Name
   1  6381915434   39.1 GiBEF00  Linux/Windows data
   281915435   163830869   39.1 GiB0700  Linux/Windows data
   3   163830870   245746304   39.1 GiB0700  Linux/Windows data
   4   245746305   976768064   348.6 GiB   0700  Linux/Windows data

Command (? for help): q

title=Gentoo Linux (kernel-3.0.0-gentoo-r1 boot-Test über PartUUID mit gdisk 
unique guid)
root (hd1,0)
kernel /boot/kernel-x86_64-3.0.0-gentoo vga=791 
root=PARTUUID=29884E5A-69FF-42E8-AB7B-0DEB95FB6EA9

Notice that the did make a mistake in their post - watch the PARTUUID to see 
what I'm talking about. Easy enough to fix as they showed the entire gdisk info 
for the root= command. 



Re: [gentoo-user] Grub Config Questions

2013-04-29 Thread Jackie

在 Mon, 29 Apr 2013 10:53:43 +0800,Fast Turtle  写道:


On Mon, 29 Apr 2013 09:07:07 +0800
Jackie  wrote:

在 Mon, 29 Apr 2013 08:58:56 +0800,Fast Turtle   
写道:


> I followed a method of using UUID's in grub from
>  
http://www.linux-archive.org/gentoo-user/481167-mounting-root-partition-uuid-no-initrd-needed.html

> and am getting an error 11 message
>
> My grub Conf
>
> title FlashGen2
>
> root=PARTUUID=b969b2c9-becb-48cc-ad6d-81517bb12ca8
>
> kernel /boot/kernel-genkernel-x86_6403.4.34-gentoo
> root=PARTUID=b969b2c9-becb-48cc-ad6d-81517bb12ca8
>
> The error is about the PARTUUID but I don't know which one.
>

make sure that your grub support uuid and try root=uuid=X,appeared  
to

me that it should be uuid rather than PARTUUID.Not so sure.

Been doing more reading and it looks as though you may be correct since  
I'm using Grub(legacy) not Grub2 that it appears the page talked about.  
Will check and see if that is the case.




Could be,I used grub-legacy for a while in the past and found it not so  
good too.Hard to configure as I wanted.




Re: [gentoo-user] Grub Config Questions

2013-04-28 Thread Fast Turtle
On Mon, 29 Apr 2013 09:07:07 +0800
Jackie  wrote:

> 在 Mon, 29 Apr 2013 08:58:56 +0800,Fast Turtle  写道:
> 
> > I followed a method of using UUID's in grub from  
> > http://www.linux-archive.org/gentoo-user/481167-mounting-root-partition-uuid-no-initrd-needed.html
> >   
> > and am getting an error 11 message
> >
> > My grub Conf
> >
> > title FlashGen2
> >
> > root=PARTUUID=b969b2c9-becb-48cc-ad6d-81517bb12ca8
> >
> > kernel /boot/kernel-genkernel-x86_6403.4.34-gentoo  
> > root=PARTUID=b969b2c9-becb-48cc-ad6d-81517bb12ca8
> >
> > The error is about the PARTUUID but I don't know which one.
> >
> 
> make sure that your grub support uuid and try root=uuid=X,appeared to  
> me that it should be uuid rather than PARTUUID.Not so sure.
> 
Been doing more reading and it looks as though you may be correct since I'm 
using Grub(legacy) not Grub2 that it appears the page talked about. Will check 
and see if that is the case.



Re: [gentoo-user] Grub Config Questions

2013-04-28 Thread Fast Turtle
On Mon, 29 Apr 2013 09:07:07 +0800
Jackie  wrote:

> 在 Mon, 29 Apr 2013 08:58:56 +0800,Fast Turtle  写道:
> 
> > I followed a method of using UUID's in grub from  
> > http://www.linux-archive.org/gentoo-user/481167-mounting-root-partition-uuid-no-initrd-needed.html
> >   
> > and am getting an error 11 message
> >
> > My grub Conf
> >
> > title FlashGen2
> >
> > root=PARTUUID=b969b2c9-becb-48cc-ad6d-81517bb12ca8
> >
> > kernel /boot/kernel-genkernel-x86_6403.4.34-gentoo  
> > root=PARTUID=b969b2c9-becb-48cc-ad6d-81517bb12ca8
> >
> > The error is about the PARTUUID but I don't know which one.
> >
> 
> make sure that your grub support uuid and try root=uuid=X,appeared to  
> me that it should be uuid rather than PARTUUID.Not so sure.
> 
The partuuid is from the howto link I was following

This is what the page shows as the example
root=PARTUUID=6BAD4248-FC6D-4487-A255-A3B57504BE10

Note that the "PARTUUID" keyword was introduced very recently in linux kernel
2.6.37, and it has nothing whatever to do with the "UUID" keyword used in the
many online tutorials on how to build an initrd!

The kernel used is the gentoo-sources 3.4.34 with gpt and efi enabled



Re: [gentoo-user] Grub Config Questions

2013-04-28 Thread Jackie

在 Mon, 29 Apr 2013 08:58:56 +0800,Fast Turtle  写道:

I followed a method of using UUID's in grub from  
http://www.linux-archive.org/gentoo-user/481167-mounting-root-partition-uuid-no-initrd-needed.html  
and am getting an error 11 message


My grub Conf

title FlashGen2

root=PARTUUID=b969b2c9-becb-48cc-ad6d-81517bb12ca8

kernel /boot/kernel-genkernel-x86_6403.4.34-gentoo  
root=PARTUID=b969b2c9-becb-48cc-ad6d-81517bb12ca8


The error is about the PARTUUID but I don't know which one.



make sure that your grub support uuid and try root=uuid=X,appeared to  
me that it should be uuid rather than PARTUUID.Not so sure.