LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Scanning Disk or Disk Repairing (https://www.linuxquestions.org/questions/linux-hardware-18/scanning-disk-or-disk-repairing-368438/)

mhkhalqani 09-30-2005 08:19 AM

Scanning Disk or Disk Repairing
 
Hi all
I want to scan my all drives how can I do it. please also explain the disk managing utilities in linux redhat 9

mhkhalqani

Artanicus 09-30-2005 09:07 AM

scan for what?

And disk management tools, well, there are alot of them.depending on what you mean. cfdisk and fdisk do partitioning, hdparm can adjust hdd parameters, and there are hundreds of other programs concerning harddisks.

My point is, please be more specific. Tell us what you need to do to a disk, and we can tell you what you should be looking for.

edit:

If youre referring to a scandisk-like solution, then you need not look any further. The most popular filesystems on Linux systems (ext3, ReiserFS, etc) dont need any defragmentation like FAT32 partitions need. Aanyways,
Code:

man fsck
might also reveal something youre after.

And lastly, if you seek to recover a deleted file, youre out of luck if you use any other filesystem than ext2. On ext2 it is possible, but only rarely, and only about immediately after deleting the file.

SkyEye 09-30-2005 09:12 AM

Welcome to LQ mhkhalqani!

Artanicus's post is quite right. But, I get the feeling maybe you are just asking for file system checking programs. If that's the case look for "fsck".

Yet another time, I recomment using a newer distro if you don't have specific reason to be stuck with RH9, since RH9 is old (4 versions have appeared after RH9 in the related distro line, which is now Fedora Core 4)

mhkhalqani 09-30-2005 09:21 AM

actually I can not write any data on the disk, so it may be a disk error therefore I want to check the disk. I have full permission to right data but I can't do.
mhkhalqani

SkyEye 09-30-2005 09:28 AM

Check weather the disk is mounted read-only (ro) using mount. Check the fstab (/etc/fstab), too.


All times are GMT -5. The time now is 06:38 AM.