Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Isn't cp bad for these kind of situations, as it doesn't preserve permissions? I know that sync is better with the archive switch. Commented Dec 22, 2020 at 9:13
  • @BinarWeb Do yo mean rsync? sync is for flashing buffers. I have checked that cp is doing it correct with option -a, --archive, same as -dR --preserve=all. No need to use overkilled rsync. Commented Dec 22, 2020 at 19:34
  • Yes, I meant rsync. And I guess not reading a manual got me thinking it's not possible to do it with cp. Why is overkill to use rsync? I use it for backups. Commented Dec 22, 2020 at 19:56
  • @BinarWeb Discussion about rsync is off topic now. I like to keep things as light and simple as possible because its less error prone. rsync is mainly made to synchronize complete web sites over slow connections with verify and retry by only copy changed files. That it can also do what cp can do, is only a side effect of its powerful possibilities. Commented Dec 22, 2020 at 20:48
  • All these operations require root, which shouldn't be necessary for partitioning an image file belonging to a user. Commented Aug 28, 2023 at 9:50