To fix bad blocks on a harddisk



Although the following process will not result in any data loss but
you may loose some of the files that are allocated on bad areas.
First of all make sure that you are having some bad blocks on your harddisk.
Bad blocks can be taken as equivalent to bad sectors.
The best way is to log in as root under failsafe session &
unmount the filesystem you want to check with the help of umount command.
umount /dev/hdxy
where x may be a,b,c,d,...
& y can be 1,2,3,4,....
To check what to write with umount you can run
fdisk -l
I am taking /dev/hda3 here.

After unmounting check the partition with the help of badblocks command
badblocks /dev/hda3 (say)
Now wait for a good time depending upon the size of the partition.
If you didn't see any numbers on the screen & just the prompt appears then
it means that the partition you have checked is free from any badblocks.

However if thsi doesn't happen & you see some number's after running badblocks then
ru nthe following command
e2fsck -p -c /dev/hda3
Note : you may also run e2fsck -c to save ur files that are on bad areas by
answering some questions asked by the e2fsck command.

Note: The above command will run on both ext2 & ext3 filesystems.
After running the above command run the following command to make sure that
the bad blocks have been marked
dumpe2fs -b /dev/hda3

Now repeat the whole process for rest of your partitions.

In case you want to check partitions like /var & /tmp then
you can do this with the help of booting your system from boot disk (I haven't tried this thing).






Recommended for You »

  1. When Someone Is Poor No One Knows Him But When The Same ..
  2. आज गुब्बारे उड़ नहीं पड़ रहे हैं दोस्तों मेहमानों ..
  3. If You Like My Sms I Am Smart If You Save ..
  4. A Flower Cannot Give Water And A River Cannot Spread Fragrance ..
  5. Santa Tu Udaas Kyu Hai? Kal To Teri Shadi Hai Banta Ladki Walo Ne ..
  6. When I Let Go Of What I Am I Become What ..
  7. I Used To Expect Others To Do What They Said Now ..
  8. Accident Hua Bahut Bhid Thi Santa Ko Dekhne Ka Mauka Nahi ..
  9. Cricketer Ka Beta Arre Dekho Maa Papa Sixer Per Sixer Maare ..
  10. Funny Ironic Word Combinations 1 Clearly Misunderstood 2 Exact Estimate 3 Small Crowd 4 ..

Share & Let Everyone Read









Draw shape below and click submit button to send us your message:

About Us


Our logo expands to iOLdot - Ik Oankaar Lazeez Dimension of Texting which tries to reflect our ideology.

The purpose of this website is to develop a Dimension to Texting through the Aesthetics of Words by providing Unique, Decent, Pleasant, Pure, Gentle, Clean, Refined, Inoffensive Thought Provoking Wisdom Quotes, Funny Jokes, Shayari, Motivational SMS, Greetings, Wishes, Proverbs, Dohe, Love Messages & much more.. We also encourage you to be part of this journey & share your creative content with us. Play your flute here..



What's more


moderated-content-kids-safe

Moderated Content

Safe for people of all Age Groups including Children.
sms-api-always-win

API

Display SMS on your Website or Blog at Zero Cost.
rate-content

SMS Rating

Gives You Power to Rate Content.
« Stay In Touch »