LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-15-2004, 04:20 AM   #1
nmares
Member
 
Registered: Aug 2004
Location: Sydney, Australia
Distribution: Debian, Knoppix, LFS, Lycoris
Posts: 38

Rep: Reputation: 15
Kernel Panic: VFS: Unable to mount root fs on 03:06


Hello all,
I just recently decided to do a Linux from scratch build for my laptop. I've been reading up on it and just went to prepare my system by creating a 1.2GB partition on to allow me to play around with it BUT straight after I did so tried rebooting Debian to discover that it wouldnt load and I get this error message:

XFS: bad magic number
XFS: SB validate failed
Kernel panic: VFS: Unable to mount root fs on 03:06

I have a 3 gig NTFS partition for my WinXP install, a 4.5 GB FAT parition for all my work and music, a 3 GB linux partition and a 260 mb swap in that order. I reduced the size of the FAT paritition with Partition Magic in windows to make room for the new linux partition and then created it.
After, I booted of a knoppix cd and deleted the partiton and all worked well BUT i wanted my new linux parition.

I thought this may have something to do with the way linux addresses the partition because there is a new parition between the FAT parition (hda5) and the debian parition (hda6), so that hda6 would become hda7, and fiddling around in knoppix proved this, so i changed /etc/fstab to reflect this, but i stil get the above fatal error when i try to boot Debian. ***sigh***

I can stil access my files from in Knoppix but thats not the point... Is there anyway to correct this or will I have to do a reinstall of Debian?

Cheers,

Nathan
 
Old 09-15-2004, 04:34 AM   #2
finidi
Member
 
Registered: Dec 2002
Location: World
Distribution: Fedora Core 4
Posts: 127

Rep: Reputation: 15
The kernel panic comes because it's trying to mount a XFS partition as the root (/) one.

When you install, that was your choice for the filesystem of the root partition. Now that partition is not correctly formatted as XFS, hence the messages about bad magic number and superblock.
 
Old 09-15-2004, 04:48 AM   #3
nmares
Member
 
Registered: Aug 2004
Location: Sydney, Australia
Distribution: Debian, Knoppix, LFS, Lycoris
Posts: 38

Original Poster
Rep: Reputation: 15
thanx finidi,
BUT the partition must be correctly formatted because I can boot up into Knoppix of a cd and access my files on the partition, it just wont boot of it.
 
Old 09-15-2004, 06:41 AM   #4
finidi
Member
 
Registered: Dec 2002
Location: World
Distribution: Fedora Core 4
Posts: 127

Rep: Reputation: 15
Quote:
Originally posted by nmares
BUT the partition must be correctly formatted because I can boot up into Knoppix of a cd and access my files on the partition, it just wont boot of it.
When you boot from Knoppix CD you can access that partition, that means Knoppix mounts correctly the partition, but for sure the partition filesystem is not XFS.

Do this: boot the Knoppix CD getting access to the partition. Then go to a text console and type

Code:
mount
obtaining a list of the mounted partitions. Then you get something like this:

/dev/hda3 on / type ext3 (rw)
.....

where hda3 or whatever is the partition from where you boot off before. Look for the "type", it can't be XFS.
 
Old 09-16-2004, 12:29 AM   #5
nmares
Member
 
Registered: Aug 2004
Location: Sydney, Australia
Distribution: Debian, Knoppix, LFS, Lycoris
Posts: 38

Original Poster
Rep: Reputation: 15
It says that it is XFS. But i dont understand why this would be such a problem

Thanks
 
Old 09-16-2004, 05:07 AM   #6
finidi
Member
 
Registered: Dec 2002
Location: World
Distribution: Fedora Core 4
Posts: 127

Rep: Reputation: 15
The sort of msgs you're receiving when boot off the HD appears when the mounting op attempts an incorrect FS type (i.e. type 'vfat' on a ext3 partition) OR the partition is corrupt.

When you installed on the HD, did you choose XFS for root partition, or was the default ?
 
Old 09-16-2004, 07:51 AM   #7
nmares
Member
 
Registered: Aug 2004
Location: Sydney, Australia
Distribution: Debian, Knoppix, LFS, Lycoris
Posts: 38

Original Poster
Rep: Reputation: 15
I chose XFS and had no problems until I put another partition on the disk. The files are still there, debian just wont boot.

Last edited by nmares; 09-16-2004 at 07:58 AM.
 
  


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
kernel panic: VFS: Unable to mount root fs in 08:02 sebas_turu Debian 10 01-21-2008 01:04 AM
Kernel Panic: VFS: Unable to mount root fs on 09:02 verbali Linux - Hardware 8 02-24-2004 06:11 PM
Kernel panic: VFS: Unable to mount root cmlo Linux - Software 4 05-20-2003 02:25 AM
Kernel panic: VFS: Unable to mount root cmlo Linux - Newbie 3 05-17-2003 07:55 PM
Kernel Panic: VFS: Unable to mount root fs on 09:02 verbali Linux - General 6 05-26-2002 02:30 PM


All times are GMT -5. The time now is 03:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration