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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-20-2005, 09:17 AM
|
#1
|
Member
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877
Rep:
|
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?
|
|
|
08-20-2005, 09:37 AM
|
#2
|
Member
Registered: Jun 2005
Location: Oslo, Norway
Distribution: Slackware 11, Solaris 10, Solaris 9, Sourcemage 0.9.6
Posts: 322
Rep:
|
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.
|
|
|
08-20-2005, 09:51 AM
|
#3
|
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187
|
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?
|
|
|
08-20-2005, 11:03 AM
|
#4
|
Member
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877
Original Poster
Rep:
|
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.
|
|
|
08-20-2005, 03:48 PM
|
#5
|
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187
|
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?
|
|
|
08-20-2005, 04:04 PM
|
#6
|
Member
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877
Original Poster
Rep:
|
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.
|
|
|
08-20-2005, 05:04 PM
|
#7
|
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187
|
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.
|
|
|
08-20-2005, 08:18 PM
|
#8
|
Member
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877
Original Poster
Rep:
|
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.
|
|
|
08-21-2005, 03:30 PM
|
#9
|
Member
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|