Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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,888
    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
    If you want to learn more about linux take a linux journey
    https://linuxjourney.com/
    Use CODE tags when posting output of commands. Thank you.
    https://www.linuxcounter.net/cert/608410.png

Posting Permissions

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