
Now copy & paste a grub.cfg file to /tmp/Files/boot/grub, Either from live ISO or download it from internet and format it accordingly.Įdit: To create grub.cfg as a normal user use chown recursively on Files partition.$ grub-install -target=x86_64-efi -efi-directory=/tmp/EFI -boot-directory=/tmp/Files/boot -removable -recheck $ sgdisk -new 2::"rem_space": -typecode 2:8300 -change-name 2:"Files" /dev/sdb $ sgdisk -new 1::+50M -typecode 1:ef00 -change-name 1:"EFI" /dev/sdb Type n (new gpt partition table) then w (write). $ sgdisk -zap-all /dev/sdbĬreate a new gpt (partition table), using fdisk $ fdisk /dev/sdb Create a grub.cfg file pointing towards your ubuntu installation.Īssuming usb device is /dev/sdb.Now I don't know if you will be able to access the second partition from windows. Now create another partition name it Files.Create a partition no less than 50 MB in size. After installing ubuntu dont remove the intallation media. I think running ubiquity with -b flag should do the trick. first install ubuntu without bootloader.Using this script as an example this can be achieved. To wipe a directory type: wipe -r directoryname. To report on progress type: wipe -i filename. To remove a single file using wipe type: wipe filename.

:max_bytes(150000):strip_icc()/003-how-to-uninstall-ubuntu-from-your-computer-13d4e37dae0d40548e314de72828dd49.jpg)

The wipe command is useful to remove files, directories partitions or disk. You can do it by simply adjusting some steps used to create multibootusb. To install wipe on Debian/Ubuntu type: apt install wipe -y. What you are trying to achieve is create a partition install ubuntu on it without the bootloader then use bootloader installed on usb drive to boot the ubuntu installation.
