• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1277
  • Last Modified:

How to Scandisk in Linux ??

I think my Linux have Bad Sector, how to Scandisk and Recover the File System in Linux ??
0
borislee
Asked:
borislee
  • 2
1 Solution
 
bisgeoCommented:
boot into single mode and run

fsck /dev/hda or whatever the partitions are.
0
 
jozatanCommented:
Check: man fsck

For ext2 fs: e2fsck -p

You should remount first filesystem as readonly and of
course you should be "root".

To remount: mount -o remount,ro /
where "/" is main directory on the partition you want to check.

Basically all commands should be:

mount -o remount,ro /
e2fsck -p
0
 
arn0ldCommented:
if it is your primary partition, you can not do this

why do you think your linux has a bad sector?
0
 
arn0ldCommented:
i should have said "if it is your boot partition"
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now