LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   FC2 I have 2 small drives moving to 1 large (https://www.linuxquestions.org/questions/linux-hardware-18/fc2-i-have-2-small-drives-moving-to-1-large-244259/)

adem0rdna 10-18-2004 01:38 PM

FC2 I have 2 small drives moving to 1 large
 
I'm running FC2 with 2 small drives a 10G and a 20G currant laid out as


hda (10g) with
hda1 = /boot
hda2 = /

hdb (20g) with
hdb1 swap
hdb2 /home

I'm moving to a 160G drive and need to know how to recreate the file structure and migrate the data.

If there is a FAQ or a How-to for this I apologize I came up blank on how to search this out and could find nothing on my general skims over the top.

adem

J.W. 10-18-2004 04:18 PM

The only thing you really need to keep is /home because that's where all of your data lives. Probably the easiest thing would be to remove the 2 old drives, install the new drive, partition it the way you want it, then reinstall FC2.

Now reconnect the old drive that contained the /home directory as /dev/hdb. Manually mount /dev/hdb2 to a mountpoint (say, /mnt/hd) then simply copy the contents from your "old" home directory (which will now be accessible from the mountpoint, eg /mnt/hd) over to your "new" home directory (which will on the new drive, /dev/hda)

The reason you don't really need to copy the existing system files is because they'll be recreated during the reinstall. That being said, you may want to save a copy of any configuration files that may be useful (ie, XF86Config or xorg.conf).

That ought to do it. Good luck with it and Welcome to LQ -- J.W.

adem0rdna 10-18-2004 05:56 PM

Thanks a ton


All times are GMT -5. The time now is 09:36 AM.