0

Is it possible for my current kubuntu 20.04 installation to be saved preferably in a bootable USB? I have several productivity apps and of course files and documents and would like to avoid installation from scratch and putting file backups in place when moving to a new machine.

Shiv_90
  • 274
  • 1
  • 1
    My preference is Gnome-Disks. Boot from Live USB, open Disks, select Drive Options icon, upper right, select Create Disk Image. You can restore the disk image using Rufus, Etcher, Gnome-Disks, dd or my preference mkusb. Clonezilla is too complicated for me. The image will be bootable when restored to USB or you can flash directly to your new Drive. – C.S.Cameron Aug 11 '21 at 13:58

1 Answers1

1

i prefer using dd as it clones the disc comppletey. to do so you can use a bootable ubuntu USB device which is either big enough to store your image or use an external hdd drive.

you can refer here Live USB on a 2-partition usb-drive to setup a 2 partion usb drive.

then boot from the usb and simply clone your disc (i assume its /dev/sda/, but can be /dev/mmcblk or similar) by using

dd if=/dev/sda of=/media/ubuntu/<usb part2>/sda.img bs=32M 

to restore your complete disc then boot up again and use

dd if=/media/ubuntu/<usb part2>/sda.img of=/dev/sda bs=32M 

its important to clone the complete drive - e.g. using /dev/sda1 would only clone the first partition

Flo
  • 121