HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Help adding second HDD for storage only (http://www.howtoforge.com/forums/showthread.php?t=29787)

Unflux 26th December 2008 21:53

Help adding second HDD for storage only
 
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.

falko 27th December 2008 13:20

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

Unflux 27th December 2008 14:48

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?

falko 28th December 2008 13:02

Yes, but I'd use
Code:

mkfs.ext3 /dev/hdd1
instead of
Code:

mke2fs /dev/hdd1


All times are GMT +2. The time now is 20:37.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.