Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 08-27-2009, 02:12 AM   #1
Registered: Oct 2006
Posts: 112

Rep: Reputation: 15
How do I move my Home Folder

I don't know how I did this but I have a Acer Timeline 3810T with a 500GB hard drive. I made a 8GB swap partition, a 40GB Root partition, and a 400GB or so Home partition.
Something must have went wrong at install. It appears my Home directory is part of my Root partition and my Home partition is blank. Can I change this?
It seems I'd have to copy the entire Home directory to my Home partition and then change something within Mandriva itself to look there. Is it this simple and how would I do this?
Old 08-27-2009, 05:10 AM   #2
Senior Member
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Fairly easy task. But first check on the /etc/fstab file on your system. Just to make sure you don't mix up things. Reason for this is that the homefolder of the user root always is on the / partition.
But now howto change the actual /home folder to reside on the extra partition.

move the files from the home folder to the new partition
edit fstab
mount new parition

mount /dev/sda2 /mnt
mv /home/* /mnt
Taken that /dev/sda2 is the extra partition. Do see your partition do a
fdisk -l /dev/sda

Check that everything is there and unmount /dev/sda2

sample fstab
proc            /proc           proc    defaults        0       0
/dev/sda1       none            swap    sw              0       0
/dev/sda2       /               ext3    defaults,errors=remount-ro 0       1
/dev/sda3       /tmp            ext2    defaults        0       0
/dev/sda5       /var            ext2    defaults,acl     0       0
/dev/sda6       /srv            ext2    defaults        0       0
/dev/sda9       /home           ext2    defaults        0       0
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
first part is the physical partition. second part is where you like this partition to be mounted, third is the type of the filesystem, fourth marks the options for the filesystem, fifth and sixth state someething about filesystemchecks after reboot. The sixth one marks the order I think. The higher the number the earlier. Not quite sure about this.

So to have your extra partition to be mounted on boot or with mount -a add this to your fstab.

/dev/sda2 /home ext3 defaults 0 0
Taken that you have an ext3 filesystem. If not just use the filesystem of your root partition should be the same.

last one is to mount the partition
mount /dev/sda2 /home
mount -a
Old 08-27-2009, 11:46 PM   #3
Senior Member
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
Moving your home partition is very easy with the help og MCC.
Open MCC (Tools > System Tools > Configure your computer in the menu system)
MCC will request your root password. Enter it in the query dialog and press the ENTER key to proceed.
Select Local Disks in the Category list )left)
Open the Manage Disk Partitions icon (main pane)
Click the Continue button in the warning dialog that pops up.
Select the partition on which you want to keep your /home directory.
If the partition is already mounted, you may want to check what is being stored on it. If it is not mounted, then set the mount point at a temp directory such as /media/test and mount it. Next open a file manager and navigate to /media/test to check that you do not have any thing on the partition you do not want to lose. If the partition is empty, unmount it and change the mount point to /home. When you attempt to mount the partition, you will be asked if you want to move the contents of your /home directory to the new partition. Answer yes. When the operation is finished and you click the \Done button, you will be asked if you want to save the changes to fstab. Answer yes.



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
[SOLVED] Is it safe to move this folder from home to elsewhere? MBA Whore Linux - Newbie 4 08-10-2009 12:14 PM
Help me change permissions and move my Home folder madhatter64 Linux - Newbie 4 02-05-2008 11:26 PM
FC6 box add new HDD and move HOME folder to it titel Linux - Hardware 1 12-28-2006 12:34 PM
i move my /etc folder in my /home folder Casanogab Linux - Newbie 8 03-31-2006 01:21 PM > Forums > Linux Forums > Linux - Distributions > Mandriva

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

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