LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   ::Turning 2 hard drives into 1:: (https://www.linuxquestions.org/questions/linux-hardware-18/turning-2-hard-drives-into-1-a-61621/)

XxAndyxX 05-24-2003 06:03 PM

::Turning 2 hard drives into 1::
 
I have an 80gb hard drive on my RedHat Linux 8.0 and it's almost full, I'm putting a 100gb in there with the 80gb. I store like all my files in one folder on the hard drive */media* when I install the 100gb hard drive is there a way so that I can continue installing everything into that folder and once my 80gb is full it'll just start filling the 100gb?

Thanks
-Andy

manthram 05-24-2003 06:12 PM

install the drive, make a file system and mount the dirve as '/media' and that should do it

MasterC 05-24-2003 06:15 PM

Yes, I prefer the symlink way, however you could look into using LVM:
http://www.tldp.org/HOWTO/LVM-HOWTO/index.html
I think you might be able to do something like this with RAID as well, but that'd require some more hardware (unless of course you went software ;) )

The symlink way:
mount -t /dev/hdx /mnt/newhd
ln -sf /mnt/newhd /media
This way does require you to copy your existing files onto the new hd, so it doesn't take advantage of the room on the current HD, not quite as decent an idea as LVM, but much less work.

MasterC 05-24-2003 06:17 PM

Quote:

Originally posted by manthram
install the drive, make a file system and mount the dirve as '/media' and that should do it
Would that keep the existing files in there/accessible? That'd sure be nice if it does.

Cool

david_ross 05-24-2003 06:17 PM

Quote:

Originally posted by MasterC
Yes, I prefer the symlink way, however you could look into using LVM:
http://www.tldp.org/HOWTO/LVM-HOWTO/index.html
I think you might be able to do something like this with RAID as well, but that'd require some more hardware (unless of course you went software ;) )

Raid would definately be the way to go.

Quote:

Originally posted by MasterC
The symlink way:
mount -t /dev/hdx /mnt/newhd
ln -sf /mnt/newhd /media
This way does require you to copy your existing files onto the new hd, so it doesn't take advantage of the room on the current HD, not quite as decent an idea as LVM, but much less work.

MasterC - I'm interested, what would be the advantage of that over just changing the mount point?

MasterC 05-24-2003 06:41 PM

I don't know :) However if I would have said:
ln -sf /mnt/newhd /media/newhd
Then he could keep his existing files going there until they run out, then move them up one directory (but could still do that with changing the mount point too).
So not really an advantage, but rather another option ;) Also, the "changing of the mount point" wasn't there when I originally replied, so I didn't see it until after I submitted.

And 1 more thing:
I don't know why, but I prefer symlinks on my box over changing mount points, I use them all over the place instead of remounting a device elsewhere, really, I don't have a good reason I just do it.

Cool


All times are GMT -5. The time now is 11:41 AM.