1 |
Stroller wrote: |
2 |
> Hi there, |
3 |
> |
4 |
> Is anyone using "root=LABEL=xxxx" grub.conf, please? Anyone also using |
5 |
> ext4 for their root? |
6 |
> |
7 |
> I can find numerous references to this syntax going back to 2005 or |
8 |
> so, and some major distros seem to use it as the default way of |
9 |
> describing "root=" to the kernel. |
10 |
> |
11 |
> http://www.linuxforums.org/forum/redhat-fedora-linux-help/23010-root-label-grub-conf.html |
12 |
> |
13 |
> http://linux.derkeiler.com/Mailing-Lists/RedHat/2005-01/0026.html |
14 |
> |
15 |
> But it doesn't work for me. :( |
16 |
> |
17 |
> Here's a working configuration: |
18 |
> |
19 |
> stroller@hex ~ $ cat /etc/fstab |
20 |
> # /etc/fstab: static file system information. |
21 |
> # |
22 |
> # <fs> <mountpoint> <type> <opts> |
23 |
> <dump/pass> |
24 |
> |
25 |
> # NOTE: If your BOOT partition is ReiserFS, add the notail option |
26 |
> to opts. |
27 |
> LABEL=boot /boot ext2 noauto,noatime 1 2 |
28 |
> LABEL=root / ext4 noatime 0 1 |
29 |
> LABEL=swap none swap sw 0 0 |
30 |
> /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 |
31 |
> |
32 |
> # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for |
33 |
> # POSIX shared memory (shm_open, shm_unlink). |
34 |
> # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will |
35 |
> # use almost no memory if not populated with files) |
36 |
> shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
37 |
> |
38 |
> stroller@hex ~ $ sudo mount -v -L boot |
39 |
> /dev/sda1 on /boot type ext2 (rw,noatime) |
40 |
> stroller@hex ~ $ cat /boot/grub/grub.conf |
41 |
> default 0 |
42 |
> timeout 30 |
43 |
> splashimage=(hd0,0)/boot/grub/splash.xpm.gz |
44 |
> |
45 |
> title Gentoo Linux 2.6.28-gentoo-r1 |
46 |
> root (hd0,0) |
47 |
> kernel /boot/bzImage-2.6.28-gentoo-r1 root=/dev/sda6 |
48 |
> |
49 |
> stroller@hex ~ $ |
50 |
> |
51 |
> |
52 |
> If I simply change the kernel line of grub.conf to: |
53 |
> |
54 |
> kernel /boot/bzImage-2.6.28-gentoo-r1 root=LABEL=root |
55 |
> |
56 |
> Then I get a kernel panic upon boot: |
57 |
> VFS: Cannot open root device "LABEL=root" or unknown-block(0,0) |
58 |
> Please append a correct "root=" boot option; here are the available |
59 |
> partitions: |
60 |
> ... |
61 |
> Kernel Panic - not syncing: VFS Unable to mount root fs on |
62 |
> unknown-block(0,0) |
63 |
> |
64 |
> Full screenshot of kernel panic: |
65 |
> http://stuff.stroller.uk.eu.org/KernelPanic.png |
66 |
> |
67 |
> |
68 |
> Googling this error brings up quite a number of hits, and I reckon I |
69 |
> must have spent a couple of hours now trying the most popular |
70 |
> resolutions. This is quite a minor error - if I wasn't such an |
71 |
> obsessive-compulsive I could easily ignore it, but I am, and it's |
72 |
> frustrating the heck out of me. |
73 |
> |
74 |
> One forum thread / bug report suggests the ata_piix module is to |
75 |
> blame, but compiling that statically into my kernel doesn't help. |
76 |
> http://www.linuxquestions.org/questions/fedora-35/fc2-vfs-cannot-open-root-device-label-or-unknown-block00-269230/ |
77 |
> |
78 |
> https://bugzilla.redhat.com/show_bug.cgi?id=126953 |
79 |
> |
80 |
> Another post (can't find the reference now) suggests disabling |
81 |
> "Initial RAM filesystem and RAM disk (initramfs/initrd) support" but |
82 |
> that doesn't make any difference, either. |
83 |
> |
84 |
> Finally, this thread <http://kerneltrap.org/node/2318> says "check |
85 |
> your .config and look for CONFIG_BLK_DEV_IDE and |
86 |
> CONFIG_BLK_DEV_IDEDISK entries." This is quite an old post, however, |
87 |
> and these options aren't available in 2.6.28 (from my distro); I |
88 |
> enabled CONFIG_BLK_DEV_IDEPCI instead, but it has no positive effect. |
89 |
> |
90 |
> I had better mention that I am using a 3ware 9500 RAID controller on |
91 |
> the PCI bus. I suspect the problem is specific to this (and my |
92 |
> combination of modules / compiled-in kernel drivers), but I thought I |
93 |
> would throw the question out there & see if any other ext4 users had |
94 |
> also seen the same thing. |
95 |
> |
96 |
> Thanks in advance for any suggestions, |
97 |
> |
98 |
> Stroller. |
99 |
> |
100 |
> |
101 |
> |
102 |
|
103 |
You may have done this but just in case, you did use the tools to set |
104 |
the label on the drive right? tune2fs does it for ext2 and ext3. I'm |
105 |
not sure about ext4. |
106 |
|
107 |
I only mention this cause this sounds like something I would do. |
108 |
|
109 |
Dale |
110 |
|
111 |
:-) :-) |