Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
On Thu, 4 Aug 2005 14:14:47 -0400, Sean Higgins wrote: dd would be a good choice if the partitions are the same size. I do not think it works as well of you are changing the sizes of the partitions. dd is fine, if very slow, when the target partition is larger than the source. You will need to resize the filesystem after copying, but that's a trivial task with most filesystems. -- Neil Bothwick C Error #011: First C Program, huh? pgpAvYJPZwNDc.pgp Description: PGP signature
Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
On 8/5/05, Andreas Fredriksson [EMAIL PROTECTED] wrote: A better option is to use . (dot) a the directory. Also adding -p topreserve permissions is essential when backing up a whole system:tar cfp - . | (cd /target/path tar xvfp -) try to use find to get all files? -- riverfor's showtime.riverfor's game
Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
On 7/28/05, Sean Higgins [EMAIL PROTECTED] wrote: tar cvf - * | tar xf -C ../new/ * doesn't match hidden files, so the copy will be incomplete. Neil, Interesting. I had not thought about that. I did use the above to recreate my hard drive from one hard drive to another one. It worked well, I guess I lucked out that I did not have any hidden files in the old directory. A better option is to use . (dot) a the directory. Also adding -p to preserve permissions is essential when backing up a whole system: tar cfp - . | (cd /target/path tar xvfp -) Regards, Andreas -- And I hate redundancy, and having different functions for the same thing. - Linus Torvalds on linux-kernel -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
On Wed, 27 Jul 2005 20:24:46 -0400, Sean Higgins wrote: Can anyone tell me if it's possible to move (or copy) the complete contents of /boot located on /dev/hdb1 to /dev/hda2. If so would anyone know the correct command so I pick up any hidden files ,etc. One way to do it is to do the following: mount -o ro /dev/hdb1 old mount /dev/hda1 new cd old tar cvf - * | tar xf -C ../new/ * doesn't match hidden files, so the copy will be incomplete. My favourite method is: rsync -a old/ new/ -- Neil Bothwick Therapy is expensive, popping bubble wrap is cheap! You choose. pgp7sr0nlVCP3.pgp Description: PGP signature
Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
tar cvf - * | tar xf -C ../new/ * doesn't match hidden files, so the copy will be incomplete. Neil, Interesting. I had not thought about that. I did use the above to recreate my hard drive from one hard drive to another one. It worked well, I guess I lucked out that I did not have any hidden files in the old directory. Sean -- Sean Higgins, [EMAIL PROTECTED] http://www.systura.com - Where information becomes knowledge. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
try to use dd
[gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
Can anyone tell me if it's possible to move (or copy) the complete contents of /boot located on /dev/hdb1 to /dev/hda2. If so would anyone know the correct command so I pick up any hidden files ,etc. -- Thanks, Richard -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 25/07/2005 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
Well, if not sure about the syntax, why don't you just use midnight commander? Although i do not quite understand what you are saying: (copy from /dev/hdb1 to /dev/hda2) - do you mean,: copy from /dev/hdb1 that is mounted on /mountpoint1 to /dev/hda2 that is mounted on mountpoint /mountpoint2? If that is the case, then a simple: cp -R /boot /new-boot-location should do it. s pozdravom jakub krajcovic On júl 27, 2005, at 14:53, Richard Watson wrote: Can anyone tell me if it's possible to move (or copy) the complete contents of /boot located on /dev/hdb1 to /dev/hda2. If so would anyone know the correct command so I pick up any hidden files ,etc. -- Thanks, Richard -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 25/07/2005 -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
RE: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
Although i do not quite understand what you are saying: (copy from /dev/hdb1 to /dev/hda2) - do you mean,: copy from /dev/hdb1 that is mounted on /mountpoint1 to /dev/hda2 that is mounted on mountpoint /mountpoint2? If that is the case, then a simple: cp -R /boot /new-boot-location should do it. You'll probably want to add the -p option to copy permissions, ownership, etc. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
On Wed, 27 Jul 2005 09:21:06 -0400, Dave Nebinger wrote: You'll probably want to add the -p option to copy permissions, ownership, etc. Use -a (--archive), which preserves everything it can. -- Neil Bothwick WINDOWS: Will Install Needless Data On Whole System pgpvxjAhggrxw.pgp Description: PGP signature
Re: [gentoo-user] Copying contents /boot from /dev/hdb1 to /dev/hda2
Richard, On Wednesday 27 July 2005 08:53 am, Richard Watson wrote: Can anyone tell me if it's possible to move (or copy) the complete contents of /boot located on /dev/hdb1 to /dev/hda2. If so would anyone know the correct command so I pick up any hidden files ,etc. One way to do it is to do the following: mount -o ro /dev/hdb1 old mount /dev/hda1 new cd old tar cvf - * | tar xf -C ../new/ Sean -- Thanks, Richard -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.9.5/58 - Release Date: 25/07/2005 -- Sean Higgins, [EMAIL PROTECTED] http://www.systura.com - Where information becomes knowledge. -- gentoo-user@gentoo.org mailing list