Re: [expert] hard disk duplication and partition growth
Thanks to all. -- Christopher Joseph --- http://www.ideadesigners.com [iseries web technologies] mailto: [EMAIL PROTECTED] ICQ: 78019724 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] hard disk duplication and partition growth
Sounds like you want cp -dpr, info cp gives you more details. cheers JH on the 19/03/03 12: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 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] hard disk duplication and partition growth
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
Re: [expert] hard disk duplication and partition growth
On Wednesday, March 19, 2003 06:28 am, Christopher Joseph wrote: BUT - the copy process changed a lot of permissions and all kinds of things have errored cp -a should preserve permissions, ownership, etc.. Arn Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] hard disk duplication and partition growth
Forget cp, it will nearly always choke on some things. To get a reliable copy, that guarentees all permissions, and ownerships will stay in tact: # cd / # find /[old-home] -print | cpio -pdumv /[New-Home] Then make the appropriate changes to /etc/fstab, and you're there. This one has never failed me. Ric On Wed, Mar 19, 2003 at 12:28:34PM +, 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. -- Christopher Joseph --- http://www.ideadesigners.com [iseries web technologies] mailto: [EMAIL PROTECTED] ICQ: 78019724 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com -- Ric Tibbetts Linux registration number: 55684 If you want to help advertise Linux - point your friends to http://counter.li.org/ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] hard disk duplication and partition growth
U know what works best? #cd /from_dir #tar cvf - . | (cd /path/to/new/dir; tar xvpf -) This will preserve everything as is!! Including links and dates! Well, everything. Explanation:: tar c=create v=verbose f==device . ==from here | (pipe) sends out of the section to second section () opens a subshell; then changes dir to new dir, and copies, using tar, all the input from - to standdard - p==preserve (or could use --same-permissions) All this is in tar manpage. _Thanks Richard Mollel --- J. Grant [EMAIL PROTECTED] wrote: Sounds like you want cp -dpr, info cp gives you more details. cheers JH on the 19/03/03 12: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 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com = __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] hard disk duplication and partition growth
On Wed, 2003-03-19 at 07:17, Ric Tibbetts wrote: Forget cp, it will nearly always choke on some things. To get a reliable copy, that guarentees all permissions, and ownerships will stay in tact: # cd / # find /[old-home] -print | cpio -pdumv /[New-Home] Then make the appropriate changes to /etc/fstab, and you're there. This one has never failed me. Ric For everything but / cp -ax works has for me. But for / I recommend looking at partimage creating the diskettes and using those. You get a clean image that way that is usable. To make it bootable boot from the rescue CD have it mount your linux system then cd /mnt chroot /mnt lilo This will write the mbr needed ... reboot and you're good to go. James On Wed, Mar 19, 2003 at 12:28:34PM +, 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. -- Christopher Joseph --- http://www.ideadesigners.com [iseries web technologies] mailto: [EMAIL PROTECTED] ICQ: 78019724 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] hard disk duplication and partition growth
Hi, Even for root, tar options given previously and cpio work perfectly. With partimaged, U better make sure your enw root partition is exactly the same size as the old. Slightly bigger new root, and the extra space will be wasted. Slightly smaller new root, and U wont be able to restore to a smaller partition than what u began with. _Thanks Richard Mollel --- James Sparenberg [EMAIL PROTECTED] wrote: On Wed, 2003-03-19 at 07:17, Ric Tibbetts wrote: Forget cp, it will nearly always choke on some things. To get a reliable copy, that guarentees all permissions, and ownerships will stay in tact: # cd / # find /[old-home] -print | cpio -pdumv /[New-Home] Then make the appropriate changes to /etc/fstab, and you're there. This one has never failed me. Ric For everything but / cp -ax works has for me. But for / I recommend looking at partimage creating the diskettes and using those. You get a clean image that way that is usable. To make it bootable boot from the rescue CD have it mount your linux system then cd /mnt chroot /mnt lilo This will write the mbr needed ... reboot and you're good to go. James On Wed, Mar 19, 2003 at 12:28:34PM +, 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. -- Christopher Joseph --- http://www.ideadesigners.com [iseries web technologies] mailto: [EMAIL PROTECTED] ICQ: 78019724 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com = __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] hard disk duplication and partition growth
To copy directories and files keeping ownership and permissions, etc the same, use the following: tar cf - dir | (cd path to new location;tar xf -) Do this as root. Mike On Wed, 2003-03-19 at 04: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. -- Christopher Joseph --- http://www.ideadesigners.com [iseries web technologies] mailto: [EMAIL PROTECTED] ICQ: 78019724 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com -- Michael Noble mailto: [EMAIL PROTECTED] Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] hard disk duplication and partition growth
On Wednesday 19 March 2003 08:11 pm, Michael Noble wrote: To copy directories and files keeping ownership and permissions, etc the same, use the following: tar cf - dir | (cd path to new location;tar xf -) Do this as root. I don't understand why you would want to go through the additional overhead of creating a tar file when cp -a will do the same thing. -- Greg Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] hard disk duplication and partition growth
The command does not create a tar file, it uses STDIN and STDOUT. Mike On Wed, 2003-03-19 at 17:23, Greg Meyer wrote: On Wednesday 19 March 2003 08:11 pm, Michael Noble wrote: To copy directories and files keeping ownership and permissions, etc the same, use the following: tar cf - dir | (cd path to new location;tar xf -) Do this as root. I don't understand why you would want to go through the additional overhead of creating a tar file when cp -a will do the same thing. -- Greg Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com -- Michael Noble mailto: [EMAIL PROTECTED] Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com