You are not logged in.

#1 2008-07-28 04:18:53

kristersaurus
Member
Registered: 2008-07-25
Posts: 13

Root filesystem won't mount.

Im getting a file not found/kernel panic error when the kernel tries to mount my root filesystem.

The partition is being specified correctly on the grub kernel line and I dont believe it is a module issue - this happens for both ext2 and ext3 partitions, but not all - just my arch partition.

So what else could cause the kernel to not mount it?

Offline

#2 2008-07-28 06:43:15

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Root filesystem won't mount.

Faulty init image.Try booting with the fallback image - if that works, regenerate the default image with mkinitcpio.

Offline

#3 2008-07-29 03:52:07

kristersaurus
Member
Registered: 2008-07-25
Posts: 13

Re: Root filesystem won't mount.

thanks for the suggestion!

ill give that a shot right away.

Offline

#4 2008-07-30 03:36:32

kristersaurus
Member
Registered: 2008-07-25
Posts: 13

Re: Root filesystem won't mount.

ok, i tried the fallback image. same problem. so i tried making a new image with mkinitcpio and now the kernel no longer panics when trying to mount the root fs, it just tells me it cant find /dev/sda3 (which is the correct location of my arch partition). my mkinitcpio.conf is as follows:

(modules, files, binaries all blank)

    HOOKS="base udev autodetect pata scsi sata filesystems"

Any other hooks or modules I should try? My root filesystem is ext2.

Offline

#5 2008-07-30 03:39:59

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: Root filesystem won't mount.

FWIW, my mkinitcpio.conf has this in the MODULES section:

MODULES="pata_acpi pata_via ata_generic sata_via"

Perhaps you need to add those (or something similar) to yours then regenerate initrd?

Offline

#6 2008-07-30 04:14:51

kristersaurus
Member
Registered: 2008-07-25
Posts: 13

Re: Root filesystem won't mount.

cant hurt!

ill give it a shot.

Offline

#7 2008-07-30 04:18:45

kristersaurus
Member
Registered: 2008-07-25
Posts: 13

Re: Root filesystem won't mount.

another issue worth mentioning - when i initially ran mkinitcpio and it parsed the autodetect hook, it gave me a /sys/devices not found error message. I am doing all this maintenance on my arch partition by chrooting into it on my ubuntu install. i mount --bind'ed the /sys/ directory of my ubuntu partition to my arch /sys/ partition, which got rid of the error message, but i dont know if it actually helps - the /sys/devices folder is empty in ubuntu. dont know if thats of any relevance because i dont know how autodetect parsing works.

Offline

#8 2008-07-30 04:23:38

kristersaurus
Member
Registered: 2008-07-25
Posts: 13

Re: Root filesystem won't mount.

also, when i run mkinitcpio, it seems to be looking for modules in 2.6.24.19-generic in /lib/modules...this isnt right, where can i change it? (should be /lib/modules/2.6.25-ARCH as far as I can tell)

Offline

#9 2008-07-30 04:40:07

kristersaurus
Member
Registered: 2008-07-25
Posts: 13

Re: Root filesystem won't mount.

alright, alright, sorry to spam, but i figured out my mkinitcpio woes. and i found something i should have caught much sooner.

i believe the filesystem is being mounted, but the problem is actually afterward, with kinit...here is the last 3 lines of the boot process:

kinit: mounted root (ext2 filesystem) readonly
sh: root=/dev/sda3: No such file or directory
Kernel panic - not syncing: Attempting to kill init!

Offline

#10 2008-07-30 07:01:05

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: Root filesystem won't mount.

Can you run fdisk -l as root and post the output?
(That's a lower-case L, not a capital I)

Offline

#11 2008-07-30 17:47:22

kristersaurus
Member
Registered: 2008-07-25
Posts: 13

Re: Root filesystem won't mount.

Disk /dev/sda: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x86338633

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2940    23615518+  83  Linux
/dev/sda2            3588        3648      489982+  82  Linux swap / Solaris
/dev/sda3            2941        3587     5197027+  83  Linux

Partition table entries are not in disk order

sda1 is my ubuntu partition (ext3) im currently running. sda3 is arch (ext2)

Last edited by kristersaurus (2008-07-30 17:48:14)

Offline

#12 2008-07-30 23:32:29

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: Root filesystem won't mount.

I don't know if this is the problem, but it might help to fix the partition table order.

Looking at the post here:
http://ubuntuforums.org/archive/index.php/t-108649.html
Post #4 by "roelofs" mentions about kernel panics etc, as well as instructions on how to fix it (fdisk, expert mode, 'f'ix, 'w'rite)

Sorry I can't be more help.

Last edited by fukawi2 (2008-07-30 23:33:00)

Offline

#13 2008-07-31 00:30:14

kristersaurus
Member
Registered: 2008-07-25
Posts: 13

Re: Root filesystem won't mount.

Hey, you have been a good deal of help by asking constructive questions. I will give that a shot.

Offline

#14 2008-07-31 03:02:21

kristersaurus
Member
Registered: 2008-07-25
Posts: 13

Re: Root filesystem won't mount.

No joy. But ummm my partitions are in order now. So thats good.

Offline

#15 2008-07-31 03:22:38

kristersaurus
Member
Registered: 2008-07-25
Posts: 13

Re: Root filesystem won't mount.

Would this spark any more ideas in another section?

Offline

#16 2008-07-31 03:59:54

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: Root filesystem won't mount.

This is probably the best place for it - maybe in the kernel section...

I'm out of ideas though sad

Offline

#17 2008-07-31 12:22:39

rooloo
Member
Registered: 2008-07-09
Posts: 218

Re: Root filesystem won't mount.

UUID, search the wiki

http://wiki.archlinux.org/index.php/Per … ice_naming

if you still get a kernel panic, I'd suggest pulling out an antique HD and try installing on a separate disk.

Have u tried a new arch ISO, booting that kernel, but using your partition from the disk?

try this method,

http://wiki.archlinux.org/index.php/Kernel_Panics

Last edited by rooloo (2008-07-31 12:29:51)

Offline

Board footer

Powered by FluxBB