No worries C.S.Cameron,
I have created several alternative methods for this purpose, but not this one, I think you invented it right now
My first test was to repeat what you did (with standard Ubuntu 17.10 in BIOS mode in my Toshiba laptop with 3rd generation Intel i5 hardware and an Insyde BIOS/UEFI system.
1. Main result: The created installed system boots both in BIOS mode and UEFI mode as it should
2. I would suggest some modifications of your recipe:
- Insert the live-only USB drive and boot. When the system is running (and you are at the desktop environment), insert the persistent live USB drive. (Otherwise it might boot from the persistent live drive and prevent some of the tasks later in your recipe.)
- Things will be smoother, if you delete sdb4, the ISO9660 partition and expand sdb5 into the recovered space before installing. (You need not move all the installed files.) In order to do this you must first unmount the involved partitions. I did this with gparted, but it is possible also with other tools.
- Mount the sdb3 and sdb5 partitions.
Code:
sudo mkdir /mnt/sd3
sudo mkdir /mnt/sd5
sudo mount /dev/sdb3 /mnt/sd3
sudo mount /dev/sdb5 /mnt/sd5
- Copy grub.cfg (an explicit description will avoid confusion)
Code:
sudo cp -p /mnt/sd5/boot/grub/grub.cfg /mnt/sd3/boot/grub/
I am not sure that it works the other way - or let us put it this way: We might need some modifications to avoid problems, when installing in UEFI mode and wanting to make it work in BIOS mode. In this case, the bootloader (the EFI system partition) will be installed into a target drive automatically, which is probably not what we want.
But I have not tested it yet. I will go outdoors and shovel show for an hour or two now
Bookmarks