On Wed, 2003-03-19 at 23:28, Christopher Joseph wrote: > First apologies. I have had some problems getting the search function on > the mail archives to function properly this morning so I have not been > able to trawl for past questions regarding the same topic properly. > > The problem: > > I have bought a new 80 Gb ATA133 Hard disk for my desktop running > mandrake linux. I would like to migrate some of the partions on the > existing disk to the new disk and then 'grow' the remaining partitions > to fill the original disk. > > I tried moving /home, /usr and /var on to the new disk by simply using > SU on konqueror and simply copying the files accross. I them altered > /etc/fstab to mount the new partitions at reboot. > > BUT - the copy process changed a lot of permissions and all kinds of > things have errored > > Like: > > opening emacs I couldn't save back to my emacs preferences because the > .emacs... file had been chmodded as part of the copy process. > > or > > any number of services failed to shutdown or start despite there being > no failures in the copy process. Again probably down to permissions. > > > The Question: > > How should I migrate partions (/var, /usr, /home) onto the new disk and > grow the remaining ones (/, SWAP). > > Thanks in advance.
Quoting Rick Moen from a post on the Linux Users Victoria (LUV) list: "cp -ax olddirectory newdirectory" is the simplest method, but with some disadvantages. The "-a" means preserve symbolic links, preserve file attributes if possible, and copy directories recursively. The "-x" means stay on this filesystem, i.e., do not copy any files within the directory that are from a different filesystem mounted onto this one. Obviously, that recipe is useful only if all files of interest are within a single filesystem. If not, you can omit the "-x", but then must watch out for unintended side effects, e.g, from accidentally copying the /proc filesystem. HTH Brian
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
