Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VFS panic: Unable to mount root fs (SATA) [SOLVED]
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
electricsqrl
n00b
n00b


Joined: 21 Sep 2004
Posts: 18

PostPosted: Wed Jan 05, 2005 3:58 am    Post subject: VFS panic: Unable to mount root fs (SATA) [SOLVED] Reply with quote

I'm 100% stumped, and I'd appreciate help. This is my first install on a box with SATA hard drives. Here, the boot, swap, and root were /dev/sda1, sda2, sda3 instead of what I'm familiar with (hda1, hda2, hda3). Essentially, I did a s/hda/sda to the installation manual, rebooted, and got this as the most recent output:

Code:
hda: attached ide-cdrom driver.
hda: ATAPI 48X CD-ROM drive, 128 kB Cache, UDMA(33)
Uniform CD-ROM driver Revision 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
Linux Kernel Card Services 3.1.22
   options: [pci] [cardbus] [pm]
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
NET4: Unix domain socksets 1.0/SMP for Linux NET4.0.
ds: no socket drivers loaded!
VFS: Cannot open root device "sda3" or 08:03
PLease append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 08:03


For reference, here's my grub.conf and /etc/fstab:

Code:
default 0
timeout 5
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.4.26-r9
root (hd0,0)
kernel /kernel-2.4.26-gentoo-r9 root=/dev/sda3


Code:
/dev/sda1               /boot           ext2            noauto,noatime          1 2
/dev/sda3               /               reiserfs        noatime                 0 1
/dev/sda2               none            swap            sw                      0 0
none                    /proc           proc            defaults                0 0
none                    /dev/shm        tmpfs           defaults                0 0


Thoughts on how to proceed and fix this??? Many, many thanks yall.
_________________
pedro offers you his protection


Last edited by electricsqrl on Wed Jan 05, 2005 7:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
DrWoland
l33t
l33t


Joined: 13 Nov 2004
Posts: 603

PostPosted: Wed Jan 05, 2005 4:49 am    Post subject: Reply with quote

You don't seem to have SATA support compiled into your kernel - I don't see where SATA is even detected. My SATA harddrives are detected way after my IDE CD-Roms.
Back to top
View user's profile Send private message
MrApples
Guru
Guru


Joined: 13 Dec 2002
Posts: 511

PostPosted: Wed Jan 05, 2005 4:56 am    Post subject: Reply with quote

make sure you compiled in the necessary fs, scsi, and ide in your kernel
_________________
http://www.whatsinyourbox.org -- Technology discussion, news, and more.
Back to top
View user's profile Send private message
electricsqrl
n00b
n00b


Joined: 21 Sep 2004
Posts: 18

PostPosted: Wed Jan 05, 2005 4:17 pm    Post subject: Reply with quote

Excellent point, MrApples and DrWoland... indeed I had not put in SCSI/SATA support into my kernel.

To move forward, I decided what I deemed the "safe" route -- using genkernel. Genkernel ran without a hitch and used grub-install to re-install grub. Now everything seems to be detected upon booting, but I get this error:

Code:

>> Determining root device...
>> Block device /dev/sda3 is not a valid root device...
>> The root block device is unspecified or not detected.
   Please specify a device to boot, or "shell" for a shell...
boot()::


I'm not sure exactly what this means /dev/sda3 is definitely my root. Just messing around, I used the grub command to tab complete "root (hd0," and I saw my reiserfs root partition as (hd0,2). I mean, if it clearly finds my /dev/sda1 kernel at (hd0,0), what is the problem with finding /dev/sda3?

This is my new grub.conf for genkernel:

Code:
default 0
timeout 5
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.4.26-r14
root (hd0,0)
kernel /kernel-2.4.26-gentoo-r14 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /initrd-2.4.26-gentoo-r14


Again, many thanks...
_________________
pedro offers you his protection
Back to top
View user's profile Send private message
useche
n00b
n00b


Joined: 25 Feb 2004
Posts: 58
Location: Caracas, Venezuela

PostPosted: Wed Jan 05, 2005 5:22 pm    Post subject: Reply with quote

be sure that you compile all necessary support like: reiserfs, scsi, etc. You should build all this in the kernel. I mean, like [*] and not [m].

bye
_________________
Luis Useche
luis@gia.usb.ve | useche@gmail.com
Linux User: #355591
Back to top
View user's profile Send private message
electricsqrl
n00b
n00b


Joined: 21 Sep 2004
Posts: 18

PostPosted: Wed Jan 05, 2005 7:13 pm    Post subject: Reply with quote

Well, I should have stuck with a manual kernel config, because genkernel tends to screw the pooch on the SATA drives. (See for instance: https://forums.gentoo.org/viewtopic.php?t=269969)

When I enable the proper SATA support (see http://www.gentoo-wiki.com/HARDWARE_SATA), all is good...

thanks again guys
_________________
pedro offers you his protection
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