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. Your Elbow Is Close Yet You Can T Bite It ..
  2. Kahe Rahim Sampati Sage Banat Bahut Bahu Reet Bipati Kasauti Je ..
  3. Aaj Khuda Se Mulaqat Hui Thodi Hi Sahi Per Baat Hui Maine ..
  4. Tu Mera Sapna Mera Armaan Hai Shaayad Tu Apni Ahmiyat Se ..
  5. Funny Ironic Word Combinations 1 Clearly Misunderstood 2 Exact Estimate 3 Small Crowd 4 ..
  6. A Kind Word And Gun Gets You More Than A ..
  7. Santa And Banta Bought A Horse Each Santa How Will We ..
  8. Five Roses Just For You Because You Are A Special ..
  9. बात ऐसी हो की जज़्बात ..
  10. Haathon Ki Lakiron Se Kismat Nahi Badalti Kyonki Kismat Unki Bhi ..

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 »