LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   How do you add another drive to your existing system? (https://www.linuxquestions.org/questions/fedora-35/how-do-you-add-another-drive-to-your-existing-system-473641/)

blkcamarozr28 08-14-2006 01:05 AM

How do you add another drive to your existing system?
 
My current system has only one hdd (hda) but my /home is running out of space. How do I move /home to a new hdd (hdb)? Thanks!


Wilson

cdhgee 08-14-2006 03:07 AM

Install your new drive, format it using mkfs, mount it somewhere temporarily (/tmp/home for example), copy the contents of home to your new drive, unmount it again, rename your old /home to /home-old, create an empty directory at /home then remount your new drive at /home. Don't forget to add an entry to /etc/fstab so that it automatically gets mounted at boot.

b0uncer 08-14-2006 03:24 AM

Does LFS VolumeGroup deal with this kind of matter? I read somewhere, but am uncertain, that you could actually just extend your /home so it resides both on the old harddisk and the new one, but so that it apperas as one. I may be mistaken, but anyway..many "modern" distributions seem to use these VolumeGroups (Fedora Core and Ubuntu, for a start). The goal is, if I got it right, to make it easier to add storage media (like harddisks) to the existing system, resize (grow/shrink) mounted partitions (like /home for example) etc.

Just a thought, no idea how it actually works (as of now).

cdhgee 08-14-2006 03:28 AM

Quote:

Originally Posted by b0uncer
Does LFS VolumeGroup deal with this kind of matter?

If you mean LVM, then yes, but only if your existing volume is also LVM formatted. Obviously, you can't extend an LVM volume if you don't have one to begin with. But LVM is great for this sort of thing where you want to spread a volume across multiple disks without resorting to RAID.


All times are GMT -5. The time now is 05:13 PM.