Quote:
Originally posted by MrSako:
im on centos 4.4 I still can't seem to figure out how to use badblocks.
[...]
I don't mind replacing the hard drive if it's bad but I can't seem to find any evidence that prooves the hard drive is bad.
|
Hi. Since you want to do it through block size and not give enough info, I have to asume your filesystem is reiserfs.
To get the block size for a reiserfs filesystem you do: debugreiserfs /dev/your_device
To know if it has badblocks: /sbin/badblocks -v -o /badlist_devicename -b <reiserfs-block-size> /dev/your_device
That results in giving you the list of bad blocks for the device in the file "/badlist_devicename"
to fix the list of bad blocks: reiserfsck --badblocks /badlist_devicename /dev/your_device
to rebuild a reiserfs partition: reiserfsck --rebuild-tree --bad-badblocks badlist_devicename /dev/your_device
Suggestions: save the bad blocks file list in a diskette, you never know when you have to format during GNU/Linux install using that list. For receiving better answers or answers at all you should post helpful outputs to this matters, like "# df -Th".
Quote:
My ultimate goal is to dualboot windows XP and linux on the laptop. windows will not install because it says the hard drive is corrupt, but centOS installs just fine. (and i haven't encountered any problems yet while using it)
|
If you need a clean partition to a propietary OS, that OS surely has to have a formatting option with blocks checking enabled. Using badblocks to check or fix a vfat filesystem doesn't need the blocksize parameter. I don't know if badblocks works over ntfs.