View previous topic :: View next topic |
Author |
Message |
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Thu Mar 31, 2011 6:53 pm Post subject: Unable to mount root fs on unknown-block 2,0 |
|
|
I can't boot up Gentoo! I get the KERNEL PANIC- Unable to mount root fs on unknown-block 2,0
This is my grub.conf:
Code: | default 0
timeout 15
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
# GNU/Linux
title Gentoo Linux 2.6.36-r8
kernel /boot/kernel-2.6.36-gentoo-r8 root=/dev/hda5
root (hd0,4)
title Gentoo Linux 2.6.36-r8 (rescue)
kernel /boot/kernel-2.6.36-gentoo-r8 root=/dev/hda5 init=/bin/bb
root (hd0,4)
###############
# Window$ #
###############
title Windows 7
rootnoverify (hd0,0)
makeactive
chainloader +1
|
/etc/fstab
Code: | /dev/hda5 / ext3 noatime 0 1
/dev/hda6 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,user 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
proc /proc proc defaults 0 0
|
.config
Code: | CONFIG_EXT3_FS=y
# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
|
|
|
Back to top |
|
|
rh1 Guru
Joined: 10 Apr 2010 Posts: 501
|
Posted: Thu Mar 31, 2011 6:56 pm Post subject: |
|
|
I'd start by changing all /dev/hd* to /dev/sd*. Even if your using an old ide drive. They are still refered to as /dev/sd* now. |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Thu Mar 31, 2011 7:07 pm Post subject: |
|
|
I still get the same error (i changed everything in grub.conf and fstab).
Code: | Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS trying floppy.
VFS: Cannot open root device "sda5" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Pid: 1, comm: swapper Not tainted 2.6.36-gentoo-r8 #1 |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Thu Mar 31, 2011 7:39 pm Post subject: |
|
|
JuszR,
You are missing the kernel drivers for your hard drive controller chip set, or they are build as modules.
Grub loads your kernel but the kernel cannot see any hard drives.
on the liveCD will show you the drivers in use. Add them to your own kernel as <*>
If you need more specific help, please post your lspci output. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Last edited by NeddySeagoon on Thu Mar 31, 2011 7:54 pm; edited 1 time in total |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Mar 31, 2011 7:41 pm Post subject: |
|
|
You probably used an older livecd/dvd/installed linux as an install medium. In the good old days legacy hard drive adapter drivers were used that used /dev/hd?? device names. Current kernels still provide the legacy drivers but the current udev will not make device nodes for those drivers. Current kernels using the libata drivers and current udev make device names like /dev/sd?? for any hard drive even ide types. Cd/dvd dtives will be named /dev/sr? .
obtain and boot a current System Rescue CD, mount the gentoo partitions, enter the chroot, as in: Code: | mount /dev/sda5 /mnt/gentoo
mount /dev/sda? /mnt/gentoo/boot #if you made a separate /boot partition
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"
lspci -k | from the lspci -k output determine adapter names and driver names for hard drive adapters Code: |
cd /usr/src/linux
make menuconfig |
Edit menuconfig: Quote: | General setup --->
<*> Kernel .config support
[*] Enable access to .config through /proc/config.gz #optional good for troubleshooting
[ ] enable deprecated sysfs features to support old userspace tools
Processor type and features --->
[ ] Build a relocatable kernel
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
< > 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
< > ARTOP 6210/6260 PATA support
< > ATI PATA support
< > ARTOP/Acard ATP867X PATA support
< > CMD64x PATA support
< > CS5510/5520 PATA support
< > CS5530 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 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) | Find the drivers for your adapters and select them as builtin <*>
Code: | make && make modules_install
cp arch/x86/boot/bzImage /boot/kernel-2.6.36-gentoo-r8
|
edit grub.conf to: Quote: | default 0
timeout 15
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
# GNU/Linux
title Gentoo Linux 2.6.36-r8
root (hd0,4)
kernel /boot/kernel-2.6.36-gentoo-r8 root=/dev/sda5
title Gentoo Linux 2.6.36-r8 (rescue)
root (hd0,4)
kernel /boot/kernel-2.6.36-gentoo-r8 root=/dev/sda5 init=/bin/bb
###############
# Window$ #
###############
title Windows 7
rootnoverify (hd0,1 #if you have the win7 recovery partition first and then the os partition)
makeactive
chainloader +1 |
Edit fstab to: Quote: | /dev/sda5 / ext3 noatime 0 1
/dev/sda6 none swap sw 0 0
#/dev/cdrom /mnt/cdrom auto noauto,user 0 0 suggest leave this out, interferes with automounting music and movies
#/dev/fd0 /mnt/floppy auto noauto 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
proc /proc proc defaults 0 0 |
_________________ Defund the FCC. |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Thu Mar 31, 2011 7:50 pm Post subject: |
|
|
Well i didn't think that was the problem. I used an Ubuntu live cd to make the installation.
I'll try to install the missing drivers.
This is what i get from lspci -k:
Quote: | 00:00.0 Host bridge: VIA Technologies, Inc. P4M266 Host Bridge
Subsystem: VIA Technologies, Inc. P4M266 Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP]
00:0f.0 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
Subsystem: VIA Technologies, Inc. VT82C586/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
Subsystem: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
Subsystem: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
Subsystem: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
Subsystem: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
Subsystem: VIA Technologies, Inc. USB 2.0
00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [KT600/K8T800/K8T890 South]
Subsystem: VIA Technologies, Inc. DFI KT600-AL / Soltek SL-B9D-FGR Motherboard
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
Subsystem: Biostar Microtech Int'l Corp Device f614
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 7
Subsystem: VIA Technologies, Inc. VT6102 [Rhine II] Embeded Ethernet Controller on VT8235
01:00.0 VGA compatible controller: S3 Inc. VT8375 [ProSavage8 KM266/KL266]
Subsystem: S3 Inc. VT8375 [ProSavage8 KM266/KL266]
|
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Thu Mar 31, 2011 7:59 pm Post subject: |
|
|
JuszR,
Code: | 00:0f.0 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) |
IS your IDE chipset,
Building on DONAHUEs post, as well as the things listed, you need Code: | <*> VIA PATA support |
Your HDD will be called /dev/sd ... even though it is an IDE drive. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Thu Mar 31, 2011 8:24 pm Post subject: |
|
|
It didn't work, i still get the same error. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Thu Mar 31, 2011 8:34 pm Post subject: |
|
|
JuszR,
You messed your kernel build or kernel install then.
Please post the output of so we can see the files and their timestamps you have in /boot just now. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Thu Mar 31, 2011 8:35 pm Post subject: |
|
|
Quote: | total 3948
lrwxrwxrwx 1 root root 1 Mar 31 19:19 boot -> .
drwxr-xr-x 2 root root 4096 Mar 31 21:08 grub
-rw-r--r-- 1 root root 4031392 Mar 31 20:38 kernel-2.6.36-gentoo-r8
|
I think im missing a driver, the question is which one. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Thu Mar 31, 2011 8:38 pm Post subject: |
|
|
JuszR,
That looks good. Only one kernel, so no danger of booting the wrong one.
Please post your kernel .config file on a pastebin site and post the URL it gives you.
In the chroot, Code: | emerge wgetpaste
wgetpaste /usr/src/linuc/.config |
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Mar 31, 2011 8:41 pm Post subject: |
|
|
when you get the panic message you should see if you enabled the scsi transport
Followed by a list of available partitions if via pata is enabled and working
posting a picture of the panic screen can be helpful, digital cam or cell phone free photo site _________________ Defund the FCC. |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Thu Mar 31, 2011 9:15 pm Post subject: |
|
|
JuszR,
Thats progress - the error has changed from unknown-block (0,2) to unknown-block(3,5).
Now the kernel can see the hard drive controller. However, its being told to look for hda5, which doesn't exist.
In grub.conf, you need a line
Code: | kernel /boot/kernel-2.6.36-gentoo-r8 root=/dev/sda5 |
You can probably use grubs built in editor to test. At the splash screen, press e to edit the in ram copy of grub.conf
change your root=/dev/hda5 to root=/dev/sda5 (just the h to an s) then allow the boot to continue. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Thu Mar 31, 2011 9:20 pm Post subject: |
|
|
I changed that already (before)...
Yeah, i think we are going forward but i already want to start compiling X and Gnome. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Thu Mar 31, 2011 9:48 pm Post subject: |
|
|
JuszR,
Then the change didn't stick or you have several grub.conf files in your several /boot locations and you edited one but grub uses another.. When the kernel boots, its being told root=/dev/hda5. thats what the 3 and 5 mean in unknown-block(3,5)
Its the kernels major and minor device numbers for hda5.
What did the test I asked you to do produce? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Thu Mar 31, 2011 9:58 pm Post subject: |
|
|
I tried what you've said but didn't work.
What do you mean with that? i have only one file:
Quote: | ls -a /boot/grub/
. e2fs_stage1_5 iso9660_stage1_5 reiserfs_stage1_5 stage2_eltorito
.. fat_stage1_5 jfs_stage1_5 splash.xpm.gz ufs2_stage1_5
default ffs_stage1_5 menu.lst stage1 vstafs_stage1_5
device.map grub.conf minix_stage1_5 stage2 xfs_stage1_5
|
and it's like you told me before:
Quote: | # GNU/Linux
title Gentoo Linux 2.6.36-r8
root (hd0,4)
kernel /boot/kernel-2.6.36-gentoo-r8 root=/dev/sda5
|
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Thu Mar 31, 2011 10:22 pm Post subject: |
|
|
JuszR,
Didn't work is not a useful error report. What values for unknown-block ... did you get this time. (8,5) would be /dev/sda5.
If you still got (3.5) the kernel is still trying to boot from /dev/hda3
When you follow the handbook your have a partition called boot. You also have a directory called /boot or your root partition.
Normally to boot partition is mounted over the /boot directory and the content of the /boot directory (when the boot partition is not mounted) is hidden.
Its possible to get grub and kernels and grub.conf in both of these different boots.
Code: | root (hd0,4)
kernel /boot/kernel-2.6.36-gentoo-r8 root=/dev/sda5 | is correct if you do not have boot partition at all as root (hd0,4) and /dev/sda5 both refer to the same partition.
root (hd0,4) is grubspeak for your /boot partiton (if you have one) and root=/dev/sda5 is kernelspeak for the root of the kernels filesystem. The two normally point to different partitions.
Your /etc/fstab indicates you don't have a boot partition ... _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Thu Mar 31, 2011 10:25 pm Post subject: |
|
|
I get the same error, unknown block 2,0.
I don't have a boot partition, everything is on (s)hda5. |
|
Back to top |
|
|
Raptor85 Apprentice
Joined: 29 Dec 2007 Posts: 208
|
Posted: Thu Mar 31, 2011 11:32 pm Post subject: |
|
|
go ahead and post up fdisk -l here, that should clear up any confusion about your partitioning. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Fri Apr 01, 2011 12:17 am Post subject: |
|
|
would be a regression from Quote: | unknown-block(3,5) | seen in your imageshack posting.
unknown-block(2,0) is a floppy drive block device
unknown-block(3,5) is the 5th partition on an IDE block device
unknown-block(8,5) is the 5th partition on a scsi block device. As the libata drivers use the scsi transport mechanism we want the kernel to be loading root files from block(8,5)
Is there any virtual machine, vmware, etc involved as opposed to a straight up install?
The config you posted should be good enough for the actual hardware in the lspci -k output.
The imageshack post does not show the sd driver and available partitions, which it should if the kernel that boots is configured with the posted config and running on the actual machine reflected in the lspci.
The lspci -k output is abnormal and deficient in that it does not show modules and drivers, as for example: Quote: | 00:05.2 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a2)
Subsystem: ASUSTeK Computer Inc. Device 8239
Kernel driver in use: sata_nv
00:06.0 PCI bridge: nVidia Corporation MCP55 PCI bridge (rev a2)
00:06.1 Audio device: nVidia Corporation MCP55 High Definition Audio (rev a2)
Subsystem: ASUSTeK Computer Inc. Device 81f6
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel | It might be well to enter the chroot and run Code: | emerge pciutils
lspci -k | wgetpaste
emerge --info | wgetpaste
lsmod | wgetpaste | and post url's
The big disclaimer: if your motherboard can not run the scsi transport ...
obtain and boot a current System Rescue CD (gentoo's child) to the xfce GUI, mount the gentoo partitions, run Code: | fdisk -l
lspci -k
df -h | and post results _________________ Defund the FCC. |
|
Back to top |
|
|
scars n00b
Joined: 01 Apr 2011 Posts: 1
|
Posted: Fri Apr 01, 2011 5:02 am Post subject: |
|
|
JuszR wrote: | I still get the same error (i changed everything in grub.conf and fstab).
Code: | Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS trying floppy.
VFS: Cannot open root device "sda5" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Pid: 1, comm: swapper Not tainted 2.6.36-gentoo-r8 #1 |
|
Check and make sure you don't have it set to put your /root on your network. Under the NFS options. |
|
Back to top |
|
|
JuszR Tux's lil' helper
Joined: 03 Nov 2010 Posts: 134 Location: Tlv
|
Posted: Fri Apr 01, 2011 8:08 am Post subject: |
|
|
Fine. I got it to work:
I recompiled the kernel, made a copy in /boot (as far as i remember, before i made a copy of i386* instead of the *x86, i dont know if that was the problem), and that's it!
THANKS EVERYONE!
(I don't have any virutal machines.) |
|
Back to top |
|
|
|