Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Kernel panic after changing filesystem
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
Nitro_146
Apprentice
Apprentice


Joined: 02 Mar 2005
Posts: 221
Location: Digne les bains, France

PostPosted: Wed Mar 10, 2010 2:44 pm    Post subject: [SOLVED] Kernel panic after changing filesystem Reply with quote

Hi all,

My primary HD died recently (SATA WD RAPTOR 74Go), so I bought a new disk to replace it (SATA SSD Intel X25-M)

I made a fresh reinstall of gentoo, and chosed Ext4 as it seems to be able to support TRIM along with 2.6.33
During install, I compiled a kernel with genkernel, and it works.

After install is done, I tried to compile a custom kernel using my backed up .config that worked perfectly on that computer. As the drive used EXT3, I modified the .config by just adding EXT4 support.

On reboot I get a kernel panic :
Quote:
VFS: Cannot open root device "sda1" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(0,0)


Here are some infos :

grub.conf
Quote:
default 1
timeout 30
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

title Gentoo 2.6.31-r6
root (hd0,1) ## partition boot : dev/sda2
kernel /boot/vmlinuz-2.6.31-gentoo-r6 root=/dev/sda1

title Genkernel 2.6.31-r6
root (hd0,1) ## partition boot : dev/sda2
kernel /boot/kernel-genkernel-x86_64-2.6.31-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=dev/sda1
initrd /boot/initramfs-genkernel-x86_64-2.6.31-gentoo-r6


sfdisk -l
Quote:
Disque /dev/sda : 9729 cylindres, 255 têtes, 63 secteurs/piste
Unités= cylindres de 8225280 octets, blocs de 1024 octets, décompte à partir de 0

Périph Amor Début Fin #cyls #blocs Id Système
/dev/sda1 8 9728 9721 78083932+ 83 Linux
/dev/sda2 * 0+ 7 8- 64228+ 83 Linux
/dev/sda3 0 - 0 0 0 Vide
/dev/sda4 0 - 0 0 0 Vide

Disque /dev/sdb : 60801 cylindres, 255 têtes, 63 secteurs/piste
Unités= cylindres de 8225280 octets, blocs de 1024 octets, décompte à partir de 0

Périph Amor Début Fin #cyls #blocs Id Système
/dev/sdb1 0+ 8523 8524- 68468998+ 83 Linux
/dev/sdb2 8524 60800 52277 419915002+ 83 Linux
/dev/sdb3 0 - 0 0 0 Vide
/dev/sdb4 0 - 0 0 0 Vide


/etc/fstab
Quote:
/dev/sda2 /boot ext3 defaults,noauto 1 2
/dev/sda1 / ext4 noatime 0 1
#/dev/SWAP none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro,users 0 0
/dev/fd0 /mnt/floppy auto noauto,users 0 0
/dev/sdb1 /mnt/vieux_pc ext3 defaults,ro 0 1
/dev/sdb2 /mnt/stockage ext3 defaults,noatime 0 1
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
tmpfs /var/log tmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0
tmpfs /var/tmp tmpfs defaults 0 0


and kernel .config (only filesystem part, the one that changed)
Quote:

#
# File systems
#
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
# CONFIG_EXT2_FS_XIP is not set
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
CONFIG_EXT4_FS=y
CONFIG_EXT4DEV_COMPAT=y
CONFIG_EXT4_FS_XATTR=y
# CONFIG_EXT4_FS_POSIX_ACL is not set
# CONFIG_EXT4_FS_SECURITY is not set
CONFIG_JBD=y
CONFIG_JBD2=y
CONFIG_FS_MBCACHE=y
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=y
CONFIG_REISERFS_FS_SECURITY=y
CONFIG_JFS_FS=m
CONFIG_JFS_POSIX_ACL=y
CONFIG_JFS_SECURITY=y
# CONFIG_JFS_DEBUG is not set
# CONFIG_JFS_STATISTICS is not set
CONFIG_FS_POSIX_ACL=y
CONFIG_XFS_FS=y
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_XFS_RT=y
# CONFIG_XFS_DEBUG is not set
CONFIG_GFS2_FS=y
# CONFIG_GFS2_FS_LOCKING_DLM is not set
CONFIG_OCFS2_FS=y
CONFIG_OCFS2_FS_O2CB=y
CONFIG_OCFS2_FS_USERSPACE_CLUSTER=m
CONFIG_OCFS2_FS_STATS=y
CONFIG_OCFS2_DEBUG_MASKLOG=y
# CONFIG_OCFS2_DEBUG_FS is not set
# CONFIG_OCFS2_FS_POSIX_ACL is not set
# CONFIG_BTRFS_FS is not set
CONFIG_FILE_LOCKING=y
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY=y
CONFIG_INOTIFY_USER=y
CONFIG_QUOTA=y
# CONFIG_QUOTA_NETLINK_INTERFACE is not set
CONFIG_PRINT_QUOTA_WARNING=y
CONFIG_QUOTA_TREE=y
# CONFIG_QFMT_V1 is not set
# CONFIG_QFMT_V2 is not set
CONFIG_QUOTACTL=y
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
CONFIG_FUSE_FS=m
# CONFIG_CUSE is not set
CONFIG_GENERIC_ACL=y

