Tuesday, September 18, 2012

Add a second HDD to ClearOS

Connect to the console on ClearOS.
  1. Type fdisk -l to display the list of HDD in your system.
  2. Type fdisk /dev/hdb to create a partition on your second drive (in this case hdb). Select P for primary partition, 1 for Partition number and Hex Code 83 (for Linux file system). At the end type W to write the partition.
  3. Type mkfs.ext3 -b 4096 /dev/hdb1 to create a filesystem to that partition. Follow prompts.
  4. Type sudo mkdir /mnt/DataDrive to create a mounting point call DataDrive (or any other label you see fit).
  5. Type mount /dev/sdb1 /mnt/DataDrive to mount the DataDrive.
  6. Type nano /etc/clearos/flexshare.conf to edit the configuration file that controls the flexshares.
  7. Find the line that shows FlexshareDirCustom and change it to FlexshareDirCustom==Disk1:/mnt/DataDrive/ to make permanent the change. Press Control+X to exit nano. It will ask you if you want to save. Say Yes.
Now you can use the second hard drive in ClearOs. I would like to thank all the people with their posts that helped me to be able to add a second HDD (finally) to my ClearOS system.

3 comments:

Anonymous said...

Your are a Legend!!! thank you so much.

Network freak said...

Will we able to access both the HDD after this process?

San said...

awesome !