Tarus, I agree with Dean. Use the -a (archive) switch. It also preserves the timestamps on the inode as long as you have an ext* filesystem with 3+ GB free. Otherwise, use tar
tar -czvf /Drive2Mountpoint /BigEnoughDrive/my3Gtar.tgz then when you're done cd /NewPartMountPoint tar -xzvf /BigEnoughDrive/my3Gtar.tgz Whether you use cp -a or tar, do it as root. Marty -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dean Price Sent: Tuesday, December 23, 2003 7:47 AM To: Triangle Linux Users Group discussion list Subject: Re: [TriLUG] Stoopid copy question Try cp -a source destination Dean Price [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Tarus Balog said: > > Okay, I don't want to screw this up, so I thought I'd run it by the > list first. > > The Scenario: > > I have a two drive system, the second drive being one 18GB partition > with about 3GB used. For various reasons I need to re-partition that > drive. So, I want to copy that 3GB to another partition on drive one, > repartition, and then copy it back. > > Red Hat Linux 9. > > What is the best way to do this to preserve permissions, links, etc? > > -T > > > > ________________________________________________________________________ > ___ > Tarus Balog Main: +1 919 > 545 2553 > Blast Internet Services, Inc. Fax: +1 919 542 5955 > Email: [EMAIL PROTECTED] URL: > http://www2.blast.com/tarus > PGP Key Fingerprint: 8945 8521 9771 FEC9 5481 512B FECA 11D2 FD82 B45C > > -- > TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug > TriLUG Organizational FAQ : http://trilug.org/faq/ > TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ > TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc > -- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc -- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
