Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-23-2006, 05:50 PM   #1
Registered: Feb 2005
Distribution: Ubuntu (Dapper)
Posts: 32

Rep: Reputation: 15
Adding another Hard disk

Ive set up a ubuntu server and it working great for my house at uni (much better than the Router that was playing up )

Anyway, the server was built from an old machine of mine from a few years back and so is a little dated but performs as a server with no probems. However it only has a 15Gb HDD and we were considering as using it a a central file storage for our house (a bunch of students ). What I was wondering is if I instal another HDD into the system how would this work with the linux file system, Im really inexperienced as Ive used windows mainly in the past. Would the hard drive just be added automatically and then increase the storage (hope that makes sense) or would I have to mount it, if so could I mount it to the /home/ directory? as I just want to increase the storage for all house mates so we can dump files on there. Or would I do this disrupt the present /home directory?

Thanks in advance

Old 05-23-2006, 05:56 PM   #2
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
I don't think you can have 1 diroctory for 2 partitions, at least not in aν obvious way

you can create a new directory inside /home/ directory and mount it there.
Old 05-23-2006, 06:09 PM   #3
Registered: Feb 2005
Distribution: Ubuntu (Dapper)
Posts: 32

Original Poster
Rep: Reputation: 15
Thankyou for your quick reply

I'll set up a public folder and give all users read and write priveleges. I wasnt too optimistic about mounting in the same directory I thought it would screw it up

Thanks again!!!
Old 05-23-2006, 07:59 PM   #4
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
A new drive would not be automatically seen, and it certainly wouldn't mount into the linux file structure on its own.

The "simplest" thing to do might be to plug the new drive into the slave cable for IDE. Then edit your /etc/fstab, and set something like
/dev/hdb1  /data  reiserfs defaults      0       1
Then you could set up vsftp or apache to use that directory (/data) as its local root, and give everyone read/write permissions.

Other possibilities include making the new drive your /home partition, which takes a little bit more work, but isn't too bad. Google or look here for how to move /home from one disk to another. Also if you're going to do that, make sure you have knoppix or some other live distro around, so you can save things if they get screwed up.

Old 05-24-2006, 01:05 PM   #5
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170
You could split data across two or more volumes if you use LVM (Logical Volume Management), but for casual home installations that's not commonly done.

Normally, you shut down the machine, and install the drive, setting the master/slave switches properly. Then reboot the machine. You should see the drive appear as /dev/hdb, c, or d but it won't yet be ready for storage.

Now, as root, you run a tool like parted to format and partition the drive. You can choose a variety of filesystems with Linux. Once you do that, you can add the drive to /etc/fstab and mount the drive.

There are many guides, including right here on this site, which discuss the topic at length.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding and using another hard disk Greebstreebling Linux - Hardware 5 12-21-2005 02:19 PM
adding new hard disk jkmartha Linux - Newbie 3 08-19-2005 01:09 AM
GRUB - adding new hard disk gedi1 Linux - General 2 06-16-2004 07:16 PM
Adding a hard disk mastahnke Linux - Hardware 15 11-27-2002 07:25 PM
Adding a hard disk in Mandrake aizkorri Linux - General 3 03-26-2002 03:27 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration