LinuxQuestions.org
Help answer threads with 0 replies.
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 12-27-2012, 03:35 PM   #1
gatsby
Member
 
Registered: Jan 2006
Posts: 59

Rep: Reputation: 16
Rescue machine from kernel panic


I have an issue with a RHEL6 (x86-64) install that can't boot properly. This problem followed an unclean shutdown of the OS. Basically, when I try to boot, I get the following message:

mount: you must specify the filesystem type

kernel panic - not syncing - attempted to kill init!
pid: 1, comm: init not tainted 2.6.32-279.11.1.el6.x86_64 #1
Call Trace:

? panic+0xa0/0x168
? do_exit+0x862/0x870
?fput
.....
system_call_fastpath+0x16/0x1b

Any assistance would be appreciated. I've got two logical volumes that I'm trying to mount in rescue mode but can't seem to figure it out. Hoping a fsck would clear this up...but when I run the rescue disk it reports that I have no Linux partitions.

Last edited by gatsby; 12-27-2012 at 03:41 PM.
 
Old 12-27-2012, 04:39 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 & 7
Posts: 3,432

Rep: Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921
Boot from rescue DVD and see if you can mount the root volume. It should end up at
Code:
/mnt/sysimage
If you can't do that it means the partition table may be corrupted. Check with:
Code:
parted /dev/sda print
If it is busted, try rewriting the table but not initializing the partitions using your carefully made records.
If you don't have carefully made records (the normal case) parted has a rescue command to try to find your partitions. Post back here if you get stuck.

Note: Most important thing in rescuing a disk is to sit on your hands until you know
what's wrong. Don't just start trying things. And make sure you keep a record of
what you do and what happens.

Last edited by smallpond; 12-27-2012 at 04:44 PM.
 
Old 12-27-2012, 05:06 PM   #3
gatsby
Member
 
Registered: Jan 2006
Posts: 59

Original Poster
Rep: Reputation: 16
The rescue CD fails to load my Linux partitions (continues to say I don't have any), but when running the command "parted /dev/sda print" I do see what I would expect to see partition-wise...a /boot partition and a LVM.

I ran the following commands in an attempt to locate and fsck my LVM (since the system originally froze and there was reason to believe corruption had occurred).

# lvm pvscan
# lvm vgscan
# lvm lvchange -ay /dev/mapper/vg-root
# lvm lvscan

# fsck -yfv /dev/mapper/vg-root

The fsck ran and completed. However, now when I try to boot up, I get the following (different) error at boot-up:

mount: according to mtab, /dev/mapper/vg-root is already mounted on /sysroot
mount: /dev/mapper/vg-root already mounted or /sysroot busy
{repeats}

Thanks for your continued help - not sure how to proceed.
 
Old 12-27-2012, 05:32 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 & 7
Posts: 3,432

Rep: Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921
hmmm. I don't know every detail of the boot process, but I believe /sysroot is where the initial ramdisk mounts your root filesystem while loading the OS. When the kernel starts it "pivots" this to be the root at /.

The error says something is wrong with this mount point so maybe your initramfs in /boot is corrupted. Not sure though.
 
Old 12-28-2012, 06:04 AM   #5
redfox2807
Member
 
Registered: Jul 2012
Distribution: Debian testing/stable, Gentoo, CentOS 7, Sailfish OS, Android
Posts: 166

Rep: Reputation: 31
I would check the hard drive for physical errors and bad clusters using smartctl. It takes a lot of time but at least that would make it clear where to start from.

p.s. I've always been concerned of rescue-ability of an LVM partition. That was the only reason I've never used it.

Last edited by redfox2807; 12-28-2012 at 06:08 AM.
 
Old 12-28-2012, 11:49 AM   #6
gatsby
Member
 
Registered: Jan 2006
Posts: 59

Original Poster
Rep: Reputation: 16
It looks like when I manually mount the LVM in the rescue environment, I don't have some basic folders like etc and bin. The lost+found is full of contents though. I don't suppose there is a ready way to return those contents of lost+found to their original locations, is there? I'm thinking these missing directories like etc and bin are contributing to the rescue environment's inability to detect/auto mount the previous Linux installation, although I can see my LVM and partitions fine with the tools available in rescue.
 
  


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
Virtual machine -Kernel panic NetRock Fedora 2 12-08-2011 08:21 AM
Kernel Panic on Virtual Machine libailan Linux - Newbie 3 03-24-2008 12:01 AM
Kernel panic...suse 10.0 how do I use the rescue disk? coolmanlg Linux - General 3 02-24-2006 02:35 AM
Debian rescue mode: Kernel panic manudath Linux - Software 0 02-16-2005 12:25 PM
kernel panic( rescue 911) khalil Linux - Software 1 01-23-2004 04:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:26 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
Open Source Consulting | Domain Registration