2001-12-08 13:13:45

by Sebastian Droege

[permalink] [raw]
Subject: [2.5.1-pre7] VFS: Cannot open root device "341" or 03:41

Hi,
When booting a virgin 2.5.1-pre7 kernel I get this panic:
VFS: Cannot open root device "341" or 03:41
Please append a correct "root=" boot option
Kernel Panic: VFS: Unable to mount root fs on 03:41

2.5.1-pre6 boots fine with the same .config and /etc/lilo.conf

When I add root=/dev/hdb1 to the kernel commandline I get the same error

hdb isn't detected by my BIOS but by the kernel. I have a boot partition (hda1)

Attached you find my .config and lilo.conf

Bye


Attachments:
.config (19.94 kB)
(No filename) (189.00 B)
Download all attachments

2001-12-08 13:28:12

by Alexander Viro

[permalink] [raw]
Subject: [FIX] Re: [2.5.1-pre7] VFS: Cannot open root device "341" or 03:41



On Sat, 8 Dec 2001, Sebastian [ISO-8859-1] Dr?ge wrote:

> Hi,
> When booting a virgin 2.5.1-pre7 kernel I get this panic:
> VFS: Cannot open root device "341" or 03:41
> Please append a correct "root=" boot option
> Kernel Panic: VFS: Unable to mount root fs on 03:41

--- C1-pre7/init/do_mounts.c Fri Dec 7 20:48:43 2001
+++ linux/init/do_mounts.c Sat Dec 8 06:29:20 2001
@@ -351,8 +351,9 @@
mount("devfs", ".", "devfs", 0, NULL);
retry:
for (p = fs_names; *p; p += strlen(p)+1) {
- err = mount(name,"/root",p,root_mountflags,root_mount_data);
- switch (err) {
+ errno = 0;
+ mount(name,"/root",p,root_mountflags,root_mount_data);
+ switch (-errno) {
case 0:
goto done;
case -EACCES: