View previous topic :: View next topic |
Author |
Message |
laci92 n00b
Joined: 28 Aug 2011 Posts: 32
|
Posted: Mon Aug 29, 2011 6:16 pm Post subject: Problem installing Gentoo, boot error |
|
|
I attempted to install Gentoo (AMD64 install), but some problems occurred (first-timer here, btw ).
I did everything by the manual, partitioned my HDD, had to manually compile the kernel (couldn't compile it with genkernel for some reason), installed GRUB. The problem is when I choose Gentoo from the GRUB menu, it won't boot.
Here is the error I receive:
Code: |
VFS: Cannot open root device "sda3" or unknown-block(0,0)
Please append a correct "root=" option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Pid: 1, comm: swapper Not tainted 2.6.39-gentoo-r3 #2
|
I'm dual booting with Windows 7 and I don't use a /boot partition.
Here is my /etc/fstab: http://pastebin.com/Nvy6FEyZ
My grub.conf: http://pastebin.com/eM4tmTya
When I compiled the kernel, I used a kernel seed from kernel-seeds.org and enabled everything I need. This is what the config looks like after my changes: http://pastebin.com/qdL9hVrE
I used SystemRescue for the install. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Aug 29, 2011 6:28 pm Post subject: |
|
|
This typically means that you didn't include the driver for your hard drive controller in the kernel. Please boot up in the install CD and post the output of- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
laci92 n00b
Joined: 28 Aug 2011 Posts: 32
|
Posted: Tue Aug 30, 2011 10:29 am Post subject: |
|
|
Code: |
root@sysresccd /root % lspci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 18)
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 18)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1a.1 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1a.2 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1a.7 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
00:1c.2 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 (rev 06)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1d.1 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1d.2 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1d.3 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1d.7 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation 5 Series Chipset LPC Interface Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 8800 GT] (rev a2)
02:00.0 SATA controller: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 02)
02:00.1 IDE interface: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 02)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
04:00.0 USB Controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
|
|
|
Back to top |
|
|
ronstudio n00b
Joined: 14 Aug 2011 Posts: 28
|
Posted: Tue Aug 30, 2011 4:07 pm Post subject: |
|
|
Hi laci,
Can you provide further information like:
1) /boot/grub/grub.conf
2) /etc/fstab
3) Make sure that if you have compiled your SATA AHCI driver into the kernel rather than modules
4) Set your filesystem support in Kernel
5) Make sure your system is compiling the kernel with the config that you made
I have recently encountered similar problem as yours, lucky to receive the help from the ppl in this forum, and finally found myself making the 5th mistake, which is I like to save the kernel config into an alternative file (e.g. 123.config) But when I run make && make modules_install, the system would just take the .config to compile the kernel. Hence even I made the changes to correct the mistakes I made, it's still running the old .config. (how stupid I am)
You may take a look of my previous post, which maybe useful to you as well.
https://forums.gentoo.org/viewtopic-t-890598-highlight-.html |
|
Back to top |
|
|
laci92 n00b
Joined: 28 Aug 2011 Posts: 32
|
Posted: Tue Aug 30, 2011 7:39 pm Post subject: |
|
|
ronstudio,
I posted the /boot/grub/grub.conf and /etc/fstab files in my first post. I have noticed that I didn't compile the JMicron JMB36x driver into the kernel, so I changed that. The filesystem drivers are also compiled into the kernel, I checked that. I also read the topic you told me to read, I have enabled CONFIG_SATA_AHCI_PLATFORM, but I still receive the same error message. I don't have any other ideas what to do. Thanks for your help, though. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Aug 31, 2011 12:27 am Post subject: |
|
|
boot cd, mount gentoo partitons, enter the chroot, as in:
Code: | mount /dev/sda3 /mnt/gentoo
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
cd /usr/src/linux
make menuconfig | edit menuconfig; Quote: | Device Drivers --->
< > ATA/ATAPI/MFM/RLL support --->
SCSI device support --->
*** SCSI support type (disk, tape, CD-ROM) ***
<*> SCSI disk support
< > SCSI tape support
< > SCSI OnStream SC-x0 tape support
<*> SCSI CDROM support
<*> Serial ATA (prod) and Parallel ATA (experimental) drivers --->
--- Serial ATA and Parallel ATA drivers
[ ] Verbose ATA error reporting
[*] ATA ACPI Support
[ ] SATA Port Multiplier support
*** Controllers with non-SFF native interface ***
<*> AHCI SATA support
< > Platform AHCI SATA support
< > Initio 162x SATA support
< > ACard AHCI variant (ATP 8620)
< > Silicon Image 3124/3132 SATA support
[*] ATA SFF support
*** SFF controllers with custom DMA interface ***
< > Pacific Digital ADMA support
< > Pacific Digital SATA QStor support
< > Promise SATA SX4 support (Experimental)
[*] ATA BMDMA support
*** SATA SFF controllers with BMDMA ***
<*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
< > Marvell SATA support
< > NVIDIA SATA support
< > Promise SATA TX2/TX4 support
< > Silicon Image SATA support
< > SiS 964/965/966/180 SATA support
< > ServerWorks Frodo / Apple K2 SATA support
< > ULi Electronics SATA support
< > VIA SATA support
< > VITESSE VSC-7174 / INTEL 31244 SATA support
*** PATA SFF controllers with BMDMA ***
< > ALi PATA support
< > AMD/NVidia PATA support
< > ARASAN CompactFlash PATA Controller Support
< > ARTOP 6210/6260 PATA support
< > ATI PATA support
< > ARTOP/Acard ATP867X PATA support
< > CMD64x PATA support
< > CS5510/5520 PATA support
< > CS5530 PATA support
< > CS5536 PATA support
< > Cypress CY82C693 PATA support (Very Experimental)
< > EFAR SLC90E66 support
< > HPT 366/368 PATA support
< > HPT 370/370A/371/372/374/302 PATA support
< > HPT 371N/372N/302N PATA support
< > HPT 343/363 PATA support
< > IT8213 PATA support (Experimental)
< > IT8211/2 PATA support
<*> JMicron PATA support
< > Marvell PATA support via legacy mode
< > NETCELL Revolution RAID support
< > Ninja32/Delkin Cardbus ATA support
< > Nat Semi NS87415 PATA support
< > Intel PATA old PIIX support
< > OPTI FireStar PATA support (Very Experimental)
< > Promise PATA 2027x support
< > Older Promise PATA controller support
< > RADISYS 82600 PATA support (Experimental)
< > RDC PATA support
< > SC1200 PATA support
< > Intel SCH PATA support
< > SERVERWORKS OSB4/CSB5/CSB6/HT1000 PATA support
< > CMD / Silicon Image 680 PATA support
< > SiS PATA support
< > Toshiba Piccolo support (Experimental)
< > Compaq Triflex PATA support
< > VIA PATA support
< > Winbond SL82C105 PATA support
*** PIO-only SFF controllers ***
< > CMD640 PCI PATA support (Experimental)
< > Intel PATA MPIIX support
< > Nat Semi NS87410 PATA support
< > OPTI621/6215 PATA support (Very Experimental)
< > PC Tech RZ1000 PATA support
*** Generic fallback / legacy drivers ***
< > ACPI firmware driver for PATA
< > Generic ATA support
< > Legacy ISA PATA support (Experimental) | Then: Code: | make && make modules_install
cp arch/x86/boot/bzImage /boot/linux-2.6.39-gentoo-r3
exit
reboot | If you still get a panic, take a picture (digital camera or cell phone), post on a photo site, post url here. _________________ Defund the FCC.
Last edited by DONAHUE on Wed Aug 31, 2011 2:15 pm; edited 1 time in total |
|
Back to top |
|
|
laci92 n00b
Joined: 28 Aug 2011 Posts: 32
|
Posted: Wed Aug 31, 2011 11:36 am Post subject: |
|
|
DONAHUE,
I have made the changes you told me, and I still get a kernel panic Here's the picture of the error: http://www.freeimagehosting.net/203e4 |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Aug 31, 2011 2:41 pm Post subject: |
|
|
The kernel booted does not appear to be the kernel recompiled. Need to investigate.
Boot cd, Code: | mount /dev/sda3 /mnt/gentoo | then Code: | ls -l /mnt/gentoo/boot//linux-2.6.39-gentoo-r3 | then Code: | ls -l /mnt/gentoo/usr/src/linux/.config | the date times should be within minutes of each other and appropriate to your memory of the time of recompile and recopy. If not try again. Let us know what you find.
If the times are good: continue into the chroot:
Code: | cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1" | Then Code: | emerge pciutils wgetpaste
wgetpaste /usr/src/linux/.config
lspci -k | wgetpaste
wgetpaste /proc/mounts
fdisk -l wgetpaste | post url's here. _________________ Defund the FCC. |
|
Back to top |
|
|
laci92 n00b
Joined: 28 Aug 2011 Posts: 32
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Aug 31, 2011 7:43 pm Post subject: |
|
|
boot cd and run and post url.
Quote: | the .config file is /usr/src/lacikernel2modification.config | makes me wonder. If you did the configuring and then used "Save an Alternate Configuration File" to /usr/src/lacikernel2modification.config compiling will use /usr/src/linux/.config if present or the default configuration if not. If you in fact used the command Code: | wgetpaste /usr/src/linux/.config | to generate http://paste.pocoo.org/show/467900/ , ignore this line of thought other than letting us know that http://paste.pocoo.org/show/467900/ does indeed result from wgetpaste /usr/src/linux/.config.
The gentoo drive is internal? Not usb or other external?
What mode is the hard drive controller selected to in bios?
If you have a system rescue cd or some other (non-gentoo) livecd around, boot it, run and see what the "Driver in use:" listing is for hard drive controllers. _________________ Defund the FCC. |
|
Back to top |
|
|
laci92 n00b
Joined: 28 Aug 2011 Posts: 32
|
Posted: Thu Sep 01, 2011 11:50 am Post subject: |
|
|
Sorry for the confusion I made, http://paste.pocoo.org/show/467900/ is the result of wgetpaste /usr/src/lacikernel2modification.config
When I downloaded a kernel seed from kernel-seeds.org, I loaded it in makemenu, made my changes, and then saved it as
/usr/src/lacikernel2modification.config I thought it should compile the kernel with it.
The hard drive which I am installing Gentoo on is an internal Western Digital 160GB, the model is WDC WD1600JS-41M and the hard drive controller is set to AHCI mode in BIOS.
This is the result of lspci -k:
Code: |
root@dhcppc0 /root % lspci -k
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 18)
Subsystem: Giga-byte Technology Device 5000
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 18)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
Subsystem: Giga-byte Technology Device 5004
Kernel driver in use: uhci_hcd
00:1a.1 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
Subsystem: Giga-byte Technology Device 5004
Kernel driver in use: uhci_hcd
00:1a.2 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
Subsystem: Giga-byte Technology Device 5004
Kernel driver in use: uhci_hcd
00:1a.7 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
Subsystem: Giga-byte Technology Device 5006
Kernel driver in use: ehci_hcd
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
Subsystem: Giga-byte Technology Device a002
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.2 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 (rev 06)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
Subsystem: Giga-byte Technology Device 5004
Kernel driver in use: uhci_hcd
00:1d.1 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
Subsystem: Giga-byte Technology Device 5004
Kernel driver in use: uhci_hcd
00:1d.2 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
Subsystem: Giga-byte Technology Device 5004
Kernel driver in use: uhci_hcd
00:1d.3 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
Subsystem: Giga-byte Technology Device 5004
Kernel driver in use: uhci_hcd
00:1d.7 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
Subsystem: Giga-byte Technology Device 5006
Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation 5 Series Chipset LPC Interface Controller (rev 06)
Subsystem: Giga-byte Technology Device 5001
Kernel modules: iTCO_wdt
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06)
Subsystem: Giga-byte Technology Device b005
Kernel driver in use: ahci
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
Subsystem: Giga-byte Technology Device 5001
Kernel driver in use: i801_smbus
Kernel modules: i2c-i801
01:00.0 VGA compatible controller: nVidia Corporation G92 [GeForce 8800 GT] (rev a2)
Subsystem: nVidia Corporation Device 053c
Kernel driver in use: nouveau
Kernel modules: nouveau
02:00.0 SATA controller: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 02)
Subsystem: Giga-byte Technology GA-EP45-DS5 Motherboard
Kernel driver in use: ahci
02:00.1 IDE interface: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 02)
Subsystem: Giga-byte Technology GA-EP45-DS5 Motherboard
Kernel driver in use: pata_jmicron
Kernel modules: pata_jmicron
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
Subsystem: Giga-byte Technology GA-EP45-DS5 Motherboard
Kernel driver in use: r8169
Kernel modules: r8169
04:00.0 USB Controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
Subsystem: Giga-byte Technology Device 5007
Kernel driver in use: xhci_hcd
Kernel modules: xhci-hcd
|
The driver in use for the sata controller is ahci. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Thu Sep 01, 2011 11:59 am Post subject: |
|
|
laci92,
if you used options DONAHUE posted earlier, built a kernel and installed it properly you would not get unknown-block(0,0) error.
Are you sure you used kernel .config file you thought you were using? Note, make menuconfig will not load your custom-named conf unless you do it manually. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
laci92 n00b
Joined: 28 Aug 2011 Posts: 32
|
Posted: Thu Sep 01, 2011 1:47 pm Post subject: |
|
|
I finally managed to solve the problem. DONAHUE and Jaglover, you were right, it seems that menuconfig did not use my .config file. I solved the problem by copying my .config file, /usr/src/lacikernel2modification.config, to /usr/src/linux and then renaming it to .config . Then I compiled the kernel, copied the bzImage to /boot, rebooted, and I was greeted with a login prompt
Thanks everyone for your help, I'm shamed because of this stupid error I made *headdesk* |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Sep 01, 2011 1:53 pm Post subject: |
|
|
You made an interesting problem. Thanks. _________________ Defund the FCC. |
|
Back to top |
|
|
|