LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-22-2004, 03:43 PM   #1
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
What's the Linux-equivalent of MS scandisk?


On this weird lesser-know OS I've encountered called MS Windows I can scan a drive for errors including doing a low-level sector scan (maybe AKA a "suface scan"). I realize I can use fsck to check the filesystem, but how do I do a low-level disk integrity check under GNU/Linux?
 
Old 12-22-2004, 03:50 PM   #2
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Did you ever try the badblocks command? It's quit thorough.
 
Old 12-22-2004, 04:11 PM   #3
gerrit_daniels
Member
 
Registered: Oct 2003
Location: Belgium
Distribution: Kubuntu
Posts: 34

Rep: Reputation: 15
I would recommend e2fsck because it also marks the bad blocks in the file system. It only works for ext2 and ext3 file systems though.

run the following command:

# e2fsk -ck <device-name>
 
Old 12-22-2004, 04:26 PM   #4
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Original Poster
Rep: Reputation: 32
Moloko wrote:
> Did you ever try the badblocks command? It's quit thorough.

Thanks Moloko. Nope, never heard of it, but will look into it.

gerrit_daniels wrote:
> I would recommend e2fsck because it also marks the bad blocks
> in the file system.

Ahh, didn't know that. Thanks. Will read the manpage tonight. Interesting. I'm guessing that the record-keeping of bad-block info is internally handled by the file system driver itself.
 
Old 12-22-2004, 07:27 PM   #5
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
Quote:
Originally posted by gerrit_daniels
I would recommend e2fsck because it also marks the bad blocks in the file system. It only works for ext2 and ext3 file systems though.

run the following command:

# e2fsk -ck <device-name>
It should be noted that just about every filesystem that works with linux has it's own fsck system. For instance, there is one for the minix filesystem, the cramfs filesystem, and even ones for MSDOS, NFS, and VFAT.

If you are going for other journaling filesystems, then I am sure it will still work. I know that XFS also has this sort of checking software (xfsprogs is the debian package)
 
  


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
Scandisk Equivalent-Flag bad Sectors? joe56 Linux - Software 1 06-16-2004 11:12 AM
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
linux "scandisk" equivalent snow Linux - Software 3 12-27-2002 10:38 AM

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

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