Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2012
    Posts
    38
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    bad sectors on disk

    how do you repair a disk that is reported to have many bad sectors and fsck reports that the filesystem is mounted.




  2. #2
    Join Date
    Apr 2012
    Posts
    24
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    You could use the badblocks command to create a list of bad blocks.
    Then you can format the disk with mkfs or mke2fs (with the -l option you can provide a bad blocks list that won't be used in the filesystem).
    This is just a temporary solution though. When there are bad sectors, more will follow.

  3. #3
    Join Date
    Nov 2011
    Location
    GMT +8
    Posts
    212
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    2
    Quote Originally Posted by WeAreGeek View Post
    You could use the badblocks command to create a list of bad blocks.
    Then you can format the disk with mkfs or mke2fs (with the -l option you can provide a bad blocks list that won't be used in the filesystem).
    This is just a temporary solution though. When there are bad sectors, more will follow.
    Not necessarily. I have some bad sectors on my hard drive. What I did was to make a partition on the part which has the bad sectors. Then I just do not use that particular partition. It's been two years now. The rest of the hard drive is still working well, 12-16 hours every day, seven days a week.

  4. #4
    Join Date
    Jul 2012
    Posts
    38
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    thanks

  5. #5
    Join Date
    Nov 2011
    Posts
    93
    Thanks
    5
    Thanked 1 Time in 1 Post
    Rep Power
    2
    I have a hard drive that I actually throw away because of bad sector years ago. I never bother to partition, How do you know which partition has bad sector?

  6. #6
    Join Date
    Jul 2012
    Posts
    38
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    i ran badblocks command with the "-o file" command and the hard disk came out clean. i ran it as /dev/sda i.e the whole disk not minding partitions. wondering why blag says the disk is sick?

  7. #7
    Join Date
    Feb 2012
    Location
    UTC -8 'tween the mtns, N of the Columbia R
    Posts
    202
    Thanks
    4
    Thanked 16 Times in 15 Posts
    Rep Power
    2
    FYI, *Linux Poison* has some useful info on this topic and more

    Source (from search) --http://linuxpoison.blogspot.com/2008...rrors-and.html
    Howto check disk drive for errors and badblocks, by Nikesh Jauhari
    Last edited by pane-free; 07-23-2012 at 01:09 PM.

  8. The Following User Says Thank You to pane-free For This Useful Post:

    emekadavid (07-23-2012)

  9. #8
    Join Date
    Jul 2012
    Posts
    38
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    will run fsck right now

  10. #9
    Join Date
    Nov 2011
    Location
    GMT +8
    Posts
    212
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    2
    Quote Originally Posted by enhu View Post
    I have a hard drive that I actually throw away because of bad sector years ago. I never bother to partition, How do you know which partition has bad sector?
    Well, half of it was guesswork and half of it was from my experience with literally thousands of hard drives.

    I first noticed that my hard drive was failing when my Windows installation became unstable. Sometimes it boots up. At other times, it just died. Finally it died totally. I couldn't even re-install it.

    That was when I tried marking off the first part of the hard drive. I started by marking off only 10Mb. Didn't work. So now I have marked off 100Mb. Just left that partition totally unallocated. I did that a couple of years back. My hard drive is still working up to today.

    It's good that my Windows died. Otherwise I wouldn't have found Linux. Now Linux is my main os. I have Windows 8 only to play World of Warcraft.

  11. #10
    Join Date
    Jan 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by Victor Leigh View Post
    I first noticed that my hard drive was failing when my Windows installation became unstable. Sometimes it boots up. At other times, it just died. Finally it died totally. I couldn't even re-install it.
    Greetings!!!!
    I'm having same problem in my HDD...same as u unable to reinstall windows in it.
    I also installed ubuntu in logical drive and left primary partition to install windows in it...to make it start again...but it couldn't help.

    i ran Ubuntu live CD...and disk utility is showing smart status as "DISK FAILURE IS IMMINENT" also showing 2047 badsectors.Screenshot-320 GB Hard Disk (ATA TOSHIBA MK3265GSX) [-dev-sda] — Disk Utility.pngsmart data.png

    tried also with $ sudo badblocks -v /dev/sda (by making my all HDD unallocated) it took 135 hrs and still continued so i made it stop.terminal.png

    currently trying to format my HDD as ext2 bcoz somebody gave me this link

    but i want ur help to make my HDD again reusable....bcoz its all started same as u mentioned,...and as u made it..so plz...looking for ur suggestion

 

 

Similar Threads

  1. Replies: 0
    Last Post: 01-30-2012, 12:13 PM
  2. How to mount DSM to disk?
    By thelowbudget in forum General Linux
    Replies: 1
    Last Post: 01-14-2012, 12:40 PM
  3. What's So Bad About SOPA?
    By Fred in forum Linux News
    Replies: 1
    Last Post: 12-16-2011, 02:36 PM
  4. Disk Encryption in Fedora 16
    By Fred in forum Linux News
    Replies: 0
    Last Post: 11-13-2011, 07:25 AM
  5. Replies: 0
    Last Post: 11-03-2011, 09:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,530
Threads: 3,911
Posts: 9,418
Top Poster: Fred (1,486)
Welcome to our newest member, Chrissy Howard

» Links



Powered by vBadvanced CMPS