Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Hard drive repair

  • 21-08-2008 11:20am
    #1
    Registered Users, Registered Users 2 Posts: 7,264 ✭✭✭


    Hey all,

    My brothers laptop isnt booting into ubuntu anymore, its getting stuck at checking the hard the hard drive. I've scanned it with some tools on Ultimate Boot CD and its said there is damaged sectors but they havent fixed them.

    I've had success with Hirens boot disc repairing hard drives like this before, but none of the tools can load the cd rom drivers.

    So can anyone else recomend any tools to do it?

    Cheers


Comments

  • Closed Accounts Posts: 1,377 ✭✭✭An Fear Aniar


    Hi,

    at what stage does it get stuck? Do you get a Grub Error?


    .


  • Registered Users, Registered Users 2 Posts: 7,264 ✭✭✭witnessmenow


    No grub loads fine,

    Im away form it now so im not 100% where it is but im pretty sure its checking the hard drive after its been mounted an unmounted 20 times without being checked, that stage.

    Edit: and BTW there is absolutely nothing that i need to save from the hard drive, its completely empty


  • Closed Accounts Posts: 891 ✭✭✭conceited


    Scandisk from windows.


  • Registered Users, Registered Users 2 Posts: 2,013 ✭✭✭lynchie


    conceited wrote: »
    Scandisk from windows.

    Assuming from the details above, OP is using Linux, so either OP doesnt have windows on the machine and if so, scandisk wont be able to scan an ext2/ext3 filesystem.

    OP, is the bios reporting any HDD smart errors?

    Try downloading the diagnostic tools from the hdd manufacturer and see what it says.


  • Closed Accounts Posts: 891 ✭✭✭conceited


    Thats why you format it first.I assumed he knew that since he uses "linux"...


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,065 ✭✭✭Snowbat


    Assuming ext2 or ext3, boot from an Ubuntu CD and run this:
    sudo fdisk -l

    You'll see something like this:
    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 7415 59560956 83 Linux
    /dev/sda2 7416 7736 2578432+ 5 Extended
    /dev/sda5 7416 7736 2578401 82 Linux swap / Solaris
    

    For each type 83 Linux partition (there may be more than one depending on how the disk was partitioned), run sudo e2fsck -c -c on the partition. This does a non-destructive surface scan to identify bad sectors, adds any bad sectors to the bad block inode to prevent them from being allocated to a file or directory, and attempts to recover any data from the bad sectors (similar to CHKDSK /R in Windows).
    eg. sudo e2fsck -c -c /dev/sda1


  • Closed Accounts Posts: 891 ✭✭✭conceited


    Very handy to see linux's way of doing it.Nice answer snowbat.


  • Closed Accounts Posts: 760 ✭✭✭hbr


    So can anyone else recomend any tools to do it?

    Cheers

    "man mkfs" The -c option is the one you need.

    "man badblocks"

    Modern drives have automatic management of bad blocks which is
    transparent to the user. If you are seeing bad blocks, the drive is
    probably in bad shape.

    If the drive supports SMART, you can use smartmontools to
    check it:
    http://smartmontools.sourceforge.net/
    http://gentoo-wiki.com/HOWTO_Monitor_your_hard_disk(s)_with_smartmontools

    Since you don't need to recover any information from the drive. You
    could try completely wiping the drive with "dd". Make sure you
    don't run this command on the wrong drive!

    "dd if=/dev/zero of=/dev/xdx" where xdx is the drive device. Probably
    /dev/sda for the first SATA drive or /dev/hda for the first IDE drive.

    Then format the drive with mkfs using the -c option.


  • Closed Accounts Posts: 4,037 ✭✭✭Nothingbetter2d


    what make of hard drive is it?

    i have had bad experiences with western digital drives (2 failing with in 2 days of each other both less than 10 months old) wd5000aaks is the model of drives

    they sent me out reconditioned drives as replacements which arrived today...... so watch this space lol


  • Registered Users, Registered Users 2 Posts: 7,264 ✭✭✭witnessmenow


    Sorry lads for not replying earlier, was on holidays.

    Did snowbats method last week, And it killed my ubuntu., but i reinstalled ubuntu and its working fine now so the command must have done some good! Thanks much apprecieted


  • Advertisement
  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 93,565 Mod ✭✭✭✭Capt'n Midnight


    bit late now but smartctl is a utility to get IDE/SATA drives to do self


Advertisement