Shared /home partition

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help

Shared /home partition

Postby NiksaVel on Wed May 02, 2007 5:11 pm

hey guys... I'd like some input / comments cuz I'm a bit lost out here...


I've followed the instructions scorp123 gave on partitioning the drives (the simple version with a shared home directory)... did everything step by step according to the wiki to copy my home to the newly created partition, rename home to oldhome, create new /home and than mount the partition to /home... I can now login as always, but I've noticed that my icons have changed to default gnome and my Desktop ended up as owned by root as well as some (but not all) files that were on my desktop... weird...

I've forgot to mention that b4 I've copied my original home to the new partition I've also installed Bianca KDE and set it up initially from the installer to use that new partition for /home...

Maybe I've overwritten some files later on, but now I can no longer log into KDE... said something about can not start kstartup??something... check your installation... well I guess I'll just reinstall... it is only a 15 minute old installation :o


well... these are my experiences... I'd like to know why were my settings in gnome changed if any1 has any ideas?
Windows is extremely fast after a fresh install. If you want to make it stay that way: - don't use it.
-Clem
User avatar
NiksaVel
Level 5
Level 5
 
Posts: 806
Joined: Wed Feb 28, 2007 4:06 am
Location: Croatia

Linux Mint is funded by ads and donations.
 

Postby scorp123 on Wed May 02, 2007 9:12 pm

Why not install correctly right away and have /home created at install time?

You probably messed up when you copied your stuff from your old home to the new location. Most people make horrible mistakes there and don't use the right parameters when copying stuff .... Nope, the "cp" command alone is not enough - you need plenty of more parameters there, and just creating a simple "tar" file won't solve the problem :lol: ... you still need plenty of additional parameters :wink:

EDIT: The parameters given in the Wiki here are correct:
http://www.linuxmint.com/wiki/index.php/Move_home_to_its_own_partition
The magic trick is to use e.g.
Code: Select all
cp -a -v -u ....
... OR as root: ...
Code: Select all
cd / && tar -pczvf Home_Backup.tar.gz /home
... and then unpack everything again when you need it (as root !!): ...
Code: Select all
cd / && tar -pzxvf /path/to/archive.tar.gz

These commands should create OK copies of your /home ... The tar method has the advantage that you get to keep a nice archived backup copy of your /home that you could use on other systems too ... or you could use it again and again and again in case of re-installations ... :wink:

End of EDIT ...

I suggest you install right away using a correct partitioning setup so you don't have to bother about copying stuff? :wink:
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby NiksaVel on Thu May 03, 2007 1:10 am

soooo... what yer saying is that instead of the wiki:

Code: Select all
sudo cp -a -v -u /home/* /mnt/newhome/


I should use:

Code: Select all
cp -a -v -u /home/* /mnt/newhome/

(without sudo)...

I'm afraid I'm already past the point of no return... is there a way to fix the copy I made?
Windows is extremely fast after a fresh install. If you want to make it stay that way: - don't use it.
-Clem
User avatar
NiksaVel
Level 5
Level 5
 
Posts: 806
Joined: Wed Feb 28, 2007 4:06 am
Location: Croatia

Postby Boo on Thu May 03, 2007 1:32 am

yes

chown -R niksavel:niksavel /mnt/newhome/*

will set all users homedirectories and subdirectories to owner niksavel and group niksavel (i expect you only have your home directory there).

the sudo will set all ownership of the files/directories to root.

unless you use a -p as well to preserve ownership of the file/dirs.

sudo cp -a -v -u -p /home/* /mnt/newhome/

the -p option is good to use most of the time when copying.

:D
Image
Now where was i going? Oh yes, crazy!
User avatar
Boo
Level 8
Level 8
 
Posts: 2364
Joined: Mon Mar 26, 2007 7:48 am

Postby NiksaVel on Thu May 03, 2007 1:43 am

okay, thanks... live and learn, eh? :D
Windows is extremely fast after a fresh install. If you want to make it stay that way: - don't use it.
-Clem
User avatar
NiksaVel
Level 5
Level 5
 
Posts: 806
Joined: Wed Feb 28, 2007 4:06 am
Location: Croatia

Postby NiksaVel on Thu May 03, 2007 2:45 am

okay... all sorted now, the old Bianca gnome installation works perfectly as it used to, and I have BIanca KDE up and running with graphics installed and everything fine :)


Now... since I have a crapload of stuff already installed in Bianca gnome, is there an easy way to migrate the stuff to the new Bianca KDE install or do I have to re-download everything I want installed here? i.e. some programs, games etc... stuff installed via synaptic...
Windows is extremely fast after a fresh install. If you want to make it stay that way: - don't use it.
-Clem
User avatar
NiksaVel
Level 5
Level 5
 
Posts: 806
Joined: Wed Feb 28, 2007 4:06 am
Location: Croatia

Postby scorp123 on Thu May 03, 2007 5:43 am

NiksaVel wrote:(without sudo)...
No :? Such operations are preferrably done as root or else you could run into "permission denied" errors ... Either use sudo or switch into root proper (e.g. via sudo su - ...)
Last edited by scorp123 on Thu May 03, 2007 5:47 am, edited 1 time in total.
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby scorp123 on Thu May 03, 2007 5:44 am

Boo wrote:the sudo will set all ownership of the files/directories to root.
Wrong :? The man page is your friend. cp -a -v -u is just fine ... You may want to read about what the "-a" parameter does :wink:

"-a" is the same as "-dpR" ... su using one more "-p" is totally redundant and not needed. :lol:

How dare you question my shell commands I give to others!! :twisted:
:D :D :D
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby Boo on Thu May 03, 2007 5:51 am

yes (simple answer) to the download agian for kde since mint kde and gnome versions have their own / partitions.
but your single home will mean that any settings they put in your home will be the same on both mint versions.

:D
Image
Now where was i going? Oh yes, crazy!
User avatar
Boo
Level 8
Level 8
 
Posts: 2364
Joined: Mon Mar 26, 2007 7:48 am

Postby stafio on Thu May 03, 2007 2:47 pm

If you haven't cleaned out your download archives, you can copy the contents of /var/cache/apt/ from your Bianca Gnome to the same folder on Bianca KDE to save some download time. You will still have to re-install everything via synaptic or apt, but the packages won't have to download again if the version in the cache folder is up to date with what's in the repositories.
User avatar
stafio
Level 2
Level 2
 
Posts: 96
Joined: Wed Dec 20, 2006 12:44 am

Postby NiksaVel on Thu May 03, 2007 4:57 pm

bleh... remastersys cleared it out when I was backing up
Windows is extremely fast after a fresh install. If you want to make it stay that way: - don't use it.
-Clem
User avatar
NiksaVel
Level 5
Level 5
 
Posts: 806
Joined: Wed Feb 28, 2007 4:06 am
Location: Croatia

Linux Mint is funded by ads and donations.
 

Return to Other topics

Who is online

Users browsing this forum: No registered users and 13 guests