LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Closed Thread
  Search this Thread
Old 04-07-2006, 09:08 PM   #1
Arodef
Member
 
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 125

Rep: Reputation: 17
Need help using Rescue Mode - How to fsck(power outage caused kernal panic on bootup)


Linux rookie here so please bear with me. Somehow a file got corrupted during a power outage as I am getting a system freeze during bootup. The last message is:

"kernel panic - not syncing: Attempted to kill init!"

Okay so I believe I need to boot up with the installation DVD and run the rescue mode (linux rescue) and use fsck? According to this site (http://www.redhat.com/advice/tips/rescue_mode.html), I shouldn't have the rescue mode mount the partitions to /mnt/sysimage:

"5. Linux notes that the rescue mode will attempt to mount your existing partitions under /mnt/sysimage directory. You should select the Skip button because if you are trying to fix a file system problem (most file system tools do not work on mounted file systems for security reasons)."

First off, is that true for fsck? I've seen some walkthroughs where an fsck is done on a mounted drive.

I ask because I'm having trouble using using the rescue when it doesn't mount my partitions. After I choose 'Skip' when it ask to mount my paritions, I get sent to the command prompt. How do I determine what to fsck? When I did 'fsck /dev/sda1' which is where my / partition is normally, I got an error message about not being able to find /etc/fstab. That file exists if I have the rescue mount my partitions to /mnt/sysimage (it's under /mnt/sysimage/etc/fstab). That file doesn't exist using the root environment of the rescue CD. So how and what do I run fsck on if I am don't mount my partitions? I'm really confused.

Here's info on the system taken from a working system with identical build:

[root@localhost ~]# fdisk -l

Disk /dev/sda: 1499.9 GB, 1499968045056 bytes
255 heads, 63 sectors/track, 182360 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 182360 1464702277+ 8e Linux LVM

[root@localhost ~]# cat /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hda /media/cdrom auto pamconsole,exec,noauto,m anaged 0 0



Also do I need to run fsck on /dev/sdaX or on a /dev/VolGroup00/LogVol0X?

Thanks for any help!!!

Last edited by Arodef; 04-07-2006 at 09:47 PM.
 
Old 04-08-2006, 02:57 PM   #2
d0odman
Member
 
Registered: Sep 2004
Location: CA, USA
Distribution: Slackware 10.2
Posts: 132

Rep: Reputation: 15
Try this:
Code:
fsck -v -y /dev/sda1
fsck -v -y /dev/sda2
Those two commands will fsck both of your partitions. You'll want to run fsck on an unmounted partition so that it will be able to fix them if it comes across any errors.

Also, could you post the output of a mount command from that second machine?
 
Old 04-16-2006, 11:39 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Please don't double post.
 
Old 04-16-2006, 11:44 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 474Reputation: 474Reputation: 474Reputation: 474Reputation: 474
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

http://www.linuxquestions.org/questi...d.php?t=432881
 
  


Closed Thread


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
Kernal Panic while booting from rescue disk p3980 Slackware 23 12-19-2005 09:51 AM
Kernal Panic on Bootup space_invader64 Linux - General 4 12-09-2005 10:21 PM
power outage jbzy3000 Linux - General 2 02-24-2005 09:11 PM
Debian rescue mode: Kernel panic manudath Linux - Software 0 02-16-2005 12:25 PM
Power Outage notslim General 30 08-28-2003 03:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:56 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