Help adding second HDD for storage only

Discussion in 'Installation/Configuration' started by Unflux, Dec 26, 2008.

  1. Unflux

    Unflux New Member

    Hi folks,

    Not entirely sure this is in the correct forum, so if not I appologise.

    I have a simple home server setup (CentOS 5.x, Apache, MySQL etc) which is installed on a single HDD. I would like to add a second HDD to the machine but only for serving files to my LAN.

    I would like the files I put on this second HDD to be completely separate from primary HDD so that if I need to format Linux for some reason, none of my shared files are lost (all I need do is remove the second HDD and format etc).

    Can someone point me in the right direction for doing this please?

    Thanks in advance.
  2. falko

    falko Super Moderator ISPConfig Developer

    You can format the second HDD with fdisk and then mount it using the mount command.
  3. Unflux

    Unflux New Member

    I found the following on another forum:

    so fdisk /dev/hdd

    create the partition(s) you wanted.

    assume you create one partition /dev/hdd1

    mke2fs /dev/hdd1 this will format your harddiskl

    after format, edit your /etc/fstab

    /dev/hdd1 /newpart ext3 defaults 1 2

    However my HDD is SATA therefore I would replace hdd with sdb. Other than that, does the above look about right?
  4. falko

    falko Super Moderator ISPConfig Developer

    Yes, but I'd use
    mkfs.ext3 /dev/hdd1
    instead of
    mke2fs /dev/hdd1

Share This Page