Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Ubuntu Help
Reload this Page Separate /home after install
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Ubuntu Help Discussion and help about Ubuntu, Kubuntu, Xubuntu, and all the Ubuntu family

Reply
 
Thread Tools Display Modes
Old 06-23-2008   #1 (permalink)
usamamuneeb
Linux User
 
usamamuneeb's Avatar
 
Join Date: Jun 2007
Location: Karachi, PAKISTAN
Posts: 410
Send a message via MSN to usamamuneeb
Separate /home after install

Is it possible to make a new partition, set the mount point to /home after install?

Will I have to move the files or will they automatically?
__________________
"You can complain that roses have thorns, or you can rejoice because thorns have roses."
usamamuneeb is offline   Reply With Quote
Old 06-23-2008   #2 (permalink)
daark.child
Linux Guru
 
daark.child's Avatar
 
Join Date: Apr 2006
Location: South Yorks, UK
Posts: 3,371
Its possible, but you will have to move any existing directories on the old /home to the new /home manually.
daark.child is offline   Reply With Quote
Old 06-23-2008   #3 (permalink)
usamamuneeb
Linux User
 
usamamuneeb's Avatar
 
Join Date: Jun 2007
Location: Karachi, PAKISTAN
Posts: 410
Send a message via MSN to usamamuneeb
Which's reliable:

1. Make new partition, move files there, delete old home, mount new home?
2. Make new partition, mount new home, copy files there?
__________________
"You can complain that roses have thorns, or you can rejoice because thorns have roses."
usamamuneeb is offline   Reply With Quote
Old 06-23-2008   #4 (permalink)
devils casper
Ghost
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,051
Make a new partition, move files to partition using cp -a command. Edit /etc/fstab file and add an entry for new /home partition. Reboot machine. New /home partition will be mounted.
Make sure to use -a option with cp command. Its for preserving permissions.
__________________
New Users: Read This First
If you woke up breathing, Congratulations! You get another chance.

devils casper is offline   Reply With Quote
Old 06-29-2008   #5 (permalink)
usamamuneeb
Linux User
 
usamamuneeb's Avatar
 
Join Date: Jun 2007
Location: Karachi, PAKISTAN
Posts: 410
Send a message via MSN to usamamuneeb
Either of the -r and -a option do not copy symbolic links. There are a lot of these links in Themes, .whatever (preferencs) folders, so I cannot copy them. Any way I can mount a folder on a partition as /home? I have lot of space on a drive which I want to utilise. I do not want to break the partition.
__________________
"You can complain that roses have thorns, or you can rejoice because thorns have roses."
usamamuneeb is offline   Reply With Quote
Old 06-29-2008   #6 (permalink)
Jonathan183
Linux Engineer
 
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,383
I think cp -a should copy links as well, I just tried it and it worked for me. You can cp the information and then modify /etc/fstab to mount /home to the partition and test things work correctly. There is no need to remove the /home information on your root partition unless you are short of space.
Did you try doing the cp and mounting the partition to /home to check the links?
Jonathan183 is offline   Reply With Quote
Old 06-29-2008   #7 (permalink)
devils casper
Ghost
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,051
cp -a command works fine for perserving permissions and symlinks. Do not remove /home folder under root ( / ) before tesing /home partition as suggested by Jonathan183.
__________________
New Users: Read This First
If you woke up breathing, Congratulations! You get another chance.

devils casper is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 11:01 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0