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

Notices


Reply
  Search this Thread
Old 06-26-2005, 04:09 PM   #1
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Rep: Reputation: 30
Scandisk under linux?


Does anyone know any Windows Scandisk like linux programs?

I have Fedora Core 3 installed. ext3

Last edited by kevingpo; 06-26-2005 at 04:40 PM.
 
Old 06-26-2005, 04:15 PM   #2
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
There should be a fsck tool for every filesystem Linux supports. What kind of filesystem are you trying to fix?
 
Old 06-26-2005, 04:37 PM   #3
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Noth
There should be a fsck tool for every filesystem Linux supports. What kind of filesystem are you trying to fix?
It's ext3
 
Old 06-26-2005, 04:44 PM   #4
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
Generally if there's a problem it will be scanned on bootup, but if you really want to do it yourself you need to unmount the filesystem and run fsck.ext3 on it.
 
Old 06-26-2005, 04:58 PM   #5
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Noth
Generally if there's a problem it will be scanned on bootup, but if you really want to do it yourself you need to unmount the filesystem and run fsck.ext3 on it.
Is it possible to unmount the file system, even when am using it?

Please tell me step by step... process to scan my only ext3 fs
 
Old 06-26-2005, 05:01 PM   #6
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
You can't umount a filesystem in use, if you want to scan the root filesystem you'll need a Live CD like Gnoppix, Knoppix, etc.
 
Old 06-26-2005, 05:14 PM   #7
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Noth
You can't umount a filesystem in use, if you want to scan the root filesystem you'll need a Live CD like Gnoppix, Knoppix, etc.
Yep, using Knoppix 3.3 just now.

Damn, it says:

e2fsck 1.35-WIP (31-Jan-2004)
e2fsck: Filesystem has unsupported feature(s) (/1)
e2fsck: Get a newer version of e2fsck!

Man!
 
Old 06-26-2005, 05:20 PM   #8
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
That version is quite old, I have e2fsck 1.38-WIP (20-Jun-2005) in my Debian sid installation. If you have broadband, I saw that Knoppix 4 was just released.

You never did say why you were trying to scan this filesystem in the first place.
 
Old 06-26-2005, 05:21 PM   #9
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Noth
That version is quite old, I have e2fsck 1.38-WIP (20-Jun-2005) in my Debian sid installation. If you have broadband, I saw that Knoppix 4 was just released.

You never did say why you were trying to scan this filesystem in the first place.
I dropped my laptop by 1 or 2 feet. Just curious whether any physical damage to disk.
 
Old 06-26-2005, 05:23 PM   #10
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
That's a tough one to judge, but if it were mine and I didn't hear any funny noises I would assume it's ok.
 
Old 06-26-2005, 05:28 PM   #11
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Noth
That's a tough one to judge, but if it were mine and I didn't hear any funny noises I would assume it's ok.
It looks and sounds fine (I think). But sometimes I get chug-chug movements, like minor system hangs from time to time... maybe it's coz I left linux running for long time..... but still linux should be able to handle/manage processes efficiently.

Think I gave it swap 512MB. Laptop's got 512MB RAM. Centrino 1.4GHz.
 
Old 06-26-2005, 05:37 PM   #12
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Original Poster
Rep: Reputation: 30
I downloaded e2fsck-1.38 and e2fsck-lib.

Compiled them both on only 2.5MB root space given by Knoppix 3.3 Live CD. I typed:

export LD_LIBRARY_PATH=/livecd/home/knoppix/e2fsck-lib/lib:/livecd/home/knoppix/e2fsck-1.38/lib

That will link / path in those libraries I just built. I couldn't make install coz it was trying to copy them onto the CD or something.

Then I ran ./e2fsck -c /dev/hda2

That -c parameter check for bad blocks and add them to the badblock list.

Now my laptop is hanged.

Just curious, how can one layout/prepare linux partitions so that he can fsck his disk without resorting to live-cds?

Create a:

/
/usr
swap

?
 
Old 06-26-2005, 07:11 PM   #13
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 347Reputation: 347Reputation: 347Reputation: 347
Just boot into init 1.

But, once you've got it properly installed, "fsck" (which calle e2fsck for ext2 or ext3 file systems) is normally called automatically between the initrd and mounting the file systems in rw mode. (For the ones with the flag set at the end of the line in /etc/fstab. See man fstab for details.)

When Fedora boots, there is a message that the file systems are being mounted, and that it "may take some time." That time is, I believe, taken by fsck checking the file systems before remounting them in rw mode.
 
Old 06-26-2005, 08:18 PM   #14
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by PTrenholme
Just boot into init 1.

But, once you've got it properly installed, "fsck" (which calle e2fsck for ext2 or ext3 file systems) is normally called automatically between the initrd and mounting the file systems in rw mode. (For the ones with the flag set at the end of the line in /etc/fstab. See man fstab for details.)

When Fedora boots, there is a message that the file systems are being mounted, and that it "may take some time." That time is, I believe, taken by fsck checking the file systems before remounting them in rw mode.
Interesting.. the fsck check during bootup is a lot far quicker than the fsck I manually ran. When I ran it, it took like 30-40 minutes.
 
Old 06-26-2005, 09:25 PM   #15
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
Quote:
Interesting.. the fsck check during bootup is a lot far quicker than the fsck I manually ran. When I ran it, it took like 30-40 minutes.
If you ran a badblock check it'll take a lot longer, but I would think that 40min is short for a full badblock check.
 
  


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
What's the Linux-equivalent of MS scandisk? johnMG Debian 4 12-22-2004 07:27 PM
Scandisk in Linux ako Linux - Newbie 3 01-15-2004 04:36 AM
Linux Scandisk equivalent. xode Linux - Software 7 11-06-2003 06:12 AM
linux scandisk? versaulis Linux - Software 1 10-22-2003 05:51 PM
Newbie 1.01 : How to 'Scandisk' in Linux? thomassounness Linux - Newbie 3 04-07-2003 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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