Find the answer to your Linux question:
Results 1 to 2 of 2
Hi Im trying to add a second ide hard disk to my computer. I have added it as a slave. Its defiantly there, ls /dev/hd* results in:- /dev/hda /dev/hda2 /dev/hdb ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2006
    Posts
    42

    Adding a second hard disk


    Hi

    Im trying to add a second ide hard disk to my computer. I have added it as a slave. Its defiantly there, ls /dev/hd* results in:-

    /dev/hda /dev/hda2 /dev/hdb /dev/hdb2 /dev/hdb4 /dev/hdb6 /dev/hdd
    /dev/hda1 /dev/hda3 /dev/hdb1 /dev/hdb3 /dev/hdb5 /dev/hdc

    the hda partitons are my first hard disk with the OS etc on, hdc and hdd are the 2 cd drives. hdb (which I guess is the new hard disk) seems to have a load of partions on it (its out of an old pc)

    I just want one single partion on hdb. If I do fdisk -l /dev/hdb I get:-

    Disk /dev/hdb: 80.0 GB, 80026361856 bytes
    16 heads, 63 sectors/track, 155061 cylinders
    Units = cylinders of 1008 * 512 = 516096 bytes

    Disk /dev/hdb doesn't contain a valid partition table

    Not really sure what to do, could I have a few pointers

    thanks so much

    Joe

  2. #2
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    You should just use fdisk or cfdisk on it and erase all of the partitions.
    What distro are you using?

    Code:
    fdisk /dev/hdb
    Code:
    cfdisk /dev/hdb
    wen using cfdisk, just highlight the line that you want to change, put the cursor on the action that you wish to perform, hit ENTER
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

Posting Permissions

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