_________________
Linux, cause booting is for adding new hardware


Last edited by Nitro_146 on Thu Mar 11, 2010 9:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Mar 10, 2010 8:32 pm    Post subject: Reply with quote

Nitro_146,


The error message suggests that the kernel cannot communicate with your SATA controller.

When you used the old .config file, was it from an *identical* kernel version?
If not you must run make oldconfig against it in the kernel tree.

If you have a 32 bit install, ext4 demands that you select huge file support. Its not an option on 64 bit kernels.
From the error, it looks like the kernel did not get as far as trying to talk to the filesystem.

Do you have several SATA controllers in your system and have now connected your new drive to a different one, such that its driver is missing from your kernel?
_________________
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
Nitro_146
Apprentice
Apprentice


Joined: 02 Mar 2005
Posts: 221
Location: Digne les bains, France

PostPosted: Wed Mar 10, 2010 11:39 pm    Post subject: Reply with quote

Thank's for your answer.



NeddySeagoon wrote:
When you used the old .config file, was it from an *identical* kernel version?

Yes, that was the exact same version.


Quote:
If you have a 32 bit install, ext4 demands that you select huge file support. Its not an option on 64 bit kernels.
From the error, it looks like the kernel did not get as far as trying to talk to the filesystem.

My system is amd64 stable (with multilib)


Quote:
Do you have several SATA controllers in your system and have now connected your new drive to a different one, such that its driver is missing from your kernel?

The disk is connected on the same cable that was used for the previous one, and therefore the same controler (ICH8 as far as I know)
_________________
Linux, cause booting is for adding new hardware
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Mar 11, 2010 6:44 pm    Post subject: Reply with quote

Nitro_146,

So you didn't change anything - it just doesn't work any more. That's a contradiction.

Please post your lspci output and we can take it from there.
_________________
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
Nitro_146
Apprentice
Apprentice


Joined: 02 Mar 2005
Posts: 221
Location: Digne les bains, France

PostPosted: Thu Mar 11, 2010 7:28 pm    Post subject: Reply with quote

Well, i did change something ...

I had a traditionnal HDD with EXT3 and I swaped with a SSD with EXT4 and a fresh install.

Here is my lspci
Code:
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82P965/G965 PCI Express Root Port (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 02)
00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801HR/HO/HH (ICH8R/DO/DH) 6 port SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation G71 [GeForce 7300 GS] (rev a1)
03:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller (rev 22)
04:00.0 SATA controller: JMicron Technology Corp. 20360/20363 Serial ATA Controller (rev 02)
04:00.1 IDE interface: JMicron Technology Corp. 20360/20363 Serial ATA Controller (rev 02)
05:06.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)


There is nothing pluged on the other SATA controler (Jmicron) (The sata ports have different colors on the motherboard)
_________________
Linux, cause booting is for adding new hardware
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Mar 11, 2010 7:45 pm    Post subject: Reply with quote

Nitro_146,

Check your kernel settings against this post check you have the JMicron driver included too.
_________________
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
Nitro_146
Apprentice
Apprentice


Joined: 02 Mar 2005
Posts: 221
Location: Digne les bains, France

PostPosted: Thu Mar 11, 2010 9:25 pm    Post subject: Reply with quote

I just had to remove
Code:
Device Drivers  --->
    < > ATA/ATAPI/MFM/RLL support  --->


After compilation, and reboot, i works !
I am now running that kernel.

Thank you for your help !
_________________
Linux, cause booting is for adding new hardware
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