Solved

Linux application-- disk surface test ?

Posted on 1998-10-20
4
1,326 Views
Last Modified: 2012-05-04
Is there a Linux application where I can perform a disk
surface test on a Linux partition? Where can I get it?
0
Comment
Question by:thithi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 5

Expert Comment

by:JBURGHARDT
ID: 1638317
When you install redhat you can do surface test so it got to be with redhat linux, fsck will do surface test but it will not mark them as bad blocks
0
 
LVL 1

Accepted Solution

by:
m4rc earned 50 total points
ID: 1638318
im betting you want fsck. It will test the filesystem structure, inodes, all that and can try to repair problems it finds.  the pesky thing for me was that you can't fsck your current partition, so to check / you have to pull out your root/book disks or emergency repair disks and run fsck from there.  (i could be wrong about that, but it works for me)

m4rc

NAME
       fsck - check and repair a Linux file system

SYNOPSIS
       fsck [ -A ] [ -V ] [ -t fstype ] [ fs-options ] filesys

DESCRIPTION
       fsck  is  used to check and optionally repair a Linux file
       system.   filesys  is  either  the   device   name   (e.g.
       /dev/hda1,  /dev/sdb2)  or  the mount point (e.g. /, /usr,
       /home) for the file system.
0
 

Author Comment

by:thithi
ID: 1638319
Yes, I knew about fsck, but I wanted to check disk surface
like dos/win chekdisk, looking for bad blocks and
marking them if in that case. I found out there is a command
called "badblocks"  that works just fine.
0
 
LVL 1

Expert Comment

by:m4rc
ID: 1638320
hmmm, well im glad i -almost- helped you.  :)
duh, badblocks, i should have remembered that myself.
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question