LinuxQuestions.org
Review your favorite Linux distribution.
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 02-15-2005, 08:56 AM   #1
aya_rei
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware 10.0, Slackware 10.1, Redhat, Suse 9.1, FreeBSD 5.3
Posts: 18

Rep: Reputation: 0
fs damage. e2fsck will not run to fix linux partition


Hi,

When I ran e2fsck -n /dev/hda3 (my linux partition) to check my fs I got this:

---------------------------------------------------
Warning! /dev/hda3 is mounted.
/dev/hda3 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Deleted inode 68476 has zero dtime. Fix? no

Deleted inode 427941 has zero dtime. Fix? no

Deleted inode 427942 has zero dtime. Fix? no

Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences: -6740 -6741 -6742 -37681 -37682 -37683 -37684 -37685 -37686 -37687 -76221 -76222 -76223 -76224 -76225 -76226 -76227 -465346 -465347 -465348 -465349 -465350 -465351 -465352
Fix? no

Inode bitmap differences: -68476 -427941 -427942
Fix? no

/dev/hda3: 33180/557056 files (0.2% non-contiguous), 146354/534161 blocks

------------------------------------------------

How can I fix this? I tried to shutdown to administrative mode and run e2fsck but it says / is "busy". Also, I checked the /etc/rc files that run with
shutdown -h and shutdown -r and they both go execute 'umount' and 'sync' commands so I don't know where this is coming from.

Any suggestions on fixing my filesystem?

I'm working on Slack 7.1 with e2fsck 1.18 and can't upgrade at this time.

Thanks
 
Old 02-15-2005, 09:24 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393
Hi,

hda3 is (probably) your root (/), you need to unmount it before you can repair it. Because it is the root fs you cannot do this while the system is up and running.

Don't know if slack (7.X) checks the fs on reboot, the following should force it: shutdown -F

Another way would be to start from a 'live' cd (knoppix being one) and execute e2fsck command on /dev/hda3 (without the -n option). You could consider using the -y option. Take a look at the e2fsck manpage.

Hope this helps.
 
Old 02-23-2005, 09:24 AM   #3
aya_rei
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware 10.0, Slackware 10.1, Redhat, Suse 9.1, FreeBSD 5.3
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by druuna
Hi,

hda3 is (probably) your root (/), you need to unmount it before you can repair it. Because it is the root fs you cannot do this while the system is up and running.
Don't know if slack (7.X) checks the fs on reboot, the following should force it: shutdown -F
That's what I was thinking ("how can I possibly unmount root when I'm running from it."), but I only have Windoze and Slack 7.1 on my old laptop. And 7.1 does do a check but it doesn't fix anything. I just get the error messages and it continues on.

Quote:

Another way would be to start from a 'live' cd (knoppix being one) and execute e2fsck command on /dev/hda3 (without the -n option). You could consider using the -y option. Take a look at the e2fsck manpage.

Hope this helps.
I have tried the -y option. I was hoping I could fix the fs within Slack7.1, but from what you are saying I actually need to have a second linux system on my computer to do that? That is, bootup, say a Debian kernal/partition and run e2fsck from there to fix my Slackware root partition?

Last edited by aya_rei; 02-23-2005 at 09:26 AM.
 
Old 02-23-2005, 09:36 AM   #4
john8675309
Member
 
Registered: Oct 2003
Location: Spencer, Iowa
Distribution: Slackware (of course)
Posts: 67

Rep: Reputation: 16
You can't unmount a root partition that would be like taking away the C; drive in windows . you could try to boot off of a cd rescue or floppy rescue of some sort. You could try something like
http://www.sysresccd.org/download.en.php I am sure the slackware cd contains ext2fsck and you probably could fix it from there too
 
Old 02-23-2005, 09:55 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393
Hi,

Quote:
........but from what you are saying I actually need to have a second linux system on my computer to do that? That is, bootup, say a Debian kernal/partition and run e2fsck from there to fix my Slackware root partition?
You misunderstood.

You do need another (minimal) 'linux system', but it does not have to be on your computer (hd that is). In short this is what you have to do (one option):

1) If you do not have a rescue/live cd, download one and burn it to cd. It's always a good idea to have a live cd handy in case something happens to your system (hd/partition problems to name just one ).

Personally I like the knoppix live cd (Knoppix download page). There are others (john8675309 gave one).

2) Boot from the live cd
3) run e2fsck (from the cd) and let it check /dev/hda3
4) if e2fsck was able to fix the problem(s), remove cd and reboot.

Hope this clears things up a bit.
 
  


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
all attempts to fix the problem failed... can someone help me fix partition space? foreverdita Linux - Enterprise 2 05-11-2005 10:02 AM
partition crashes and e2fsck asks if it is a zero lenght partition tlakers Linux - Enterprise 1 11-15-2004 02:30 PM
Partition damage? godsdog Linux - Newbie 5 07-14-2004 01:56 PM
schedule 'e2fsck' to run on startup, possible? BxBoy Linux - General 1 02-18-2004 01:15 PM
run e2fsck when system is running? mikeshn Linux - General 1 10-14-2003 12:55 PM

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

All times are GMT -5. The time now is 03:43 PM.

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