LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2012, 03:53 PM   #1
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Please help me to move my /home partition


I have a 40GB hard drive which I used to have two OS, one with 30GB and one with 10GB, However I removed the one with 30GB and I would like to move the /home partition out of the 10GB and use that unalocated space for all my date files so the remain 10GB will be just for /root
I would really like some help and suggestion on how to do that.
I will appreciate all advices. Thank you!
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-26-2012, 04:15 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,454

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
How far are you in the process?
It should be pretty straight forward

1) Using fdisk, delete the 30GB partition, and create a new partition and ext4 filesystem in its place
2) Mount the new (blank) filesystem in some temp directory, call it /mnt/temp
3) Log out any regular users, log in as root
4) Execute "cp -a /home/* /mnt/temp/"
5) Execute "mv /home /home.backup"
6) Execute "mkdir /home"
7) Unmount the drive from /mnt/temp, and add it to fstab to mount at /home
8) Execute "mount -a", make sure /home looks like it should
9) Reboot the machine to make sure everything comes up as it should
10) Remove the /home.backup directory

Last edited by suicidaleggroll; 01-27-2012 at 10:27 AM. Reason: I had two step 3's
 
2 members found this post helpful.
Old 01-26-2012, 08:33 PM   #3
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Original Poster
Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Thank you. I havent try any of these steps yet. The partition is already ext4 formated but I wouldnt want to delete and then create another partition. There is another user in that system that has already the /home directory there. I was trying to just move my there too.

Thank you.
 
  


Reply

Tags
paritions


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
Can I move /home partition under root partition arijit_2404 Linux - General 3 07-05-2007 12:01 AM
How to move /home to new partition frazelle09 Ubuntu 12 05-02-2007 09:22 PM
How do I move /home to a new partition? glenn69 Linux - Newbie 2 01-05-2005 10:15 PM
Partition Free Space - Move /home to the new partition gregkise Linux - General 5 12-16-2003 10:19 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration