Find the answer to your Linux question:
Results 1 to 10 of 10
Hi gurus, this is non standard linux question but I thing linux could help with this I have HDD (Samsung) which contains bad sectors (or clusters/blocks - dont know exact ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2009
    Posts
    70

    Question Repair HDD with approporiate partitioning


    Hi gurus, this is non standard linux question but I thing linux could help with this
    I have HDD (Samsung) which contains bad sectors (or clusters/blocks - dont know exact terminology). I downloaded official software for diagnostic (bootable CD with free DOS and utility) - and I executed low level format. BUT it returns me LBA (I am little confused with LBA) address which contains bad sectors.

    My question is: Is possible to locate bad clusters and then make partitioning excluding those part of HDD which contains bad sectors ?
    Example (The values are think out not real numbers):

    lets say 160 GB HDD has addresses of lba from 0 to 160000 LBA
    now lets say that at 120000 LBA is some bad cluster
    so i wuld like to create 2 partitions from 0 - 110000 LBA and from 130000 LBA - 160000 LBA
    so lets say sizes of partitons would be 110 GB and 30 GB.

    I hope I explain clear what I am achieving. - Could you please point me to some tutorial or something like that.
    Thanks a lot

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    877
    In my experience, once bad sectors start appearing they will do so until you toss the drive.

  3. #3
    Just Joined!
    Join Date
    Jul 2009
    Posts
    70
    Yes I am expecting that - that HDD would be used only as a large USB drive

  4. #4
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    877
    So what's the point of having a drive which routinely will corrupt your files because new bad sectors keep appearing?

  5. #5
    Just Joined!
    Join Date
    Jul 2009
    Posts
    70
    i will use it as a transfer movies from school to home if some movies did not works nothing happens

  6. #6
    Banned
    Join Date
    May 2010
    Posts
    19
    Quote Originally Posted by wakatana View Post
    i will use it as a transfer movies from school to home if some movies did not works nothing happens
    Look, just backup your data into another HDD and dump this one already.

    Once bad sectors start appearing, it's only a matter of months before the whole device is FUBARed and completely not usable.

  7. #7
    Just Joined!
    Join Date
    Jul 2009
    Posts
    70
    AFAIK - if you format the drive the process will mark bad sectors as a "BAD" and do not use them anymore, istead of it it uses a "BACKUP" sectors which every new HDD contains and are reserved exactly for those cases.
    I saw using HDD with bad sectors for a years not for months as yu type.
    I will try and in the future I will give a report

  8. #8
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,134
    I don't know if partitioning software marks bad sectors, but they
    are marked at the time of formatting. Go ahead and create partitions
    and format them. At the time of format, you are good to go until
    more bad sectors appear. FYI, the firmware on the drive automatically
    swaps bad sectors out for spares until it runs out of spares.

    So it doesn't report bad sectors to the OS (or to you) until the
    spares are exhausted. Your spares are exhausted. That is why
    it is reporting bad sectors. Still, you may get additional life out
    of it, as long as your data are not of critical value.

  9. #9
    Just Joined!
    Join Date
    Jul 2009
    Posts
    70
    Hmm, first do partitoning and then do formatting ? It seems to me a little confusing because I need something "more low level" than fromatting a partition.
    I have finnaly found that I have been looking for but it is utility for M$ called HDTune

  10. #10
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by wakatana View Post
    I have finnaly found that I have been looking for but it is utility for M$ called HDTune
    HDTune won't fix a hard drive that is constantly gathering bad sectors but you can find the app itself on several different liveCDs. I believe that either hirens bootcd or ultimate bootcd come with it. They both might have it... don't remember for sure. You might also be able to run those from a flash drive, but not sure.
    oz

Posting Permissions

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