I would suggest using tar as this will:
* only copy used files (not the empty disk space),
* will not try to copy its own output file (you are writing to the filesystem you are trying to image)
* will use compression to reduce the output file size
Code:
sudo tar -czf sda5disk.tar.gz --one-file-system /
The one-file-system option stops it from descenting into /proc, /sys etc.
I have succesfully restored a system from a tar file before, and booted it succesfully.
EDIT:
You replied while I was typing the above reply.
If you only want /home, then I would definitely use tar like this:
Code:
sudo tar -czf sda5home.tar.gz --one-file-system /home
Bookmarks