New kernel hangs mounting local filesystems

New kernel hangs mounting local filesystems

Post by Eddi » Sun, 08 Jun 2003 18:22:12



For one reason and another, I decided it was about time I upgraded my
2.4.10 kernel to 2.4.20.

Once I'd remembered all the bits and pieces that needed to be done,
everything seemed to be going swimmingly, and the new kernel was booting
up nicely as expected... until it got to "Mounting local filesystems",
when it just sat there doing * all, apart from lighting up the
'disk acccess' light on the case.

"Oh, dear", I thought.

Anybody got any suggestions as to what the problem could be? I've got a
feeling there might something I've forgotten, but I can't think what -
it manages to mount the root filesystem no problem, so there can't be
anything really serious wrong, I'd have thought...

--

 
 
 

New kernel hangs mounting local filesystems

Post by Hagbard Celin » Mon, 09 Jun 2003 07:12:21



> For one reason and another, I decided it was about time I upgraded my
> 2.4.10 kernel to 2.4.20.

> Once I'd remembered all the bits and pieces that needed to be done,
> everything seemed to be going swimmingly, and the new kernel was booting
> up nicely as expected... until it got to "Mounting local filesystems",
> when it just sat there doing * all, apart from lighting up the
> 'disk acccess' light on the case.

> "Oh, dear", I thought.

> Anybody got any suggestions as to what the problem could be? I've got a
> feeling there might something I've forgotten, but I can't think what -
> it manages to mount the root filesystem no problem, so there can't be
> anything really serious wrong, I'd have thought...

The first thing that came to my mind would be as to what
filesystem(ext2,ext3,reiserfs) you are using, and if the drivers
respectively are compiled into the kernel or as modules. If module, it may
not have loaded properly for some odd reason. What distro are you using?
Are you able to boot into the root-fs via the boot-loader? If so, what does
/var/log/messages say?

Should not be too hard to fix, I guess... ;)
--
Gentoo Base System version 1.4.3.8p1
Linux 2.5.70 i686 AMD Athlon(TM)Processor GNU/Linux

 
 
 

New kernel hangs mounting local filesystems

Post by Eddi » Tue, 10 Jun 2003 02:38:55



> The first thing that came to my mind would be as to what
> filesystem(ext2,ext3,reiserfs) you are using,

ext2 and vfat

Quote:> and if the drivers respectively are compiled into the kernel or as
> modules. If module, it may not have loaded properly for some odd
> reason.

Compiled into the kernel, so that's not the problem.

Quote:> What distro are you using?

It was originally RedHat 6.0, but it's been upgraded a lot.

Quote:> Are you able to boot into the root-fs via the boot-loader?

Ah-hah! If I boot into single-user mode, from there I can do an 'init 3'
and get into multi-user mode. How strange...

Quote:> If so, what does /var/log/messages say?

Nothing out of place, AFAICT.

Quote:> Should not be too hard to fix, I guess... ;)

It's probably something obvious, but I don't know what.

--

 
 
 

New kernel hangs mounting local filesystems

Post by Eddi » Tue, 10 Jun 2003 17:44:39



> Ah-hah! If I boot into single-user mode, from there I can do an 'init 3'
> and get into multi-user mode. How strange...

>> If so, what does /var/log/messages say?

> Nothing out of place, AFAICT.

... but I have noticed something in dmesg that might be relevant:

usbdevfs: remount parameter error

--

 
 
 

New kernel hangs mounting local filesystems

Post by Hagbard Celin » Wed, 11 Jun 2003 01:51:12



> usbdevfs: remount parameter error

Hmm. Odd one - could be related to /proc not loading or a kernel-config
error incorrectly handled during the dependency-check. Could you be so kind
and post your fstab?
I'm not that proficient with USB on linux; fiddled with a camera once, and
it just worked out of the box. ;)

--
Gentoo Base System version 1.4.3.8p1
Linux 2.5.70 i686 AMD Athlon(TM)Processor GNU/Linux

 
 
 

New kernel hangs mounting local filesystems

Post by Eddi » Wed, 11 Jun 2003 02:04:18




