Create separate /home partition after install

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

Create separate /home partition after install

Postby baba on Wed Sep 19, 2007 1:33 am

I installed Cassandra. I don't understand yet what is the process to upgrade to new releases. I have read it is easier if you have a separate /home partition. I didn't install it that way. Is it possible to create it after the fact. I know how to use partitioning tools.

So when there is a new version, will I have to reinstall all the apps I have have added? I assume that by having a separate /home partition, everything I keep there will be preserved. But there are setup files in many other places (/etc). Will they be preserved?
baba
Level 1
Level 1
 
Posts: 37
Joined: Tue Sep 04, 2007 5:08 pm

Linux Mint is funded by ads and donations.
 

Re: Create separate /home partition after install

Postby scorp123 on Wed Sep 19, 2007 3:03 am

baba wrote:Is it possible to create it after the fact. I know how to use partitioning tools.
Of course. You just have to adjust /etc/fstab ... and move your old /home to e.g. /old_home ... as your new home partition will be mounted under /home. Just move ('mv' command) the files over (as root) to the new location.
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby Husse on Sun Sep 23, 2007 11:54 am

There's a bit in the wiki about it
http://www.linuxmint.com/wiki/index.php ... _partition
@scorp
move as root? (man mv did not tell me much :))
what about permissions (will they change?) and (symbolic) links?
For the wiki you gave me a good set of switches for cp
Code: Select all
cp -a -v -u
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Postby alexander on Tue Sep 25, 2007 6:53 am

MintWiki wrote:sudo cp -a -v -u /home/* /mnt/newhome/


this tried to copy everything in /home/USERNAME/Network to /mnt/newhome/network !!

Personally I don't want to mirror my entire network :P lol
User avatar
alexander
Level 2
Level 2
 
Posts: 70
Joined: Sun Aug 26, 2007 9:44 pm

Postby scorp123 on Tue Sep 25, 2007 2:30 pm

alexander wrote: /home/USERNAME/Network to /mnt/newhome/network !!
Duh. Of course it tried. /home/* means what it means: *Everything* underneath /home. Really *everything*. Obviously you have to get rid of all your network connections first before you try something like this. Or do it in a text console (outside of any GUI) just to make sure no overly nice program tries to be super-smart and does stuff like that such as mount something on your network underneath your $HOME ...
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland


Return to Installation & Boot

Who is online

Users browsing this forum: edosan and 13 guests