13

I have access to my dad's laptop; we share it. I would like to use Ubuntu on it without affecting his machine. I don't want to dual boot since he is used to way the machine works. I have purchased an external SSD.

How can I install Ubuntu on that SSD such that when I connect the SSD to the laptop it boots in to Ubuntu and when unplugged it boots to Windows just like he is used to.

Thanks

Zanna
  • 70,465
  • After installed Ubuntu into external SSD, you must setup Grub menu with command sudo update-grub. You like it or not, an extraneous GRUB entry is made into EFI partition in Windows 10. This will be reflected when you pay a visit to BIOS setup screen. i.e. you will see the presence of three bootloaders. To remove this extraneous GRUB, just follow Part-IV of my answer to the post Dual Boot Windows 10 and Linux Ubuntu on Separate SSD. Good luck! – Marmayogi Apr 04 '19 at 02:20
  • 2
    UEFI or BIOS hardware & Windows install. Newer systems are UEFI and a bit more complicated. You need to partition in advance and if UEFI be sure to have the ESP - efi system partition on your SSD for booting. But grub will default install to first drive. You then can use Boot-Repair to reinstall grub to SSD as that works, and erase Ubuntu boot from internal drive. See: https://askubuntu.com/questions/913716/dual-boot-on-seperate-drives-best-configuration & https://help.ubuntu.com/community/UEFI – oldfred Apr 04 '19 at 02:38
  • I read your comments @oldfred. Are you sure that boot-repair tools always fixes things up? See https://askubuntu.com/questions/696098/grub-2-failure-boot-repair-wont-fix. Intead of tools like boot-repair, we can always rely upon built-in capabilities such as diskpart to do the repair work which is very safe. – Marmayogi Apr 04 '19 at 09:46
  • Boot-Repair does not always work, sometimes you have to chroot into a system to repair it. And some think it is for Windows repairs, but it is not. But for most users the gui is easier to use than posting multiple terminal commands. Plus if it does not work we can get the detail Summary report to let us see all the details and know better what to suggest. Often issue then may not be a boot issue, but something else. – oldfred Apr 04 '19 at 12:24
  • No doubt that GUI tools are easy to use as long as it works. Personally, I always prefer GUI tool such as Grub Customizer over built-in commands such as sudo update-grub, but that is a matter convenience. But one will gain insight only through in-built commands which you can't even deny @oldfred. So, I chose and relied upon diskpart command throughout which not only helped me to finish the job but also provided me valuable insight! – Marmayogi Apr 05 '19 at 19:12
  • What is diskpart? I do not find it in default Ubuntu nor in synaptic? Are you referring to gparted? or Disks, aka gnome disks? – oldfred Apr 05 '19 at 19:16

1 Answers1

9

It is not much different than installing on main hard disk.

  1. Connect External SSD onto your machine
  2. Connect Ubuntu installation medium onto your machine
  3. Enter BIOS, choose boot from Ubuntu installation medium
  4. In Ubuntu Installation type, choose Something else
  5. Find your external SSD on the list, look for drive other than /dev/sda. (Assuming you already had Ubuntu before)
  6. Once you found it—you can partition it, the basic Ubuntu installation contain:

    • Root partition /

    • Swap partition swap

  7. Click next --> continue.
  8. The rest steps is related to username, timezone etc.

The next time you want to boot to external SSD, just choose your SSD from BIOS boot menu. It will redirect to your external SSD, in which you can use Ubuntu from there.

Liso
  • 15,377
  • 3
  • 51
  • 80
  • oh interesting....it wont add the dual boot menu in this manner ? I can just unplug the drive and it will boot back to windows, no dual boot menu – rustyocean Apr 04 '19 at 01:49
  • 2
    @ubuntububuntu As long as you ensure that the drive for GRUB installation is set to your external SSD, it won't affect the Windows bootloader on the internal drive. – Nonny Moose Apr 04 '19 at 01:53
  • awesome, thank you so much. I was worried I would have to disconnect the windows drive in order to do this – rustyocean Apr 04 '19 at 02:09
  • Never make the mistake of meddling with drives such as plugging or unpluging! Please you follow my answer to the post Dual Boot Windows 10 and Linux Ubuntu on Separate SSD. Good luck! – Marmayogi Apr 04 '19 at 02:18
  • 1
    This is strictly for non-UEFI installs. UEFI should get a EFI partition on the SSD, and of course be aware of bug https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1396379 which ignores your selection of bootloader location, and probably puts it on sda. – ubfan1 Aug 21 '21 at 00:18