4

Can it be done? I was thinking of installing to an external SSD I have, and connect it to my computers [*] with a USB to SATA enclosure or cable. I know what version I want, so there's no need for testing, and it seems double work to first create a live USB, and then install it to the SSD.

I would like to install straight from the ISO file. If it turns out I don't like the distro I choose, I just repeat the same process for another distro. This SSD is expendible so no worries about wear and tear from a lot of read and write actions. SSDs are almost at the same price as USB keys now, so if I can skip using USB sticks in Ubuntu installations, that's great.

[*] I understand that Ubuntu needs to be adapted to the hardware it will run on, so I'll probably only use one computer and configure it for that device.

Edit My question is possibly a duplicate of Easy Full Install USB that Boots both BIOS and UEFI I said no first, thought it was referring to another question, but I don't see any way to change my answer (in the box that popped up above my question).

theodorn
  • 784
  • 1
  • This answer assumes you have a GRUB2 available. Doesn't that mean I need to have a working Ubuntu installation ready? Or simply, if I have no Ubuntu, only Windows 10, how can I have a GRUB2? – theodorn Apr 17 '21 at 20:57
  • What I'm asking is maybe, can I somehow run the ISO file for the Ubuntu distro, from the BIOS, or from an NTFS partition on a Windows 10 machine? If what I want to achieve requires a lot of terminal commands which may or may not work, then it's much simpler to create the live USB and forget this question. – theodorn Apr 17 '21 at 21:21
  • 4
    It's much simpler to create installation media and forget this question, hands down. – ChanganAuto Apr 17 '21 at 22:10
  • 2
    You can install from an Image file. just download the image file and flash it to the SSD using Rufus, Etcher, Win32DiskImager etc. See: https://askubuntu.com/questions/1300454/easy-full-install-usb-that-boots-both-bios-and-uefi No need for an installer USB or the time it takes to make one. – C.S.Cameron Apr 18 '21 at 03:16
  • @C.S.Cameron, are you suggesting to create a small ~3 GB partition on the SSD, and then use Rufus (or similar app) to write the Ubuntu ISO to the new partition? Does this allow the user to boot into the Live Environment, even if they have Windows on their machine ? If so, I presume the user can then start the Ubuntu installer, making sure to not format or alter the small ~3GB partition. Please let me know if I understood this correctly? – Enterprise Apr 18 '21 at 03:46
  • 1
    @PJ Singh I have posted the important parts below. Flashing the image file to SSD will create a 15GB partition with a Full install of Ubuntu on it. (not a Live install), The rest of the drive will be overwritten with blank space. The 15GB partition can be stretched to the size desired, 50 or 100GB.or whatever. The remaining space can be filled with a NTFS partition that may be handy when plugged into a Windows computer. If you have a spare USB 15GB or larger give it a try, You can flash it to USB in Ubuntu using Disks, mkusb, Etcher, dd or SDC. P7zip is not required when using mkusb. – C.S.Cameron Apr 18 '21 at 04:36

1 Answers1

2

Install Ubuntu to SSD from a Pre-built Image File.

The USB drive should boot on almost any modern X86-64 computer, either Legacy mode or UEFI mode.

enter image description here

Thanks to sudodus, creator of mkusb, for the image file.

In Windows it may be necessary to install 7Zip before proceeding. Rufus and Etcher will use it when working with the .xz image: https://www.7-zip.org/a/7z1900-x64.exe

C.S.Cameron
  • 19,519
  • Looks good, but can I choose to boot from the BIOS, so the Windows bootloader will be unchanged, and the non-Windows SSD appear as a boot option? I do NOT want GRUB2 to replace the Windows bootloader. – theodorn Apr 18 '21 at 17:16
  • 1
    @theodorn: Yes, of course, Set the SSD as first hard drive, Windows can be added to Ubuntu's GRUB, or hit ESC, F2, F9 , F!2 or what ever, to boot from the SSD each time. Just like if you were booting from Live USB. The image has both BIOS and UEFI boot partitions and will boot in either mode. – C.S.Cameron Apr 19 '21 at 00:16
  • A little follow-up. I ended up installing Kubuntu 21.04, the old-fashioned way. Replaced my 1TB HDD with a Kingston 120GB A400 SSD in an MSI-GE73 laptop. Created a live USB, and then did a full install on the Kingston. – theodorn Apr 28 '21 at 09:42
  • Though outside the scope of this question, it is worth noting that the Kubuntu installer placed the GRUB2 bootloader on the Kingston, without me even opting for it. Actually there was no option to decide that manually, since I chose the Kingston A400 for the install. I decided to let Kubuntu create partitions automatically, as there was nothing else on the SSD and I wanted to use it for the Kubuntu and nothing else. If I need to move data between OSes, I'll just use portable disks. – theodorn Apr 28 '21 at 09:48
  • @theodorn: That should be fine as long as you do not plan on using the SSD on multiple computers. Are you able to boot the OS on the internal drive using the SSD's GRUB? (This comment should precede your last comment). – C.S.Cameron Apr 28 '21 at 09:50
  • Yes, everything seems to work just fine. :) I wanted Ubuntu Studio but their 21.04 has some problems, and after four attempts of everything freezing at 78% of install, I turned to Kubuntu instead. – theodorn Apr 28 '21 at 09:55
  • 1
    I would not know where to find a pre-built Ubuntu Studio or Kubuntu Image. I think someday image files of all types will be common. – C.S.Cameron Apr 28 '21 at 09:59