You are not logged in.

#1 2012-03-06 22:06:58

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

(SOLVED) Kernel can't find root fs

Hello to all!
For some odd reason, my recently installed arch won't recognize it's root filesystem. I installed arch on /dev/sda10, and I have a separate /boot partition on /dev/sda1
GRUB 0.97 Config (arch line):

title  Arch Linux
root   (hd0,0)
kernel /vmlinuz-linux root=/dev/sda10 rw vga=795
initrd /initramfs-linux.img

fstab:

tmpfs		/tmp	tmpfs	nodev,nosuid	0	0
/dev/sda10 / ext4 defaults 0 1
/dev/sda1 /boot ext4 defaults 0 1
/dev/sda12 swap swap defaults 0 0

Thanks for the help!

Last edited by Spartacus1 (2012-03-07 16:03:25)

Offline

#2 2012-03-06 22:10:32

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: (SOLVED) Kernel can't find root fs

Disregard.

Last edited by alphaniner (2012-03-06 22:11:04)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#3 2012-03-06 22:15:49

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

Re: (SOLVED) Kernel can't find root fs

sad

Offline

#4 2012-03-06 22:23:57

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: (SOLVED) Kernel can't find root fs

Sorry, I gave some stupid advice and wanted to quickly hide my shame.

It might be helpful if you could be more specific about the error, though.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#5 2012-03-06 22:39:35

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,334

Re: (SOLVED) Kernel can't find root fs

Spartacus1 wrote:

...

root   (hd0,0)

...

Well  there's your problem tongue

You are pointing to the boot partition, not the root partition.  Try (hd0,9)

Last edited by ewaller (2012-03-06 22:40:00)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2012-03-06 22:40:19

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

Re: (SOLVED) Kernel can't find root fs

Ok, I forgive.
My arch root is on /dev/sda10, my boot partition is on /dev/sda1.
Whenever I boot up arch, I get a message saying "Special device /dev/sda10 doesn't exist" and I'm dropped to a recovery shell (the same happens with fallback).  I also tried using UUID, and the same happened.
In the recovery shell I've tried "mount -t ext4 /dev/sda10 /" and it says the same + "Bad filesystem" although with other distros I can mount it fine.
Thanks for the quick responses!

Offline

#7 2012-03-06 22:41:18

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

Re: (SOLVED) Kernel can't find root fs

@ewaller
I have the kernel on /dev/sda1, which would probably mean hd0,0

Last edited by Spartacus1 (2012-03-06 22:43:23)

Offline

#8 2012-03-06 22:48:24

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,152

Re: (SOLVED) Kernel can't find root fs

I don't think this is the cause of the problem but you shouldn't have two partitions listed with fsck priority 1 in fstab. Root should be 1 and anything else you want checked should be 2.

You might try:
- identifying partitions using UUID [Edit: I just saw your later post saying you'd tried this]
- using ext2 or ext3 for /boot rather than ext4 which legacy grub does not officially support (although it should work according to the wiki even so)

Last edited by cfr (2012-03-06 22:50:30)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2012-03-06 22:49:40

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

Re: (SOLVED) Kernel can't find root fs

@cfr
I'll give that a try

Offline

#10 2012-03-06 22:57:18

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

Re: (SOLVED) Kernel can't find root fs

@cfr
No success, but thanks anyway

Offline

#11 2012-03-06 23:12:01

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,334

Re: (SOLVED) Kernel can't find root fs

Spartacus1 wrote:

@ewaller
I have the kernel on /dev/sda1, which would probably mean hd0,0

you are right, my bad sad


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#12 2012-03-07 03:23:53

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

Re: (SOLVED) Kernel can't find root fs

Should I send this in as a bug report as it seems multiple people are having the same issue?  (I used netinst image)

Offline

#13 2012-03-07 03:30:13

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: (SOLVED) Kernel can't find root fs

If you want it closed immediately, sure. This is a configuration issue, not a bug in mkinitcpio or your bootloader.

Offline

#14 2012-03-07 03:30:33

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,334

Re: (SOLVED) Kernel can't find root fs

From the Grub command line, try typing root (hd0, and then press Tab.  Does it display the partition map you would expect?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#15 2012-03-07 03:36:27

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

Re: (SOLVED) Kernel can't find root fs

@ewaller
Yes

Offline

#16 2012-03-07 04:15:14

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,334

Re: (SOLVED) Kernel can't find root fs

Okay hmm

In the recovery shell, does ls /dev/sd* include /dev/sda10?  If not, is it possible partition 10 is on another drive?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#17 2012-03-07 04:27:46

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

Re: (SOLVED) Kernel can't find root fs

I get a message when I run "ls /dev/sd*" and "ls /dev/sda" saying "No such file or directory", and I'm sure I'm on the right drive for it is the only one I got.

Offline

#18 2012-03-07 05:10:07

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,334

Re: (SOLVED) Kernel can't find root fs

Well, that is unfortunate.

From the recovery shell, can you check to see which kernel modules are loaded using the lsmod command?
I have a feeling that your initrd is hosed, we may need recover using chroot. 

Have you tried the fallback initrd ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#19 2012-03-07 05:25:26

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

Re: (SOLVED) Kernel can't find root fs

Yes, I have tried the fallback, and I get the same result
I'll report back with "lsmod"

Offline

#20 2012-03-07 05:38:36

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

Re: (SOLVED) Kernel can't find root fs

ismod reports:

sr_mod
cdrom
pata_acpi
ata_piix
libata
scsi_mod
uhci_hcd
ehci_hcd
usbcore
usb_common

Offline

#21 2012-03-07 06:29:25

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,334

Re: (SOLVED) Kernel can't find root fs

You don't seem to have sd_mod in that list.  That means you wont have /dev/sd* nodes.  Quod erat demonstrandum.

Could you please check to see if the recovery shell has any /dev/hd* nodes?
It might be time to boot from the iso cd and look at the output of lsusb -nn to get an idea of your hardware.
You don't have anything exotic set up do you?  Like a RAID set?
Can you confirm that you are using a stock kernel?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#22 2012-03-07 12:35:44

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: (SOLVED) Kernel can't find root fs

Even if he was using raid or lvm, the underlying block devices should have shown up. You will never see hd* nodes unless you're using the ancient IDE subsys which is only left in the lts kernel.

Posting your /etc/mkinitcpio.conf and the output of 'lsinitcpio -a' against your initramfs image would seem prudent...

Last edited by falconindy (2012-03-07 14:40:44)

Offline

#23 2012-03-07 15:23:05

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

Re: (SOLVED) Kernel can't find root fs

@ewaller
I am using the latest Official Arch kernel as of March 5th 2012.
I have Arch installed on a USB drive.

@falconindy
I'll post that.

Last edited by Spartacus1 (2012-03-07 15:38:00)

Offline

#24 2012-03-07 15:44:49

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

Re: (SOLVED) Kernel can't find root fs

mkinitcpio.conf (with hashtags removed):

MODULES=""
BINARIES=""
FILES=""
HOOKS="base udev autodetect pata scsi sata filesystems usbinput"

Offline

#25 2012-03-07 15:49:08

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: (SOLVED) Kernel can't find root fs

Spartacus1 wrote:

I have Arch installed on a USB drive.

$ mkinitcpio -H usb
==> Help for hook 'usb':
This hook loads the necessary modules for an usb root device.  Detection will
take place at runtime. To minimize the modules in the image, add the autodetect
hook too.

Last edited by alphaniner (2012-03-07 15:49:31)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

Board footer

Powered by FluxBB