1 |
On Mon, 29 Apr 2013 19:01:56 +0800 |
2 |
Jackie <jiangjun12321@×××××.com> wrote: |
3 |
|
4 |
> 在 Mon, 29 Apr 2013 10:53:43 +0800,Fast Turtle <fturtle@×××××.com> 写道: |
5 |
> |
6 |
> > On Mon, 29 Apr 2013 09:07:07 +0800 |
7 |
> > Jackie <jiangjun12321@×××××.com> wrote: |
8 |
> > |
9 |
> >> 在 Mon, 29 Apr 2013 08:58:56 +0800,Fast Turtle <fturtle@×××××.com> |
10 |
> >> 写道: |
11 |
> >> |
12 |
> >> > I followed a method of using UUID's in grub from |
13 |
> >> > |
14 |
> >> http://www.linux-archive.org/gentoo-user/481167-mounting-root-partition-uuid-no-initrd-needed.html |
15 |
> >> > and am getting an error 11 message |
16 |
> >> > |
17 |
> >> > My grub Conf |
18 |
> >> > |
19 |
> >> > title FlashGen2 |
20 |
> >> > |
21 |
> >> > root=PARTUUID=b969b2c9-becb-48cc-ad6d-81517bb12ca8 |
22 |
> >> > |
23 |
> >> > kernel /boot/kernel-genkernel-x86_6403.4.34-gentoo |
24 |
> >> > root=PARTUID=b969b2c9-becb-48cc-ad6d-81517bb12ca8 |
25 |
> >> > |
26 |
> >> > The error is about the PARTUUID but I don't know which one. |
27 |
> >> > |
28 |
> >> |
29 |
> >> make sure that your grub support uuid and try root=uuid=XXXXX,appeared |
30 |
> >> to |
31 |
> >> me that it should be uuid rather than PARTUUID.Not so sure. |
32 |
> >> |
33 |
> > Been doing more reading and it looks as though you may be correct since |
34 |
> > I'm using Grub(legacy) not Grub2 that it appears the page talked about. |
35 |
> > Will check and see if that is the case. |
36 |
> > |
37 |
> |
38 |
> Could be,I used grub-legacy for a while in the past and found it not so |
39 |
> good too.Hard to configure as I wanted. |
40 |
> |
41 |
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. |
42 |
|
43 |
They are doing what I'm trying except using Grub-Legacy not Grub2 so I'm fairly confident it'll work as needed. |
44 |
|
45 |
The info they provided: |
46 |
|
47 |
gdisk /dev/sdb |
48 |
GPT fdisk (gdisk) version 0.8.6 |
49 |
|
50 |
Partition table scan: |
51 |
MBR: protective |
52 |
BSD: not present |
53 |
APM: not present |
54 |
GPT: present |
55 |
|
56 |
Found valid GPT with protective MBR; using GPT. |
57 |
|
58 |
Command (? for help): i |
59 |
Partition number (1-4): 1 |
60 |
Partition GUID code: C12A7328-F81F-11D2-BA4B-00A0C93EC93B (EFI System) |
61 |
Partition unique GUID: 29884E5A-69FF-42E8-AB7B-0DEB95FB6EA9 |
62 |
First sector: 63 (at 31.5 KiB) |
63 |
Last sector: 81915434 (at 39.1 GiB) |
64 |
Partition size: 81915372 sectors (39.1 GiB) |
65 |
Attribute flags: 0000000000000000 |
66 |
Partition name: 'Linux/Windows data' |
67 |
|
68 |
Command (? for help): p |
69 |
Disk /dev/sdb: 976773168 sectors, 465.8 GiB |
70 |
Logical sector size: 512 bytes |
71 |
Disk identifier (GUID): 0F7425A1-EB79-4B6A-A7F2-1F98F8E7D8A9 |
72 |
Partition table holds up to 128 entries |
73 |
First usable sector is 34, last usable sector is 976773134 |
74 |
Partitions will be aligned on 8-sector boundaries |
75 |
Total free space is 5099 sectors (2.5 MiB) |
76 |
|
77 |
Number Start (sector) End (sector) Size Code Name |
78 |
1 63 81915434 39.1 GiB EF00 Linux/Windows data |
79 |
2 81915435 163830869 39.1 GiB 0700 Linux/Windows data |
80 |
3 163830870 245746304 39.1 GiB 0700 Linux/Windows data |
81 |
4 245746305 976768064 348.6 GiB 0700 Linux/Windows data |
82 |
|
83 |
Command (? for help): q |
84 |
|
85 |
title=Gentoo Linux (kernel-3.0.0-gentoo-r1 boot-Test über PartUUID mit gdisk unique guid) |
86 |
root (hd1,0) |
87 |
kernel /boot/kernel-x86_64-3.0.0-gentoo vga=791 root=PARTUUID=29884E5A-69FF-42E8-AB7B-0DEB95FB6EA9 |
88 |
|
89 |
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. |