On 08/25/2014 08:56 AM, Jacco Ligthart wrote:
On 08/25/2014 02:38 PM, Robert Moskowitz wrote:
So what is the magic command with all the directories like /dev/ and
/proc/ that you do not want to try and include their contents, but you
still need the directory tree?
I want to move a rootfs from one HD to another, and this seems to be
the most straightforward way.
dd if=/dev/<old_root> of=/dev/<new_root>
maybe followed by resize2fs
IF is a 320Gb sata. OF is a 120Gb IDE. No can do it this way...
Plus I only own 1 HD to USB adapter. I could do the copy to file......
/dev and /proc are not the issue. They are normally mounted as a
separate fs and most of the tools have an option for restricting to one
file system:
tar: --one-file-system
cp: -x, --one-file-system
rsync: -x, --one-file-system
But there are also hardlinks, sockets, selinux properties, etc to
consider. I think these can all be handled with special options to the
tools, but normally I don't bother and just dd the whole partition.
With Gordon distributing Redsleeve as a tarball, I thought that there
was a somewhat 'clean' way to build one. He had claimed that taring
would be smaller than compressing an image. But I cannot find in any of
those earlier messages WHAT tar options to use. And for this purpose, I
would not bother with the cost of compression. Just get it done.
_______________________________________________
users mailing list
[email protected]
http://lists.redsleeve.org/mailman/listinfo/users