

Run the below commands: sudo apt-get install syslinux mtools My USB partition is /dev/sdd1 enter lsblk to see what's yours.

Next, you need the ldlinux.sys file in your USB flash drive to make the USB bootable. Let's assume that it was mounted in /media/xxx/.Ĭopy all files from /media/iso/ to your mounted USB flash drive by running the below command (make sure to include the dot): cp -a /media/iso/. Your drive may be automatically mounted inside /media/. Sudo mount -o loop /path/to/ubuntu.iso /media/iso Then mount the ubuntu.iso file with the below commands in terminal: sudo mkdir /media/iso/ Place the ubuntu.iso file in any hard disk partition. If you do that, there will be confusion because there are pairs of identical partitions and file systems, and the boot system may choose to use them and write to them in a way, that both get damaged, so that they will no longer work.Creating a bootable Ubuntu USB flash drive from terminal Never boot the computer with both the original drive and a cloned copy of it connected at the same time.So, get an extra drive with at least the same size as the original drive, and use the imaging tool to restore from the image to that drive and test that the computer works as expected when the original drive is replaced by this new drive.

Otherwise you cannot be sure that the image can really be restored, and it might be too late when the original drive fails.
