You are not logged in.
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
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
cp -a should do it. For example, "cp -ar /mnt/oldroot/* /". man cp for more info.
Offline
-p, --preserve
Preserve all information, including owner, group, permissions, and timestamps.
Offline
-p, --preserve
Preserve all information, including owner, group, permissions, and timestamps.
-a, --archive
same as -dR --preserve=all
Offline
ah, shoulda man cp'ed myself. thanks for your help!
Desktop/Laptop - DWM :: VM - screen
Registered Linux User Number 483137 :: Victory! :: GitHub
Offline