Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XFS & Please append a correct "root=" kernel panic
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Psih
n00b
n00b


Joined: 22 Dec 2005
Posts: 26

PostPosted: Tue Jan 06, 2009 11:38 am    Post subject: XFS & Please append a correct "root=" kernel p Reply with quote

Hello everyone, I've stuck with this error not the first time, I know the solution to build into kernel all major filesystems (jfs, reiserfs, ext2/3) - usualy that solve the problem, but I really want to understand what is _wrong_.

Boot log:
Quote:

VFS: Unable to mount root fs via NFS, trying floppy.
VFSL Cannot open root device "sda2" or unknown-block(2,0)
Please append a correct "root=" option: here are the avaliable partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)


Grub config
Quote:

default 0
timeout 30
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.27-r7
root (hd0,1)
kernel /boot/linux-2.6.27-gentoo-r7 root=/dev/sda2


I have 2 partitions - sda1 is swap and sda2 is /. I mapped disk with cfdisk, so I'm 100% sure of my disk layout and I don't have any other disks. My root partition is XFS, so I enabled all XFS options except debbuging support, everything else I left by default.
I have nVidia chipset based motherboard and AMD X2 CPU, so I use AMD64 Gentoo 2008 minimal installation, downloaded stage3 and portage snapshot from internet, kernel is latest stable gentoo-sources 2.6.27-r7

This is not the first time I bump this error, I realy can't understand why it's appearing. I've checked everything 3 times and this is my 20-30 gentoo install, so I'm not new to it.

P.S. Is there any chance to restart the system besides pressing reset button (I use KVM because server is in different country and asking admins to press reset for the 4-th time really shames me...)? Alt+Crtl+Delete doesn't work, tried that magic Alt + PrintScreen + r + b... thing, didn't helped (maybe I did something wrong, I don't know)
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Tue Jan 06, 2009 2:48 pm    Post subject: Reply with quote

AFAIK grub can't read an XFS partition so your /boot stuff won't be accessible.

I've had to create its own /boot partition on any system I wanted to use XFS on.
Back to top
View user's profile Send private message
bastibasti
Guru
Guru


Joined: 27 Nov 2006
Posts: 590

PostPosted: Tue Jan 06, 2009 2:53 pm    Post subject: Reply with quote

Could also be that the kernel doesnt recognize the harddrive. Have you enabled the IDE/SATA controller in the kernel (IN KERNEL, not module)
Please check the output while booting and see whethere there's something like this:
Code:

ata4.00: configured for UDMA/100
scsi 2:0:0:0: Direct-Access     ATA      MAXTOR STM332082 3.AA PQ: 0 ANSI: 5
sd 2:0:0:0: [sda] 625142448 512-byte hardware sectors (320073 MB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 2:0:0:0: [sda] 625142448 512-byte hardware sectors (320073 MB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 < sda5 sda6 sda7 sda8 sda9 sda10 >


you can see that it found the harddrie and the partitions in the last line
Back to top
View user's profile Send private message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 853
Location: germany

PostPosted: Thu Jan 08, 2009 8:55 am    Post subject: Reply with quote

hi!

i found a link that could make it work:

http://www.mail-archive.com/bug-grub@gnu.org/msg10770.html

but i havent tested this. i use a ext2 filesystem in my /boot partition to be safe and this works like a charm without any problems.

i see that you only have a / partition. if you want to use your partition config you should try the link, otherwise give an extra /boot partition a try...

HTH
snIP3r
_________________
Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Back to top
View user's profile Send private message
sudokode
n00b
n00b


Joined: 23 Jan 2009
Posts: 7
Location: Delaware

PostPosted: Fri Jan 23, 2009 4:21 am    Post subject: Reply with quote

As I said in this post, https://forums.gentoo.org/viewtopic-t-729581-highlight-kernel+panic+xfs.html , if you're using an older IDE hdd (like I am, Hitachi Deskstar ftw!), then you'll want to make sure you have the ATA/EIDE section enabled in the kernel as well as SATA/PATA. Depending on what you require, of course.

And, btw, GRUB does work with XFS now. Cause that's the first issue I looked up when I had this issue.

tims-box ~ # df -t xfs -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 12G 3.5G 7.7G 32% /
/dev/hda4 62G 4.3M 62G 1% /home

tims-box ~ # ls /boot
boot grub linux-2.6.27-gentoo-r8 lost+found

However, I'm using an ext2 FS for the boot. I always use that just cause I know it'll work and it's suitable for 32MB.
_________________
tims-box ~ # uname -a
Linux tims-box 2.6.27-gentoo-r8 #2 SMP Thu Jan 22 06:47:53 EST 2009 x86_64 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux

In a world without fences, who needs Gates?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum