LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-11-2006, 12:50 PM   #1
havok1977
Member
 
Registered: Apr 2005
Distribution: Mint KDE on the Desktop, Debian on the Server
Posts: 66

Rep: Reputation: 15
2.6.19: VFS: Cannot Open root device "sda1" or unknown-block(0,0)


VFS: Cannot Open root device "sda1" or unknown-block(0,0)
Kernel panic: VFS: Unable to mount root fs on /dev/sda1 (0,0)

I've been trying to compile a new 2.6.19 Kernel since a few days ago, and i just cant seem to fix this problem, i am using ReiserFS on my hard drive; and i made sure that the module for that FS is embedded in my Kernel binary:

CONFIG_REISERFS_FS=y
# CONFIG_REISERFS_CHECK is not set
# CONFIG_REISERFS_PROC_INFO is not set
CONFIG_REISERFS_FS_XATTR=y
# CONFIG_REISERFS_FS_POSIX_ACL is not set
# CONFIG_REISERFS_FS_SECURITY is not set

This is a Laptop with Serial ATA so the modules are there as well:

CONFIG_BLK_DEV_IDE_SATA=y


And my grub tells the MBR that where the root partition is:

title Debian GNU/Linux, kernel 2.6.19
root (hd0,0)
kernel /boot/vmlinuz-2.6.19 root=/dev/sda1 ro ramdisk_size=100000 lang=us apm=power-off nomce vga=791
savedefault

So, i dont know what im missing, i used the same configuration for the 2.6.18.3 version and everything works fine, in fact it is the running Kernel as i type this, so i hope that someone can help me out here, what am i missing?
 
Old 12-22-2006, 12:24 PM   #2
charleykadet
Member
 
Registered: Sep 2005
Location: Montreal
Distribution: Fedora Core 5, Gentoo, LFS
Posts: 83

Rep: Reputation: 15
between 2.6.18 and 2.6.19 kernel, it were a small difference in the config of s-ata drive. Sata drive is now in Device Drivers and not in scsi branch.. you need to reselect your controller and it should work
 
Old 12-23-2006, 02:19 AM   #3
ikeapimp
LQ Newbie
 
Registered: Dec 2006
Distribution: Gentoo, RHEL
Posts: 3

Rep: Reputation: 0
Thanks for the help, charleykadet - your answer was spot on.

Here's some of my details for others with the same problem. I upgraded my kernel from linux-2.6.18-gentoo-r1 to linux-2.6.19-gentoo-r2 (running Gentoo, obviously) and on boot I found that the new kernel remapped the root partition on my SATA drive from /dev/sda3 (in 2.6.18) to /dev/hda3. Not pretty.

Soooo ... using 'genkernel --menuconfig --oldconfig all', I selected the following:

Device Drivers --->
Serial ATA (prod) and Parallel ATA (experimental) drivers --->
<*> ATA device support
<*> Intel PIIX/ICH SATA support

The last option should be based on your hardware. I have a Toshiba Satellite M105 and selected the driver based on this line from 'lspci':

00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 02)

After a recompile and reboot, everything started working flawlessly.
 
Old 01-03-2007, 06:32 PM   #4
havok1977
Member
 
Registered: Apr 2005
Distribution: Mint KDE on the Desktop, Debian on the Server
Posts: 66

Original Poster
Rep: Reputation: 15
Still not working for me

Sorry for the late reply, i was out on vacation; but this issue is still not working for me after following the suggestions, i have a Lenovo T60 with the same SATA controller:

00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller AHCI (rev 02)

Anything else i should check?

Last edited by havok1977; 01-03-2007 at 06:35 PM.
 
Old 01-03-2007, 07:03 PM   #5
ikeapimp
LQ Newbie
 
Registered: Dec 2006
Distribution: Gentoo, RHEL
Posts: 3

Rep: Reputation: 0
Post the output of lspci - I'll see what I can find.
 
Old 01-03-2007, 07:58 PM   #6
PyroBoy101
LQ Newbie
 
Registered: Jan 2004
Distribution: Mandrake
Posts: 23

Rep: Reputation: 15
I seem to be in the same exact boat. Heres my lspci...

00:00.0 Host bridge: Intel Corporation 945G/GZ/P/PL Express Memory Controller Hub
00:01.0 PCI bridge: Intel Corporation 945G/GZ/P/PL Express PCI Express Root Port
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controller IDE (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600] (rev a2)
02:00.0 Ethernet controller: Intel Corporation 82573V Gigabit Ethernet Controller (Copper) (rev 03)
05:03.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
05:05.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)

CONFIG_ATA_PIIX=y
CONFIG_PATA_MPIIX=y
 
Old 01-03-2007, 08:15 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Have you seen this thread about grub and SATA?

http://www.linuxquestions.org/questi...d.php?t=454864

By the way, does your laptop actually have a SATA drive in it? If it's an ATA drive, the "CONFIG_PATA_MPIIX=y" might be your problem, as it will cause PATA drives to be under control of the SATA controller and probably would change them from HD to SD drives. You might turn that flag off just to check.
 
Old 01-04-2007, 09:34 AM   #8
havok1977
Member
 
Registered: Apr 2005
Distribution: Mint KDE on the Desktop, Debian on the Server
Posts: 66

Original Poster
Rep: Reputation: 15
Here is my lspci:

00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller AHCI (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
15:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller

And my Kernel config:

# Serial ATA (prod) and Parallel ATA (experimental) drivers
#
CONFIG_ATA=y
CONFIG_ATA_PIIX=y
CONFIG_SATA_INTEL_COMBINED=y

# CONFIG_BLK_DEV_IDE_SATA is not set


As i stated before, i am currently using the following locally compiled Kernel without a single issue:

root@raziel:/usr/src/linux# uname -a
Linux raziel 2.6.18.6 #1 SMP PREEMPT Tue Dec 19 18:17:23 CST 2006 i686 GNU/Linux

And i used these compile options:

# CONFIG_BLK_DEV_IDE_SATA is not set
CONFIG_SCSI_SATA=y
CONFIG_SCSI_SATA_AHCI=y
CONFIG_SCSI_SATA_INTEL_COMBINED=y

And yes, im sure that i have a SATA Hard Drive; not only because it works as SATA with my current kernel, but also the CD-ROM is IDE PATA and is configured as primary master (/dev/hda)
 
Old 01-04-2007, 10:14 AM   #9
havok1977
Member
 
Registered: Apr 2005
Distribution: Mint KDE on the Desktop, Debian on the Server
Posts: 66

Original Poster
Rep: Reputation: 15
I fixed my problem, by recompiling using this options:

# Serial ATA (prod) and Parallel ATA (experimental) drivers
#
CONFIG_ATA=y
CONFIG_SATA_AHCI=y
CONFIG_SATA_INTEL_COMBINED=y
 
Old 01-04-2007, 11:05 AM   #10
ikeapimp
LQ Newbie
 
Registered: Dec 2006
Distribution: Gentoo, RHEL
Posts: 3

Rep: Reputation: 0
Good to hear that you're back up and running. The PATA info is great as well.

I have to admit that I've gotten lazy by using menuconfig rather than hand editing the .config. Takes care of a lot of problems and dependencies (like the one above), but it occasionally messes me up as well.
 
Old 01-04-2007, 01:46 PM   #11
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
"CONFIG_SATA_INTEL_COMBINED=y"

Doesn't this say that IDE devices are SATA controlled? Or do I have this confused with something else? Regardless, glad you got it working!

ata/Kconfig:
config SATA_INTEL_COMBINED
bool
depends on IDE=y && !BLK_DEV_IDE_SATA && (SATA_AHCI || ATA_PIIX)
default y
 
Old 01-09-2007, 09:11 AM   #12
urza
LQ Newbie
 
Registered: Dec 2003
Location: Turin - Italy
Distribution: Slackware current
Posts: 15

Rep: Reputation: 0
I'm experiencing several troubles running 2.6.19.1 kernel on my vaio sz2M, which has the same sata controller of yours.
Sometimes it doesn't recognizes the sata controller during the boot and, naturally, cannot find the system disk.

And my lspci -v (sata controller):
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 02) (prog-if 8f [Master SecP SecO PriP PriO])
Subsystem: Sony Corporation Unknown device 81e6
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 21
I/O ports at 18d0 [size=8]
I/O ports at 18c4 [size=4]
I/O ports at 18c8 [size=8]
I/O ports at 18c0 [size=4]
I/O ports at 18b0 [size=16]
Memory at dc544400 (32-bit, non-prefetchable) [size=1K]
Capabilities: [70] Power Management version 2

I enabled Intel PIIX/ICH SATA support:
# CONFIG_BLK_DEV_IDE_SATA is not set
CONFIG_ATA=y
CONFIG_ATA_PIIX=y
CONFIG_SATA_INTEL_COMBINED=y


Since I haven't been experiencing problem until I upgraded to 2.6.19.1, I guess there's something buggy in it...

Thanks !

urza

Last edited by urza; 01-09-2007 at 09:13 AM.
 
Old 02-13-2007, 11:22 AM   #13
lg21
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Rep: Reputation: 0
Same here :/

Hello,
same here - but can't find SATA_INTEL_COMBINED :/, got:

# cat .config|grep CONFIG_ATA
CONFIG_ATALK=m
CONFIG_ATA_OVER_ETH=m
CONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not set
CONFIG_ATA_PIIX=y
# CONFIG_ATA_GENERIC is not set
# CONFIG_ATARI_PARTITION is not set


#cat .config|grep CONFIG_SATA
# CONFIG_SATA_AHCI is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SX4 is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIL24 is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set

# cat .config |grep EXT3
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y

# cat /etc/fstab
/dev/sda1 / ext3 defaults,errors=remount-ro 0 1
/dev/sda5 /home ext3 defaults 0 2
/dev/sda8 /var ext3 defaults 0 2
/dev/sda6 /home/lg21/movies ext3 defaults 0 2
/dev/sda7 /tmp ext3 defaults 0 2

/boot/grub/menu.lst:

title Debian GNU/Linux, kernel 2.6.20
root (hd0,0)
kernel /boot/vmlinuz-2.6.20 root=/dev/sda1 ro
savedefault

title Debian GNU/Linux, kernel 2.6.18-3-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-3-686 root=/dev/sda1 ro
initrd /boot/initrd.img-2.6.18-3-686
savedefault

(got ext as * in kernel, so I don't have to use initrd?)

lspci:# lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation GeForce Go 7400 (rev a1)
06:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
07:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8036 PCI-E Fast Ethernet Controller (rev 15)
09:04.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
09:04.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller
09:04.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD

Laptop: Sony SZ2M/B ... could anybody with similar laptop send me config on lukasz21@gmail.com?
 
Old 02-13-2007, 04:32 PM   #14
lg21
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Rep: Reputation: 0
At last

Hello,

on few forums I found that when i compile filesystem in kernel - don't need to use initrd - got <*> for all ext3, made:
# make-kpkg -initrd kernel_image kernel_headers modules_image

now works :P

Now I don't know how to turn on second core(Intel Core Duo 1.6GHz), I have:
<*> Symmetric multi-processing support
Processor family (Core 2/newer Xeon)

My kernel config is here: http://lg21.bestbit.org/config
(anybody knows how to turn on second core?)


Thanks for any clues/help in advance.

Last edited by lg21; 02-13-2007 at 04:36 PM.
 
Old 02-13-2007, 04:37 PM   #15
charleykadet
Member
 
Registered: Sep 2005
Location: Montreal
Distribution: Fedora Core 5, Gentoo, LFS
Posts: 83

Rep: Reputation: 15
For intel chip... you must compile AHCI in s-ata devices...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VFS: cannot open root device "sda3" or unknown-block (0,0) snakeo2 Linux - Newbie 10 07-05-2012 08:23 PM
VFS: Cannot open root device "805" or unknown-block(8,5) chameleonic Linux - Newbie 0 09-24-2006 03:34 PM
FC2; VFS: Cannot open root device "LABEL=/" or unknown-block(0,0) Starchild Fedora 11 01-18-2006 03:39 AM
New kernel - VFS: Cannot open root device "301" or unknown block(3,1) j0y Debian 2 04-30-2005 09:14 PM
VFS: Cannot open root device "1601" or unknown-block(22,1) takehora Slackware 3 06-11-2004 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration