Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Kernel panic when bootup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Logioniz
n00b
n00b


Joined: 28 Oct 2011
Posts: 11

PostPosted: Mon Oct 31, 2011 5:19 pm    Post subject: [Solved]Kernel panic when bootup Reply with quote

when i bootup i have on the screen:

Code:

List of partitions:
  ...
  ...
No filesystem could mount root, tried: ext3 vfat msdos iso9660 ...
Kernel panic - not syncing: VFS : Unable to mount root fs on unknown-block(8,6)


My fstab :
Code:

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT      /boot      ext2      noauto,noatime   1 2
/dev/sda6      /              ext4      noatime              0 1
/dev/sda5      none      swap      sw              0 0
#/dev/cdrom      /mnt/cdrom   auto      noauto,ro,user           0 0
#/dev/fd0             /mnt/floppy   auto      noauto              0 0
proc                /proc              proc      nodev,noexec,nosuid   0 0
shm               /dev/shm        tmpfs      nodev,nosuid,noexec     0 0



fdisk -l :
Code:

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa329ce36

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              13       13409   107603968    7  HPFS/NTFS
/dev/sda3           13410       19913    52243349+   5  Extended
/dev/sda4           19914       38914   152617984    7  HPFS/NTFS
/dev/sda5           13410       13531      979933+  82  Linux swap / Solaris
/dev/sda6           15964       19913    31728343+  83  Linux
/dev/sda7           13532       15963    19533824   83  Linux


sda7 - Ubuntu, which have Grub2
sda6 - Gentoo (which have kernel panic)

I add Gentoo to Ubuntu's grub2

Grub2 from Ubuntu:
Code:

menuentry 'Gentoo, with Linux 3.0.6'{
   #recordfail
   insmod ext2
   set root='(hd0,6)'
   #search --no-floppy --fs-uuid --set 72cfba9b-8b90-44d7-8451-3c0c2ab2fecd
   #echo   'Loading Linux 2.6.32-33-generic ...'
   linux   /boot/kernel-3.0.6-gentoo root=/dev/sda6 ro
   #echo   'Loading initial ramdisk ...'
   #initrd   /boot/initrd.img-2.6.32-33-generic
}


Code:

root:/mnt/Gentoo/usr/src/linux# grep -i ext ./.config
CONFIG_X86_EXTENDED_PLATFORM=y
CONFIG_PAGEFLAGS_EXTENDED=y
CONFIG_HAVE_TEXT_POKE_SMP=y
# CONFIG_NET_EMATCH_TEXT is not set
CONFIG_WIRELESS_EXT=y
CONFIG_WEXT_CORE=y
CONFIG_WEXT_PRIV=y
CONFIG_CFG80211_WEXT=y
CONFIG_WIRELESS_EXT_SYSFS=y
CONFIG_EXTRA_FIRMWARE=""
# CONFIG_MTD_CFI_INTELEXT is not set
CONFIG_I2O_EXT_ADAPTEC=y
CONFIG_SERIAL_8250_EXTENDED=y
# External I2C/SMBus adapter drivers
# CONFIG_SND_GUSEXTREME is not set
CONFIG_EXT2_FS=m
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
CONFIG_EXT2_FS_XIP=y
CONFIG_EXT3_FS=y
CONFIG_EXT3_DEFAULTS_TO_ORDERED=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
CONFIG_EXT4_DEBUG=y
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
CONFIG_CONTEXT_SWITCH_TRACER=y

root:/mnt/Gentoo/usr/src/linux# grep -i sata ./.config
CONFIG_BLK_DEV_IDE_SATA=y
CONFIG_SATA_PMP=y
CONFIG_SATA_AHCI=y
CONFIG_SATA_AHCI_PLATFORM=m
CONFIG_SATA_INIC162X=m
CONFIG_SATA_ACARD_AHCI=m
CONFIG_SATA_SIL24=m
CONFIG_SATA_QSTOR=m
CONFIG_SATA_SX4=m
# SATA SFF controllers with BMDMA
CONFIG_SATA_MV=m
CONFIG_SATA_NV=m
CONFIG_SATA_PROMISE=m
CONFIG_SATA_SIL=m
CONFIG_SATA_SIS=m
CONFIG_SATA_SVW=m
CONFIG_SATA_ULI=m
CONFIG_SATA_VIA=m
CONFIG_SATA_VITESSE=m
root:/mnt/Gentoo/usr/src

root:/mnt/Gentoo/usr/src/linux# grep -i [^A-Za-z]ide[^A-Za-z] ./.config
CONFIG_HAVE_IDE=y
CONFIG_IDE=m
# Please see Documentation/ide/ide.txt for help/info on IDE drives
CONFIG_IDE_XFER_MODE=y
CONFIG_IDE_TIMINGS=y
CONFIG_IDE_ATAPI=y
CONFIG_IDE_LEGACY=y
CONFIG_BLK_DEV_IDE_SATA=y
CONFIG_IDE_GD=m
CONFIG_IDE_GD_ATA=y
CONFIG_IDE_GD_ATAPI=y
CONFIG_IDE_TASK_IOCTL=y
# IDE chipset support/bugfixes
CONFIG_IDE_GENERIC=m
# PCI IDE chipsets support
# Other IDE chipsets support
# CONFIG_LEDS_TRIGGER_IDE_DISK is not set
# CONFIG_IDE_PHISON is not set


Anybody knows, what i to do to repair by bootup process in gentoo?
(I have already recompile 4 times my kernel in gentoo ;) )


Last edited by Logioniz on Wed Nov 02, 2011 4:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Mon Oct 31, 2011 6:37 pm    Post subject: Reply with quote

Logioniz,

unknown-block(8,6) means /dev/sda6. That you get those numbers and not (0,x) or (2,x) means your kernel can read your hard drive but it does not understand what it reads there.

This means that your root filesystem is not compiled into the kernel.

Code:
No filesystem could mount root, tried: ext3 vfat msdos iso9660
shows the kernel tried everything it knows.

That ext3 is listed there and not ext4 is interesting because your /etc/fstab says
Code:
 /dev/sda6      /              ext4      noatime              0 1

So is your root ext3 or ext4 ?

On 32 bit systems ext4 requires you to choose
Code:
Support for large (2TB+) block devices and files
or at best, it will be read only. By default, ext4 supports files and drives > 2TB so yo must have this in your kernel. On 64bit installs, the option is hidden as no special code in needed.

The kernel option
Code:
CONFIG_BLK_DEV_IDE_SATA=y
should be off. Thats under the
Code:
< > ATA/ATAPI/MFM/RLL support (DEPRECATED)  --->
menu.
Indeed, that whole menu should be off, just as I have shown it. The CONFIG_BLK_DEV_IDE_SATA option conflicts with the options on the
Code:
<*> Serial ATA and Parallel ATA drivers  --->
which you should use for both SATA and PATA devices.

If that doesn't help, please post the output of lspci so we can see what hardware you have.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Logioniz
n00b
n00b


Joined: 28 Oct 2011
Posts: 11

PostPosted: Mon Oct 31, 2011 8:01 pm    Post subject: Reply with quote

Thanks, NeddySeagoon

I have ext4 on root directory. i try to add rootfstype=ext4 on the grub and error changed. I don't remember what there are, probably tsomething like his: "You should to enter true root in the grub" and error panic.

lspci:
Code:

