LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-07-2006, 10:50 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!!!
 
Old 04-08-2006, 02:54 AM   #2
commbot
LQ Newbie
 
Registered: Feb 2006
Distribution: Fedora, CentOS, Ubuntu, Debian
Posts: 6

Rep: Reputation: 0
try fsck -fy / at the command prompt
 
  


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
Need help using Rescue Mode - How to fsck(power outage caused kernal panic on bootup) Arodef Red Hat 3 04-16-2006 12:44 PM
Kernal Panic while booting from rescue disk p3980 Slackware 23 12-19-2005 10:51 AM
Kernal Panic on Bootup space_invader64 Linux - General 4 12-09-2005 11:21 PM
power outage jbzy3000 Linux - General 2 02-24-2005 10:11 PM
Debian rescue mode: Kernel panic manudath Linux - Software 0 02-16-2005 01:25 PM

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

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