


To finish my re-install I have a list of commands in a script to add and remove software and to change settings. The hdd now has been inside 3 notebooks (all died for various reasons). That private partition also holds the dirs in /home/$USER/. When it comes to things like this I would suggest to follow a plan where you can re-install your system from an install medium: I restore my Ubuntu within 15 minutes where I format / and /home (both on an ssd my /home/$USER has no normal directories) and mount a partition (1Tb hdd) with my files on. Always make sure you can restore a backup of your personal data.A typo of 1 letter or 1 digit in the device name is fatal. If you put the wrong partition as a destination that one is gone if you pick the wrong one. If you use a partition as a destination it is going to be destroyed.Change the location for the image file to /media/$USER/mountpoint/ if you have an USB with enough space to copy the file onto that USB.

Make sure there is enough space (and then some) on the destination before doing this.Would put the contents of / on sdh2 destroying what is currently on sdh2. Will copy sdh2 to a compressed file on your root called. This dd if=/dev/sdh2 | gzip -c > /image.img Whatever tool you pick it likely is going to be using dd. Linux is less error prone since we use generic drivers. If, for instance, your hardware changed it is a bad idea to restore a disk dump on Windows. Dumping the disk dump back onto the partition is possible but this is not re-installing. You can create a disk dump of partitions but re-installing from those is not possible. "eventually be reinstalled" Not with a tool from Ubuntu.
