Author Topic: Mounting a Second Hard Drive  (Read 12487 times)

VaineDragon

  • Zen Warrior
  • ***
  • Posts: 100
  • Karma: +0/-0
    • View Profile
    • Dragon's Den
Mounting a Second Hard Drive
« on: August 02, 2009, 04:42:21 pm »
Can anyone give me the proper procedure for Mounting a second HD with Read/Write permissions.


“ If you look into the eye of the storm, and see nothing, Well I guess you better step aside, thus is the truth of your lack of reason. ”

ian

  • Community Council Member
  • Zen Samurai
  • *****
  • Posts: 296
  • Karma: +10/-1
    • View Profile
    • Familie site
Re: Mounting a Second Hard Drive
« Reply #1 on: August 04, 2009, 07:05:56 pm »
L.s.

Install some extra stuff on your eBox server like:

- Lxde ( small desktop , only active wen started, so in operarional environment is do not need eny resources of your server ).
- gparted ( tool to partition and fromat hard disks, with dis tool you can prepare a new harddisk for your system ).
- webmin ( tool to manage unix/linux servers, where you can define a permanent mount of a disk on the server )

Best regards?
ian

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: Mounting a Second Hard Drive
« Reply #2 on: August 06, 2009, 12:47:19 am »
Hello VaineDragon,

Without installing a single thing, edit your /etc/fstab configuration by adding a new line such as:
Code: [Select]
/dev/sdaX   <mount_point> <file_system> <file_system_mount_options> 1 2

Cheers,
My secret is my silence...

gpouser

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Mounting a Second Hard Drive
« Reply #3 on: August 07, 2009, 02:39:53 pm »
Install your hard drive, check in the bios that eBox drive is there and your second hard drive. HDD cables make sure you have Master - Second on the same channel.

Access your server with ssh   user@server then sudo -s with the same password or use a shell on your desktop.

Test drives

fdisk -l /dev/sda        If SATA this could be your eBox look for size of hard drive

fdisk -l /dev/sdb        Try each letter until you find the hard drive  /dev/sdx  if HDD try /dev/hdb

Look over the drive size on each it help to have diff size hard drives say eBox 160GB - New drive 200GB that way you will not delete your hard drive.

Create partition fdisk /dev/sdb      This is your hard drive you have added in LOOK at the DISK SIZE

Create new partition n

partition type p primary

Press enter twice will use the full drive

Write the mbr to the disk with fdisk

Format your system

mkfs.ext3 /dev/sdb1              note the partition number

There after mount

mkdir /mnt/storage

mount -t ext3 /dev/sdb1 /mnt/storage

then go to your new drive

cd  /mnt/storage

mkdir test

This should work