LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-01-2008, 09:52 PM   #1
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Rep: Reputation: 30
Help with a Kernel Panic


I've searched this forum for Kernel panics but mine seems to be a little unique.

One day when I tried to boot Fedora 8 on my machine, I get the following message from the boot screen.

Code:
Uncompressing Linux...Ok, booting the kernel
Red Hat nash versio 6.09 starting
...
...
mount: could not find filesystem '/dev/root'
setuproot; moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init
The messages preceding the "kernel panic" message is unique from the other kernel Panic messages that I have read....my machine is not even mounting root!

I tried reinstalling Fedora 8 onto this hard drive, but after going through the Install GUI, I get a pop up that says:

Code:
An error occurred trying to format sda1.  This problem is serious, and the install cannot continue.
Press <Enter> to exit the installer.
I have a second hard drive that has XP is installed on the machine. With the same IDE cable, I plugged the second hard drive in and XP booted up from the second drive with no problem, which tells me the problem is not my motherboard.

This hard drive is not that old...I thing I have had it only a couple of years.

Can anyone give me any troubleshooting advice?
 
Old 03-01-2008, 10:07 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Have you tried booting from CD? Running "fsck" from the CD boot?
 
Old 03-02-2008, 06:53 PM   #3
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by paulsm4 View Post
Have you tried booting from CD? Running "fsck" from the CD boot?
When I boot from the CD and issue the fdisk -l command, this is my output:
Code:
[root@localhost ~]# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0003c781

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          25      200781   83  Linux
/dev/sda2              26       19457   156087540   8e  Linux LVM

Disk /dev/dm-0: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 158.2 GB, 158209146880 bytes
255 heads, 63 sectors/track, 19234 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-2 doesn't contain a valid partition table

Disk /dev/dm-3: 1577 MB, 1577058304 bytes
255 heads, 63 sectors/track, 191 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800

Disk /dev/dm-3 doesn't contain a valid partition table
[root@localhost ~]#
When I try to use fsck on the entire drive:
Code:
[root@localhost etc]# fsck /dev/sda
fsck 1.40.2 (12-Jul-2007)
e2fsck 1.40.2 (12-Jul-2007)
fsck.ext2: Device or resource busy while trying to open /dev/sda
Filesystem mounted or opened exclusively by another program?
[root@localhost etc]#
When I try to fsck the first partition:
Code:
[root@localhost etc]# fsck /dev/sda1
fsck 1.40.2 (12-Jul-2007)
e2fsck 1.40.2 (12-Jul-2007)
/dev/sda1 is mounted.  

WARNING!!!  Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)? yes

The filesystem size (according to the superblock) is 104388 blocks
The physical size of the device is 16033 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? no

/boot contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Error reading block 16387 (Invalid argument) while getting next inode from scan.  Ignore error<y>? yes

Force rewrite<y>? yes

Error writing block 16387 (Invalid argument) while getting next inode from scan.  Ignore error<y>? no

Error reading block 16388 (Invalid argument) while getting next inode from scan.  Ignore error<y>?
This just keeps repeating until I say no and then it aborts
 
Old 03-02-2008, 09:09 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

You should run the filesystem maintenance in single user mode.
 
Old 03-03-2008, 01:05 AM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi, tekmann33 -

Onebuck is right. The whole *point* of booting from a CD is so that your hard drive *isn't* mounted, so you can run "fsck" on it (and try to repair it).

Usually, the CD has some kind of "repair option" - that's the one you want. It will put you in "single user" mode, and it should mount a virtual root volume in RAM (leaving your hard drive unmounted, and available to try to repair).

Then run "fsck" on the Linux partition of your hard drive (for example, /dev/hda2, or /dev/sda2).

Remember:
1) You're getting the "panic" because you can't mount your root volume
2) You can't mount the root volume because of some kind of disk or partition error
... and ...
3) The first step to resolving the error is to see if you can "repair" the root volume with "fsck".

You're on "3)". Once you successfully run "fsck", you might be home free.

Last edited by paulsm4; 03-03-2008 at 01:07 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 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 01:58 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 04:28 AM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 05:46 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 04:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 01:31 AM


All times are GMT -5. The time now is 06:07 AM.

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