All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] make 2.5.49 mount root again for devfs users
@ 2002-11-25 12:46 Helge Hafting
  2002-11-25 18:30 ` Milton Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Helge Hafting @ 2002-11-25 12:46 UTC (permalink / raw)
  To: linux-kernel, viro, rgooch

init/do_mounts.c changed in 2.5.48, and booting with devfs
(and without initial ramdisk) has been impossible since then.  
I experimented with do_mounts undoing the early devfs mount.  
Devfs is mounted later anyway.

Feel free to test, but be warned that I am not an expert
on this part of the kernel.  This made 2.5.49 work for
me though.  I hope someone can comment on this.
If it isn't "the right way" please tell what is.

Helge Hafting


--- do_mounts.c.original        2002-11-25 12:41:48.000000000 +0100
+++ do_mounts.c 2002-11-25 13:34:58.000000000 +0100
@@ -846,10 +846,7 @@
 {
        int is_floppy;
 
-#ifdef CONFIG_DEVFS_FS
-       sys_mount("devfs", "/dev", "devfs", 0, NULL);
-       do_devfs = 1;
-#endif
+
 
        md_run_setup();

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] make 2.5.49 mount root again for devfs users
@ 2002-11-25 14:22 Helge Hafting
  0 siblings, 0 replies; 4+ messages in thread
From: Helge Hafting @ 2002-11-25 14:22 UTC (permalink / raw)
  To: jordan.breeding; +Cc: linux-kernel

>Does your patch break being able to mount root with things 
>like "root=/dev/discs/disc0/part9" 
>and/or "root=/dev/scsi/host0/bus0/id0/lun0/part9"?  For people with devfs 
>enable kernels those are valid boot entries and should not end up getting 
>broken needlessly.

I have devfs, and my /etc/lilo.conf contains this:

boot=/dev/ide/host0/bus0/target0/lun0/disc
root=/dev/ide/host0/bus0/target0/lun0/part4

I haven't tried to put this in a command line
option, but it works fine from lilo.

The reason fro the patch is that I couldn't boot
with devfs anymore, I'd get a 
"panic: couldn't mount root at 03:04"
or similiar, depending on which machine I used.

Now I don't get that, it just works.

Have you been able to boot a devfs-enabled
2.5.48 or later?  On a machine where /dev
is only a empty directory - a mountpoint
for devfs use?



Helge Hafting

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] make 2.5.49 mount root again for devfs users
@ 2002-11-25 18:06 Mohamed El Ayouty
  0 siblings, 0 replies; 4+ messages in thread
From: Mohamed El Ayouty @ 2002-11-25 18:06 UTC (permalink / raw)
  To: helgehaf; +Cc: linux-kernel, viro, rgooch

Ok, what I experienced is if I configured the kernel with:

CONFIG_UNIX98_PTYS = Y
CONFIG_DEVFS_FS = Y
CONFIG_DEVFS_MOUNT = Y

everything works correctly, but if I configure with only:

CONFIG_UNIX98_PTYS = N
CONFIG_DEVFS_FS = Y
CONFIG_DEVFS_MOUNT = Y

it gives me a panic:

VFS: Cannot open root device "hda2" or 03:02
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 03:02

Hope this helps

Mohamed

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] make 2.5.49 mount root again for devfs users
  2002-11-25 12:46 [PATCH] make 2.5.49 mount root again for devfs users Helge Hafting
@ 2002-11-25 18:30 ` Milton Miller
  0 siblings, 0 replies; 4+ messages in thread
From: Milton Miller @ 2002-11-25 18:30 UTC (permalink / raw)
  To: Helge Hafting; +Cc: Linux Kernel Mailing List

What you did was bypass devfs, and cause create_dev to mknod a file
with the device number of your root instead of creating a symlink
to the normal devfs node.

Is your booter translating the device name into a number?  You can
check this by looking at the printed comand line in the dmesg, or
by cat /proc/cmdline .

If you see root=0304 then your booter is translating the device number
and therefore find_in_devfs is failing (possibly because of the previously
metioned patch to read_dir).

I notice that there are lots of hardcoded maxdepth of 64 characters for
the devfs path, but yours seems to be 39 and therefore should be ok.

milton

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-11-25 18:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-25 12:46 [PATCH] make 2.5.49 mount root again for devfs users Helge Hafting
2002-11-25 18:30 ` Milton Miller
  -- strict thread matches above, loose matches on Subject: below --
2002-11-25 14:22 Helge Hafting
2002-11-25 18:06 Mohamed El Ayouty

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.