View previous topic :: View next topic |
Author |
Message |
viper2pt0 Tux's lil' helper
Joined: 06 Mar 2004 Posts: 98
|
Posted: Tue Jul 20, 2004 5:18 pm Post subject: Hard Drive Setup Question |
|
|
Ok guys, here is my question...i am still fairly new with gentoo, but i have sucessfully created a movie server for myself. I have one 250 gig hdd, with 3 partitions hda1 (boot) hda2 (swap) and hda3 (root).........to store the movies i made a user called "movies" and im just putting all the movies in /home/movies/ then i put samba on, and through my windows machine i "mapped a network drive" to that directory. everything works awesome. but i kinda ran into a problem....what happens when my hard drive fills up?...if i throw another hard drive in there, do i just make one partition on it? like a root partition being hdb1?....and then....how do i get to it to put more movies on it?....i know it wont be like raid, so i cant just keep puttin movies in the /home/movies directory and have them go on the second hard drive...so how would i go about doing this?...im sorry if it sounds very complicated...thanks in advance |
|
Back to top |
|
|
db_404 Guru
Joined: 05 Dec 2002 Posts: 336
|
Posted: Tue Jul 20, 2004 5:36 pm Post subject: |
|
|
Assuming you want to use the whole of the new drive for movies, you would just partition it as one primary partition, format it with whatever file system you chose (e.g. ext3 or reiserfs etc.).
Then you could add a directory to your /home/movies directory (for example /home/movies/moremovies) and mount your new drive there e.g
Code: |
mount /dev/hdb1 /home/movies/moremovies
|
To make this happen every time you boot up, just add the new mountpoint into /etc/fstab
e.g
Code: |
...
...
/dev/hda3 / reiserfs defaults 1 1
/dev/hda1 /boot ext2 1 1
/dev/hdb1 /home/movies/moremovies ext3 1 2
...
...
|
That would be the simple approach, more complex ones would include moving partitions around and using volume management, but that seems like overkill for this setup. |
|
Back to top |
|
|
EzInKy Veteran
Joined: 11 Oct 2002 Posts: 1742 Location: Kentucky
|
Posted: Tue Jul 20, 2004 5:36 pm Post subject: |
|
|
Sounds like a tedious system, but heh.
Just make your /mnt/movies directory. Your computer should recognize whatever hard disk you put in as /dev/hdb1 and linux will mount it as long as it's formatted with mount command. _________________ Time is what keeps everything from happening all at once. |
|
Back to top |
|
|
viper2pt0 Tux's lil' helper
Joined: 06 Mar 2004 Posts: 98
|
Posted: Tue Jul 20, 2004 5:37 pm Post subject: |
|
|
ok sweet..thanks alot..that basically takes care of what i need u guys rock |
|
Back to top |
|
|
viper2pt0 Tux's lil' helper
Joined: 06 Mar 2004 Posts: 98
|
Posted: Tue Jul 20, 2004 5:56 pm Post subject: |
|
|
Quote: | Just make your /mnt/movies directory. Your computer should recognize whatever hard disk you put in as /dev/hdb1 and linux will mount it as long as it's formatted with mount command. |
Could you plz expand on this a lil?...im kinda confused by when you say make my /mnt/movies directory?...do you mean just mount the second hard drive to /home/movies? sorry for the confusion, but i wanna make this work nice |
|
Back to top |
|
|
lbrtuk l33t
Joined: 08 May 2003 Posts: 910
|
Posted: Tue Jul 20, 2004 8:10 pm Post subject: |
|
|
No, he means mount it to /mnt/movies.
You really don't have to create another user for the movies. Just mount it at /mnt/movies and let all the users access it. |
|
Back to top |
|
|
ectospasm l33t
Joined: 19 Feb 2003 Posts: 711 Location: Mobile, AL, USA
|
Posted: Tue Jul 20, 2004 8:30 pm Post subject: |
|
|
If you ever think that you might need more space for a partition, you should check into LVM (Logical Volume Manager). The Gentoo guide on LVM is really good. I've been able to increase the size of my /home and /usr filesystems, while they were mounted, with absolutely no hiccups. There's also the capability of shrinking filesystems with the same ease, though I've never done that before.
And none of this requires RAID or anything. I've only got one harddrive that I use, and LVM has been a godsend. _________________ Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance! |
|
Back to top |
|
|
viper2pt0 Tux's lil' helper
Joined: 06 Mar 2004 Posts: 98
|
Posted: Wed Jul 21, 2004 2:08 am Post subject: |
|
|
ok cool, this gave me a good idea of what to do...i just have one more question....im pretty sure the answer is no, but i figured hey, ya never know..... basically is there anyway without a hardware raid, to have 2 hard drives share a directory?....kinda like a software raid? i dont think there is, but then maybe in the magical world of linux there is...i dunno..but thanks anway |
|
Back to top |
|
|
ectospasm l33t
Joined: 19 Feb 2003 Posts: 711 Location: Mobile, AL, USA
|
|
Back to top |
|
|
|