LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-20-2005, 09:17 AM   #1
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
system stuck in loop after improper shutdown


hi. my computer froze while trying to use grip (again) and i had the option to do a system integrity check. I did and it fails and drops me to a root shell to repair the system (not sure what i need to do to do that) Whenever i reboot from the shell it will go back to do the check even if i don't press y to do so. I booted in knoppix to try fsck and here is the output.

root@0[knoppix]# /sbin/fsck -a /dev/hda1
fsck 1.38-WIP (09-May-2005)
/ contains a file system with errors, check forced.
Error reading block 6127728 (Attempt to read block from filesystem resulted in short read) while doing inode scan.

/: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
root@0[knoppix]# /sbin/fsck /dev/hda1
fsck 1.38-WIP (09-May-2005)
e2fsck 1.38-WIP (09-May-2005)
/ contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Error reading block 6127728 (Attempt to read block from filesystem resulted in short read) while doing inode scan. Ignore error<y>? no

Error while scanning inodes (3067136): Can't read next inode
e2fsck: aborted
root@0[knoppix]#

does anyone know what is the issue and how i can repair it?
 
Old 08-20-2005, 09:37 AM   #2
dinolinux
Member
 
Registered: Jun 2005
Location: Oslo, Norway
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322

Rep: Reputation: 31
Hi!

Unless you know EXACTLY how the filesystem works, select the default. In this case the default is ignore. You can trust the check and safely ignore that error.
 
Old 08-20-2005, 09:51 AM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Well, obviously (but not helpfully), you've got a short inode block.

I suspect that you lost power whilst the inode was partially written.

A few suggestions:

1) First, see if e2fcsk can fix it. I.e., Let it ignore the error, and see what else it finds, and if it offerers to "fix" it.

2) If that doesn't work (and, sorry, it probably won't) you could try to copy the partition to another drive using, for example, ddrescue and then see what e2fsck can do with the copy.

3) And, when that fails, I'd suggest you wipe the partition and restore it from your dump files.

A question: Why did you post this to general instead of hardware?
 
Old 08-20-2005, 11:03 AM   #4
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
the main issue im having with this is that the system integrity check used to ask if you want to do it and said you had to press y in so many seconds. But after i did it once whenever i reboot i get the same prompt but the check runs even if i don't press a button so im stuck in a loop because i don't know how to disable the check from happing next time i reboot.
 
Old 08-20-2005, 03:48 PM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
The "loop" is because you still have a bad file system, and Linux will not, normally, let you run with the fs flagged as "bad."

When e2fsck is run in "non automatic" mode, or from your knoppix DVD, it has to finish and "fix" the problem. That turns off the "bad fs" flag, and breaks the loop.

But, until the problem is fixed, you can't get past that point in the boot process. There are some tool that will let you reset the flag by hand, but running with a bad file system is a good way to kill your drive, and is, really not recommended unless you have a very good understanding of exactly what you're doing at every step.

So, did you try our suggestion of not telling e2fsck to "ignore" the problem? Did it then try to fix it? What happened?
 
Old 08-20-2005, 04:04 PM   #6
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
yes i tried ignoring it. i said yes to ignore then it ask to rewrite so i said yes. i forget what the block number was but it was probablly 6 digits long and the last two were 27. then it asked me to ignore it. then the process repeated again for the block ending in 28, so on and so forth. the computer is 4 years old and it is the original drive so not surpise it is shitting out.
 
Old 08-20-2005, 05:04 PM   #7
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Try e2fsck -y. That'll save you typing all those 'y"s . . .

Have you checked your partition settings? Sometimes (very rarely) I think you can get the "short block" because the partition extends beyond the end of the disk. (parted or, if you have it, qtparted might help.)

Can you mount the fs from knoppix (without running e2fsck)? If so, see if you can save your data by copying it to a different drive.

Drives do go bad, but usually not until you've done something brilliant, and before you've run dump.
 
Old 08-20-2005, 08:18 PM   #8
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
the only problem is my only other drive is a 8 gig drive and this is a 60 gig drive im having issues with. Sure it isn't filled but i have a lot of my cds ripped that are easily a couple of gigs and the 8 gig already has a good amount on it. i tried putting everything on there when i was switching distros so i could just put it back without having to burn cds or anything and didn't have enough room, i have more data since then.

Last edited by dr_zayus69; 08-20-2005 at 08:19 PM.
 
Old 08-21-2005, 03:30 PM   #9
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
i was able to get fsck to complete in knoppix and im back into my system. I still can't figure out why the computer is freezing when i try to rip a cd. I think this may have to do with it but i am not sure.

Aug 21 15:05:23 localhost smartd[2364]: Device: /dev/hda, 13 Currently unreadable (pending) sectors
Aug 21 15:05:23 localhost smartd[2364]: Device: /dev/hda, 12 Offline uncorrectable sectors

thanks for your help.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Force filesystem check after improper shutdown? Phaethar Linux - General 6 04-23-2011 09:12 PM
system recovery after improper shutdown - mandrake 10.0 offical infinity432 Linux - General 3 11-25-2004 03:29 AM
where to find improper shutdown logs linylion Linux - General 4 09-08-2004 12:59 AM
recovering from improper shutdown: ext3 kngharv Linux - Newbie 2 06-11-2003 10:29 PM
HDD problem after improper shutdown... Azazel Linux - Newbie 2 01-19-2003 11:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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