You are not logged in.

#1 2010-03-05 06:46:58

clint0n
Member
Registered: 2010-02-21
Posts: 5

[SOLVED]No filesystem could mount root

Hello this is my first post. After I installed archlinux x64 I got an error after the reboot which goes:

No filesystem could mount root
kernel panic - not syncing:VFS:Unable to mount root fs on unknown block (0,0)
Pid:1, comm: swapper not tainted 2.6.30-ARCH #1

(and then theres like 6 lines of hexadecimal stuff. if you need it let me know)

This is my 3rd time trying to install archlinux tonight with the same errors. I'm using ext3 for root and then a 5 gig swap. I printed out all 73 pages of the archlinux beginners guide and have been following it to the letter. Any help will be much appreciated. Also I never installed grub through the setup because I have grub2 from my ubuntu drive(I assume they would of conflicted with one another?) and I did a sudo grub-update on ubuntu before trying to run arch too in case you wanted to know.

Thank You.

**************SEE LAST POST FOR SOLUTION**********************

Last edited by clint0n (2010-03-06 08:40:26)

Offline

#2 2010-03-05 07:43:57

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: [SOLVED]No filesystem could mount root

Post your grub.cfg from ubuntu.

Offline

#3 2010-03-05 07:53:38

clint0n
Member
Registered: 2010-02-21
Posts: 5

Re: [SOLVED]No filesystem could mount root

here is my grub.cfg - http://pastebay.com/88425

and I also did filesystem check through gparted on the drive which came back good. results - http://pastebay.com/88426

Offline

#4 2010-03-05 20:02:50

clint0n
Member
Registered: 2010-02-21
Posts: 5

Re: [SOLVED]No filesystem could mount root

bump

Offline

#5 2010-03-05 20:24:01

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED]No filesystem could mount root

Ubuntu and Arch label devices differently. So check if it is /dev/sda1 from Arch.

I'm not quite familiar with grub2's config but I think linux /boot/vmlinuz26 root=/dev/sda1 should be changed to linux /boot/vmlinuz26 root=UUID=$root .


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#6 2010-03-05 21:29:13

clint0n
Member
Registered: 2010-02-21
Posts: 5

Re: [SOLVED]No filesystem could mount root

fsckd wrote:

Ubuntu and Arch label devices differently. So check if it is /dev/sda1 from Arch.

I can't because I cant get past the first load screen of arch.

I will try your suggestion for the grub though. I assume for the last part I should replace "UUID" with the actual UUID for the drive?

Thank You very much.

Offline

#7 2010-03-05 21:37:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED]No filesystem could mount root

If it helps, my grub2 entry looks like this:

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Arch Linux (on /dev/sdc1)" {
    insmod ext2
    set root=(hd2,1)
    search --no-floppy --fs-uuid --set cf984a2a-8892-4d79-a0dc-2fc81ee04edb
    linux /boot/vmlinuz26 root=/dev/disk/by-uuid/cf984a2a-8892-4d79-a0dc-2fc81ee04edb ro
    initrd /boot/kernel26.img
}

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2010-03-05 22:12:31

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED]No filesystem could mount root

clint0n wrote:

I will try your suggestion for the grub though. I assume for the last part I should replace "UUID" with the actual UUID for the drive?

No, from the example on the grub wiki, linux ($sgd_linux_kernel)$sgd_vmlinuz_path root=UUID=$sgd_root_uuid . It informs the kernel it is a UUID. $root is a variable which is set by search as you didn't specify a variable name. Bleh, honestly, I'm confused as well. I'm looking at this article. It's probably easier to just specify the UUID directly instead of using variables, linux /boot/vmlinuz26 root=UUID=a3c365b6-1cdc-4cb2-bea2-30c82614a583 . Alternatively you may want to do what jasonwryan does; I do the same as him. Be sure you don't add changes to grub.cfg directly or the next Ubuntu update might remove your changes.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#9 2010-03-06 08:55:36

clint0n
Member
Registered: 2010-02-21
Posts: 5

Re: [SOLVED]No filesystem could mount root

The following solution shows what I did to get arch to load. It works for grub 2 only.

In order to manually edit the grub menu you have to edit a file called 40_custom in /etc/grub.d/

Then I copied "jasonwryan's" above ^ menu entry AND REPLACED the UUID's with my own and put it into the 40_custom file. Use blkid in a terminal to find out what your's is. You also must change the (hd2,1) line to match your drive. The first number (2) means it's the 2nd drive, the (1) means it is the FIRST partition. The drives start at 0 and the partitions start at 1. Save the changes and then you must run sudo update-grub2 in a terminal in order for grub to know you have added a custom entry**DO NOT FORGET THIS**. Now you should be to run arch by picking the last grub entry. I have also attached my 40_custom for clarification.

My 40_custom - http://pastebay.com/88592

Thank you all so much everyone who replied. I love you all! smile

Offline

Board footer

Powered by FluxBB