>> usbdevfs: remount parameter error

> Hmm. Odd one - could be related to /proc not loading or a kernel-config
> error incorrectly handled during the dependency-check.

I think there's something funny going on with /proc - if I start with
'init=/bin/sh', there's absolutely nothing in /proc. Although maybe
there's not meant to be.

Quote:> Could you be so kind and post your fstab?

Well, if you think it'll help...

/dev/hda5               /                       ext2    defaults        1 1
/dev/hda10              /home                   ext2    defaults        1 2
/dev/hda1       /mnt/c  vfat     user,exec,dev,suid,rw,uid=500 0 0
/dev/hda6       /mnt/d  vfat     user,exec,dev,suid,rw,uid=500 0 0
/dev/hda7       /mnt/e  vfat     user,exec,dev,suid,rw,uid=500 0 0
/dev/hda8       /mnt/f  vfat     user,exec,dev,suid,rw,uid=500 0 0
/dev/hda13               /usr                    ext2    defaults        1 2
/dev/hda12              /var                    ext2    defaults        1 2
/dev/hda11              swap                    swap    defaults        0 0
/dev/fd0                /mnt/floppy             ext2    noauto          0 0
/dev/cdrom      /mnt/cdrom      auto     user,exec,dev,suid,ro,noauto 0 0
/dev/cdrom      /mnt/cdudf      udf      user,exec,dev,suid,ro,noauto 0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/pts                devpts  mode=0622       0 0
/dev/hda9       /usr2   ext2     exec,dev,suid,rw 1 1
/dev/cdrw       /mnt/cdrw       auto     user,exec,dev,suid,ro,noauto 1 1
#/dev/hdb       /mnt/ls120      vfat     user,exec,dev,suid,rw,noauto 1 1
/dev/hda3       /usr/local/games        ext2     exec,dev,suid,rw 1 1
usb             /proc/bus/usb   usbdevfs        devmode=0666    0       0
192.168.1.3:/C  /mnt/wetherspoons       nfs     noauto,user,rw  0       0
192.168.1.63:/C /mnt/shorty     nfs     noauto,user,rw  0       0

What a mess. It's a bit bit, isn't it?

Quote:> I'm not that proficient with USB on linux; fiddled with a camera once, and
> it just worked out of the box. ;)

I've usually got a digital camera and a printer hooked up to it, and
I've also had a * - never had any problems like this, though...

--

 
 
 

1. new kernel fails to mount filesystems

What could cause a newly compiled kernel to not find any file system
besides /hda ?
I just did an update from SuSE 6.4 to 7.3. The machine boots just fine with
the SuSE kernel (2.4.10). I grabbed the sources for 2.4.18, as that's what
I'm runing on other machines and compiled/installed.
It's a procedure that I've done maybe 5 or 6 times.

The new kernel fails during boot because it doesn't seem to be able to find
any partition besides /dev/hda
Swap activation fails, I can't find any of the /dev/hda?.
If I reboot the old kernel no problem, all the /dev/hda? partitions
are there.
If I do mount, it shows
/dev/hda1 mounted on / type ext2 (rw)

But if I do "ls /dev/hda1" I can't find it.
And if I do "mount -a"  it gives me an error message for each entry in
my fstab file:
mount: special device /dev/hda<x> does not exist
(where x is 2..10)

Any suggestion ?

thanks,

-- Miko

2. caller id solutions

3. New kernel hangs when mounting root

4. Upgrading, Have 5x86-133/VLB Setup FS

5. when mount a local filesystem, memory is used up and so much paging.

6. defragfs - problem..

7. system hangs when filesystem is mounted

8. if-then-else in a make description file (SHELL=/usr/bin/csh)

9. VFS: Mounted root (ext2 filesystem) readonly ... HANG!

10. 'mount' perma-hangs for any filesystem or device

11. hangs at VFS:Mounted root (ext2 filesystem) readonly

12. YDL CS 1.2: New install hangs at "Checking root filesystem"

13. Linux-FT Install problem: hangs after writing superblocks etc on new filesystem