LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-25-2010, 04:48 PM   #1
affinity
Member
 
Registered: Nov 2009
Distribution: Slackware64
Posts: 132

Rep: Reputation: 20
Compiling Kernel issues; ext4 is read as ext3?


I compiled a kernel using a previous kernel config after I switched to the ext4 file system. Previously it was using ext3 and the kernel compiled and ran fine. I added support for ext4 to the config but when I went to boot I had a kernel panic. The error was "kernel can't mount vfs on (8,5)". Root is on sda5, I don't know what the 8 is. I started over, using mrproper and made a new config, but got the same error. I created an initrd with the ext4 file system but then the kernel said it couldn't mount root on ext3 because of unique options. (something along those lines) I booted back into the default kernel and saw that it had a similar error right after the bios check, but it loaded fine.

I'm wondering why the kernel is saying that the ext4 file system is ext3.

Last edited by affinity; 01-25-2010 at 05:25 PM. Reason: I do tend to ramble...
 
Old 01-25-2010, 04:55 PM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
The reason for the white vs. green syntax hilighting is simply because ext4 is a new filesystem and isn't listed in the syntax file as a filesystem keyword. It doesn't reflect at all what the kernel is actually capable of mounting.

Your kernel panic issues might be a bad initrd.. but I really can't tell exactly what's wrong in the rambling..
 
Old 01-25-2010, 05:26 PM   #3
affinity
Member
 
Registered: Nov 2009
Distribution: Slackware64
Posts: 132

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by tuxdev View Post
The reason for the white vs. green syntax hilighting is simply because ext4 is a new filesystem and isn't listed in the syntax file as a filesystem keyword. It doesn't reflect at all what the kernel is actually capable of mounting.

Your kernel panic issues might be a bad initrd.. but I really can't tell exactly what's wrong in the rambling..
Yea..I tend to ramble, sorry. I edited the original post to get to the point.
 
Old 01-25-2010, 06:53 PM   #4
MrChilly0
Member
 
Registered: Jan 2007
Location: midwest USA
Distribution: gentoo w/ funtoo overlay
Posts: 146

Rep: Reputation: 23
Is ext4 built as a module? THat'd be the problem...it has to be built into the kernel...
 
Old 01-25-2010, 07:41 PM   #5
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Depending on the kernel versions, and how they were built, it's quite possible the root device is no longer /dev/sda5. Maybe you now have ATA drives that show us as /dev/sd* disks, pushing your SATA or SCSI disk to /dev/sdc5, /dev/sdd5, etc.

Adam
 
Old 01-25-2010, 09:56 PM   #6
affinity
Member
 
Registered: Nov 2009
Distribution: Slackware64
Posts: 132

Original Poster
Rep: Reputation: 20
ext4 is built into the kernel.

Quote:
Originally Posted by adamk75 View Post
Depending on the kernel versions, and how they were built, it's quite possible the root device is no longer /dev/sda5. Maybe you now have ATA drives that show us as /dev/sd* disks, pushing your SATA or SCSI disk to /dev/sdc5, /dev/sdd5, etc.

Adam
If that were the case would it show up in fdisk? According to fdisk nothing has changed.
 
Old 01-25-2010, 11:13 PM   #7
amiga32
Member
 
Registered: Mar 2009
Location: Illinois
Distribution: slackware bro
Posts: 161

Rep: Reputation: 38
Quote:
Originally Posted by MrChilly0 View Post
Is ext4 built as a module? THat'd be the problem...it has to be built into the kernel...
What? No it doesn't.

@affinity - I'm confused by your original post. You should attach a copy of your current kernel config if you want.
 
Old 01-25-2010, 11:45 PM   #8
affinity
Member
 
Registered: Nov 2009
Distribution: Slackware64
Posts: 132

Original Poster
Rep: Reputation: 20
kernel config
Using that config this is the order of events after installing the kernel:
1. On reboot: kernel panic can't mount vfs on (8,5)
2. Built initrd with ext4 then tried booting into it again and got the error: "Can't mount ext3 on root using special options. (I don't remember the exact message about the "using" part)
 
Old 01-26-2010, 02:18 AM   #9
amiga32
Member
 
Registered: Mar 2009
Location: Illinois
Distribution: slackware bro
Posts: 161

Rep: Reputation: 38
Quote:
Originally Posted by affinity View Post
kernel config
Using that config this is the order of events after installing the kernel:
1. On reboot: kernel panic can't mount vfs on (8,5)
2. Built initrd with ext4 then tried booting into it again and got the error: "Can't mount ext3 on root using special options. (I don't remember the exact message about the "using" part)
You're building with the huge default kernel configuration. All the file systems will already get built into the kernel that way so you wouldn't have to make an initrd for your root filesystem.

You should comment out or delete the initrd line you made in lilo.conf and also post the contents of your fstab file.

EDIT: Make sure you update lilo after you edit it and you should also post your lilo.conf file here so everyone is on the same page.

Last edited by amiga32; 01-26-2010 at 02:29 AM.
 
Old 01-26-2010, 02:51 AM   #10
affinity
Member
 
Registered: Nov 2009
Distribution: Slackware64
Posts: 132

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by amiga32 View Post
You're building with the huge default kernel configuration. All the file systems will already get built into the kernel that way so you wouldn't have to make an initrd for your root filesystem.

You should comment out or delete the initrd line you made in lilo.conf and also post the contents of your fstab file.

EDIT: Make sure you update lilo after you edit it and you should also post your lilo.conf file here so everyone is on the same page.
Well I only made the initrd because the kernel had a panic, that's what the issue is.
 
Old 01-26-2010, 03:51 AM   #11
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Quote:
Originally Posted by affinity View Post
ext4 is built into the kernel.



If that were the case would it show up in fdisk? According to fdisk nothing has changed.
How are you checking fdisk when running the new kernel if you can't mount the root partition with the new kernel?

Adam
 
Old 01-27-2010, 02:36 PM   #12
affinity
Member
 
Registered: Nov 2009
Distribution: Slackware64
Posts: 132

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by adamk75 View Post
How are you checking fdisk when running the new kernel if you can't mount the root partition with the new kernel?

Adam
When the initrd failed to load it dropped me into a basic shell, fdisk was one of the commands available. When I have some extra time I will go through the default kernel config and the one I made and see if there are any obvious things I left out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mounting ext3 FS as ext4 info1686 Linux - General 1 07-08-2009 07:16 AM
Ext3 to Ext4 in Fedora 9 vwtech Fedora 2 05-21-2009 11:03 AM
LXer: Kernel developers squabble over Ext3 and Ext4 LXer Syndicated Linux News 1 03-27-2009 02:57 PM
From ext3 to ext4 rengo.Java Linux - Software 6 12-27-2008 09:58 AM
installing 2.6.20.rc2 kernel, upgrading ext3 to ext4? Lord of the Board Linux - General 2 12-29-2006 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:59 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration