LWN.net Logo

Grub From the Ground Up (Troubleshooters.com)

Grub From the Ground Up (Troubleshooters.com)

Posted Mar 15, 2005 7:53 UTC (Tue) by kasperd (guest, #11842)
In reply to: Grub From the Ground Up (Troubleshooters.com) by JoeBuck
Parent article: Grub From the Ground Up (Troubleshooters.com)

Why even use tar? I find a simple cp -a easier to use. (Unless I need to transfer it across a network, in which case tar is my prefered way to serialize the data).


(Log in to post comments)

Grub From the Ground Up (Troubleshooters.com)

Posted Mar 15, 2005 17:34 UTC (Tue) by ceswiedler (subscriber, #24638) [Link]

Aren't there some issues with permissions, devices, setuid bits, etc when using cp -a? I've been bit by that stuff before. I think tar handles these cases better.

Grub From the Ground Up (Troubleshooters.com)

Posted Mar 17, 2005 21:46 UTC (Thu) by kael (guest, #1599) [Link]

I have cloned many a system (Linux with Gnu tools) over the years.

Works fine.

Grub From the Ground Up (Troubleshooters.com)

Posted Mar 18, 2005 22:53 UTC (Fri) by haraldt (guest, #961) [Link]

Look up the man pages of "cp". The "-a" switch covers a lot, but you may want to add some more.
One silly little detail: "cp" isn't allowed to copy all the settings when not running as root.

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds