To back up Windows systems, you need to use ghost. It is much simpler to back up ubuntu. You can use the tar command. I can see a method on the Internet, but there is no actual test validity yet.
(Make sure that nothing is mounted under/media, and the backup file will be placed under your root directory)
Sudo Su
CD/
Tar cvpzf backup. tgz/-- exclude =/proc -- exclude =/lost + found -- exclude =/backup. tgz -- exclude =/mnt -- exclude =/sys
-- Exclude is used to exclude
If you want a higher compression ratio (slow speed)
Replace the last stepCode:
Tar cvpjf backup.tar.bz2/-- exclude =/proc -- exclude =/lost + found -- exclude =/backup.tar.bz2 -- exclude =/mnt -- exclude =/sys
There is a backup. tgz under your root directory. This is your backup file.
Recovery (with caution, all files in your partition will be replaced with files in the compressed file)
Sudo Su
CD/
Tar xvpfz backup. tgz-C/
If you use 2nd backup methods, replace the last code
Tar xvpfj backup.tar.bz2-C/
Wait until it is done
Mkdir proc
Mkdir lost + found
Mkdir mnt
Mkdir sys
Restart.