Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th December 2008, 21:53
Unflux Unflux is offline
Junior Member
 
Join Date: Jul 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 27th December 2008, 13:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

You can format the second HDD with fdisk and then mount it using the mount command.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 27th December 2008, 14:48
Unflux Unflux is offline
Junior Member
 
Join Date: Jul 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
Reply With Quote
  #4  
Old 28th December 2008, 13:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
 
Default

Yes, but I'd use
Code:
mkfs.ext3 /dev/hdd1
instead of
Code:
mke2fs /dev/hdd1
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenLDAP + Samba Domain Controller On Ubuntu 7.10 bootzcat HOWTO-Related Questions 7 21st March 2008 15:31
External HDD terryoleary1981 HOWTO-Related Questions 2 1st February 2008 15:04
Adding Additional HDD to Feisty Fawn Linocks Installation/Configuration 1 5th August 2007 13:31
Strato Server - Restoring with SystemImager popper2001 HOWTO-Related Questions 5 28th July 2007 10:18
Creating image with Systemimager cuongtim HOWTO-Related Questions 3 18th November 2006 13:55


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


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