I am about to expand my Ubuntu partition, so I think I should make a backup of the current one in case something goes wrong.
Is there some software to make a bootable USB and recovery image?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Remastersys is the tool to go for. It allows you to make an ISO image of your system including if you want your data. You can than create a bootable USB stick. My last experience was that the live usb/cd didnt work, but installation worked. In conclusion a perfect toll for your needs and or if you want to transfer a system to a friends computer.
This is rather basic, but it's guaranteed to work, provided you have an external hard drive with enough free space to hod your entire internal drive (including free space)
/dev/sda, but you should check somewhere to be absolutely sure. I use GParted for this purpose.
/media/externalin these instructions. Be sure that your internal drive is not mounted!
Choose one of the following, depending on your situation. Both make use of
dd to image your entire disk, not just individual partitions (you can also use this technique to migrate to an entirely different hard drive of the same size or larger):
If your external drive's filesystem can handle a single file the size of your entire internal drive, you can use the simplest option:
sudo dd if=/dev/sda of=/media/external/internal_disk.img
If you need compression or need to split the image file into multiple smaller files, use this more complex command (see the
man pages for any commands you don't understand):
cd /media/external sudo dd if=/dev/sda | bzip2 | split --bytes=2G -d - internal_disk.img.
This will first compress the contents of your disk (
bzip2), then split it into 2GB chunks.
Choose the option that corresponds to the choice you made above:
Just copy the image to your hard drive:
sudo dd if=/media/external/internal_disk.img of=/dev/sda
Make sure that there are no other files in your backup directory that have names beginning the same as your backup chunks. Then:
cd /media/external cat internal_disk.img.* | bunzip2 | sudo dd of=/dev/sda
I made a small research; The only Backup tool with ext4 support seems to be "FSArchiver".