Find the answer to your Linux question:
Results 1 to 2 of 2
Hi folks, The HD was in problem and I ran # dd if=/dev/zero of=/dev/hda bs=512 count=1 to correct it. Now it becomes # fdisk -l Code: Disk /dev/hda: 40.0 GB, ...
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,546

    Hard drive problem

    Hi folks,

    The HD was in problem and I ran

    # dd if=/dev/zero of=/dev/hda bs=512 count=1

    to correct it. Now it becomes

    # fdisk -l
    Code:
    Disk /dev/hda: 40.0 GB, 4002702954 bytes
    16 heads, 63 sectors/track. 77557 cylinders
    Units = cylinders of 1008 * 512 = 516096 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/hda1   *           1          98      499360+  83  Linux
    /dev/hda2              14         778     39039336  8e  Linux LVM
    I can't create LV on it.

    (remark: I'm now installing Ubuntu-6.06-amd64)


    I compared it with another HD of similar brand and model in another PC

    # fdisk -l
    Code:
    Disk /dev/hda: 40.0 GB, 40020664320 bytes
    255 heads, 63 sectors/track, 4865 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/hda1   *           1          13      104391   83  Linux
    /dev/hda2              14         778     6144862+  83  Linux
    /dev/hda3             779        2053    10241437+  83  Linux
    /dev/hda4            2054        4865    22587390    5  Extended
    /dev/hda5            2054        2118      522081   82  Linux swap / Solaris

    Please advise how to reset it, making
    255 heads (now 16)
    4865 cylinder (now 77557)
    cylinders of 16065 (now 100

    TIA

    B.R.
    satimis

  2. #2
    Just Joined!
    Join Date
    May 2006
    Posts
    16

    Reset HD

    Normally you would do this in the BIOS at startup by depressing delete key as its going through boot process

Posting Permissions

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