You are not logged in.

#1 2009-11-25 19:30:47

mjheagle8
Member
From: /home/mjheagle8
Registered: 2009-07-12
Posts: 186

[SOLVED] moving / on existing installation and preserve permissions.

okay, so i'm redoing the partitioning scheme on my desktop. i made a new / and /boot, and i copied over the files, and changed grub and fstab. i can boot fine now, but i'm having issues with running commands and permissions. i looked through the new / and compared it to the old one (i havent deleted it because i anticipated issues). the old partition was ext2, the new one is ext3. to copy i used the live cd, mounted them at /mnt/newroot and /mnt/oldroot, and copied using cp under the root account.
here's my question: how can i copy the old partition over to the new partition and preserve permissions?
thank you in advance for your help!

Last edited by mjheagle8 (2009-11-26 17:36:45)


Desktop/Laptop - DWM :: VM - screen
Registered Linux User Number 483137 :: Victory! :: GitHub

Offline

#2 2009-11-25 19:58:01

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] moving / on existing installation and preserve permissions.

Cp -a should take care of permissions and stuff; you can use that for backup.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2009-11-25 19:58:42

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: [SOLVED] moving / on existing installation and preserve permissions.

cp -a should do it.  For example, "cp -ar /mnt/oldroot/* /".  man cp for more info.

Offline

#4 2009-11-25 20:01:04

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: [SOLVED] moving / on existing installation and preserve permissions.

-p, --preserve

    Preserve all information, including owner, group, permissions, and timestamps.

Offline

#5 2009-11-26 00:00:25

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [SOLVED] moving / on existing installation and preserve permissions.

djszapi wrote:

-p, --preserve

    Preserve all information, including owner, group, permissions, and timestamps.

-a, --archive
              same as -dR --preserve=all

Offline

#6 2009-11-26 17:32:57

mjheagle8
Member
From: /home/mjheagle8
Registered: 2009-07-12
Posts: 186

Re: [SOLVED] moving / on existing installation and preserve permissions.

ah, shoulda man cp'ed myself. thanks for your help!


Desktop/Laptop - DWM :: VM - screen
Registered Linux User Number 483137 :: Victory! :: GitHub

Offline

Board footer

Powered by FluxBB