00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge
00:02.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (ext gfx port 0)
00:04.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 0)
00:05.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 1)
00:06.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 2)
00:07.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 3)
00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [AHCI mode]
00:12.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:12.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller
00:12.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller
00:13.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller
00:13.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3a)
00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
00:18.0 Host bridge: Advanced Micro Devices [AMD] Mobile K10 [Turion X2, Athlon X2, Sempron] HyperTransport Configuration (rev 40)
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 11h [Turion X2, Athlon X2, Sempron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Mobile K10 [Turion X2, Athlon X2, Sempron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Mobile K10 [Turion X2, Athlon X2, Sempron] Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Mobile K10 [Turion X2, Athlon X2, Sempron] Link Control
01:00.0 VGA compatible controller: ATI Technologies Inc Mobility Radeon HD 3650
01:00.1 Audio device: ATI Technologies Inc RV635 Audio device [Radeon HD 3600 Series]
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
05:00.0 Ethernet controller: Atheros Communications Inc. AR5001 Wireless Network Adapter (rev 01)
07:06.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
07:06.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
07:06.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
07:06.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)

this
Code:

00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [AHCI mode] 

OR
Code:

00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller ?

May be IDE -- this is cdrom?


Now, I have already format Gentoo partition and try again to install Gentoo...
So, what i must to use:
Code:

< > ATA/ATAPI/MFM/RLL support (DEPRECATED)  --->

OR
Code:

<*> Serial ATA and Parallel ATA drivers  --->

?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Mon Oct 31, 2011 8:24 pm    Post subject: Reply with quote

Logioniz,

There was no need to format and start again. You should just mount your partitions,mount /proc and /dev then do the chroot steps.
This gets you back into the chroot as if you never left it. Now you can fix you gentoo.

I have similar hardware to you. All disk devices use the SCSI software today. You must not use
Code:
< > ATA/ATAPI/MFM/RLL support (DEPRECATED)  --->


Under
Code:
SCSI device support  --->
you need
Code:
  │ │    < > RAID Transport Class                                          │ │ 
  │ │    -*- SCSI device support                                           │ │ 
  │ │    < > SCSI target support                                           │ │ 
  │ │    [*] legacy /proc/scsi/ support                                    │ │ 
  │ │        *** SCSI support type (disk, tape, CD-ROM) ***                │ │ 
  │ │    <*> SCSI disk support                                             │ │ 
  │ │    < > SCSI tape support                                             │ │ 
  │ │    < > SCSI OnStream SC-x0 tape support                              │ │ 
  │ │    <*> SCSI CDROM support                                            │ │ 
  │ │    [ ]   Enable vendor-specific extensions (for SCSI CDROM)          │ │ 
  │ │    <*> SCSI generic support                                          │ │ 
  │ │    < > SCSI media changer support                                    │ │ 
  │ │    [*] Probe all LUNs on each SCSI device
This gives you SCSI disk support CDROM support and support for USB storage devices, like external Hard Drives, USB pen drives and multi card readers. All the other options on that menu can be off to save kernel bloat. Under
Code:
<*> Serial ATA and Parallel ATA drivers  --->
choose the drivers for your hardware. You need
Code:
    [*]   ATA ACPI Support
   <*>   AHCI SATA support
    [*]   ATA SFF support
    [*]     ATA BMDMA support
   <*>       ATI PATA support

Some systems seem to need
Code:
<*>   Platform AHCI SATA support
Its harmless if you don't need it, so you may as weel add it.
Again all the other options in that memu are just kernel bloat for you, so should be off.

Notice how all the options are set as * for built in and not M for module. Modules are stored in /lib/modules, so they cannot be read until the root filesystem is mounted.

You need support for your ext4 root filesystem. The bare minimum for you is
Code:
│ │    < > Second extended fs support                                    │ │ 
  │ │    < > Ext3 journalling file system support                          │ │ 
  │ │    <*> The Extended 4 (ext4) filesystem                              │ │ 
  │ │    [*]   Use ext4 for ext2/ext3 file systems (NEW)                   │ │ 
  │ │    [*]   Ext4 extended attributes 
You will not see [*] Use ext4 for ext2/ext3 file systems (NEW) utill you set both
Code:
< > Second extended fs support                                    │ │ 
< > Ext3 journalling file system support         
off.

Thats enough to get you booted It does not address your Wireless or Wired networks, USB, or anything else.

Oh! don't forget that if you are doing a 32 bit install, you will also need
Code:
Support for large (2TB+) block devices and files


There is an excellent guide at kernel-seeds.org
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Logioniz
n00b
n00b


Joined: 28 Oct 2011
Posts: 11

PostPosted: Mon Oct 31, 2011 9:03 pm    Post subject: Reply with quote

Thanks, NeddySeagoon, but i think, that i would install 64 bit version of Gentoo.

I spent about 30 minutes in the internet, looking for some differences between ATA/ATAPI and PATA, but have been yet doubt...

So, if i want to install x64 bit system, i don't mark this option:
Code:

Support for large (2TB+) block devices and files


Thanks for kernel-seeds.org.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Mon Oct 31, 2011 10:01 pm    Post subject: Reply with quote

Logioniz,

To install a 64 bit Gentoo your need the amd64 liveCD and the amd64 stage3.
On such a system, the kernel option Support for large (2TB+) block devices and files will be hidden.

In the days before PCs, there were minicomputers. They mostly used the Small Computer Systems Interface (SCSI) for attaching hard drives and other things.
The various SCSI standards define both an electrical bus and a set of commands to be used over the bus. The original SCSI bus could have 8 devices attached.
SCSI was too expensive for PCs, so Shugart invented a lower cost interface (called ST502 from memory). It needed a controller card in a slot and had two cables to the drive. A data cable and a control cable. The power cable wasn't counted. In an effort to reduce costs further, Compaq and a drive manufacturer (I forget who) introduced the Integrated Drive Electronics (IDE) drive. This no longer needed an interface card, instead, it used a cut down 16bit AT interface exposed in a new 40 pin connector.
This was later dubed PATA. To make life easy, a cut down version of the SCSI command set was adopted for these drives.
CDROMs did not yet exist. After playing with some odd interfaces on sound cards, some of which where just cut down IDE interfaces, the standard IDE electrical interface was adopted by CDROMs too. However they needed some new commands. These are knows as the AT Packet Interface.

Thus IDE/PATA/ATAPI all names associated with the 40 pin connector on your motherboard that you attach older hard drives and optical drives to.
It provides a 16 bit data path between the motherboard and attached devices and its really a cut down 16 bit AT slot. Further, it uses a subset of the SCSI command set to communicate over between devices and the motherboard.

Speed wise, it reached the end of the road some time ago. The new Serial ATA interface can transfer data at higher rates.

When SATA was introduced, yet more SCSI commands were added back in. It did not make sense to write a whole new ser of drives in the kernel, so the IDE/PATA/ATAPI drivers were unitfied with the SATA drivers, under SCSI, which is really where they started out.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Logioniz
n00b
n00b


Joined: 28 Oct 2011
Posts: 11

PostPosted: Wed Nov 02, 2011 2:09 pm    Post subject: Reply with quote

Now, i try to install x86_64 gentoo...
So, i have had this problem:

List of all partitions:
0800 sda driver : sd
...
...
0b00 sr0 driver : sr

Kernel panic - not syncing : VFS: Unable to mount root fs on unknown-block(2,0)


So, now unknown-block is (2,0).

Code:

grep -i sata ./.config
CONFIG_SATA_PMP=y
CONFIG_SATA_AHCI=y
CONFIG_SATA_AHCI_PLATFORM=y
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_SX4 is not set
# SATA SFF controllers with BMDMA
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set


Code:

grep -i [^A-Za-z]ide[^A-Za-z] ./.config
CONFIG_HAVE_IDE=y
# CONFIG_IDE is not set
# CONFIG_IDE_PHISON is not set


Code:

grep -i ext ./.config
CONFIG_X86_EXTENDED_PLATFORM=y
CONFIG_ARCH_PROC_KCORE_TEXT=y
CONFIG_SPARSEMEM_EXTREME=y
CONFIG_PAGEFLAGS_EXTENDED=y
CONFIG_HAVE_TEXT_POKE_SMP=y
# CONFIG_NET_EMATCH_TEXT is not set
CONFIG_WEXT_CORE=y
CONFIG_WEXT_PROC=y
CONFIG_CFG80211_WEXT=y
CONFIG_WIRELESS_EXT_SYSFS=y
CONFIG_EXTRA_FIRMWARE=""
CONFIG_SERIAL_8250_EXTENDED=y
# External I2C/SMBus adapter drivers
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
CONFIG_EXT2_FS_XIP=y
CONFIG_EXT3_FS=y
CONFIG_EXT3_DEFAULTS_TO_ORDERED=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
CONFIG_EXT4_DEBUG=y
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
CONFIG_CONTEXT_SWITCH_TRACER=y
CONFIG_TEXTSEARCH=y
CONFIG_TEXTSEARCH_KMP=m
CONFIG_TEXTSEARCH_BM=m
CONFIG_TEXTSEARCH_FSM=m


when i recompile kernel, i must to delete old files in /usr/src/linux and emerge new sources or i may recompile with old files, just change only .config file?
Back to top
View user's profile Send private message
Logioniz
n00b
n00b


Joined: 28 Oct 2011
Posts: 11

PostPosted: Wed Nov 02, 2011 4:02 pm    Post subject: Reply with quote

not surprising, that nobody answer to me... i don't display all config files (fstab have bug)
i format drive, and uuid changed... so i delete string root=UUID=.... and write /dev/sda6...
So, thanks for help and attention...
Special thanks to NeddySeagoon.
Back to top
View user's profile Send private message
ronstudio
n00b
n00b


Joined: 14 Aug 2011
Posts: 28

PostPosted: Thu Nov 03, 2011 2:33 pm    Post subject: Reply with quote

Hi Logioniz,

I have encountered similar case before, https://forums.gentoo.org/viewtopic-t-890598-highlight-ronstudio.html
other than the commonly mentioned reasons like AHCI driver not enabled or filesystem EXT3/EXT4 not enabled correctly,
today I finally understand the problem I have.

The main point is it's not only select the drivers which you have, but also NOT to select the drivers which you don't use to avoid the Kernel picking up the wrong driver.

In my case, under "Serial ATA and Parallel ATA drivers",
I enabled
ATA ACPI Support
AHCI STAT support
ATA SFF support (then having sub menu)
ATA BMDMA support
Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support

This still looks normal and maybe the same as your case, but then in the bottom of the page, there is a section called,
*** Generic fallback / legacy drivers ***
I also choose
ACPI firmware driver for PATA
Generic ATA support

After I removed the last 2 drivers, my kernel successfully boot recognize my harddisk without the VFS Kernel panic problem.

Wish this could be useful to you as well.. the lesson that I learn is, it's also very important for some drivers not to select.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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