-1

I have installed ubuntu on an usb stick.But it takes more than three minutes to boot. I don't know what's going wrong.

Here's the details:

USB: Kingston DTMAXA 256GB 3.2Gen2 PC: MSI GP76hx i7-12800hx 32GRAM 3080ti

systemd-analyze

usb-check

Pradur
  • 1
  • 3
    A live system running from flash media is not an installed system, and is expected to take longer to boot as it's not installed (thus more generic). Persistence does not help in this regard (usually configuring after the live system has booted). Live releases past 20.10 also validate the live media which takes time... ie. extra processes occur that aren't performed post-installation. – guiverc Apr 17 '23 at 08:08
  • 1
    This could be caused by so many things. Using a USB 2.0 port, having too many things daisy-chained on the same bus, using a slow computer ... – matigo Apr 17 '23 at 08:08
  • It's a usb 3.2gen2 port. – Pradur Apr 17 '23 at 08:11
  • 1
    @Pradur, Simple speed tests for reading and writing will not always give correct results because of buffering. Often the process seems fast in the beginning but gets gradually slower, when the buffers get filled and the real speed of the USB drive hardware is limiting the speed. If you use an SSD connected via USB 3 you will notice much better speed compared to a USB pendrive or SD card. – sudodus Apr 17 '23 at 09:49
  • copy that. i will try to test it on ssd @sudodus – Pradur Apr 17 '23 at 09:56
  • @Pradur, By the way, is it a live system, a persistent live system or an installed system (installed like into an internal drive, but in this case installed into a USB drive)? – sudodus Apr 17 '23 at 09:57
  • It's an installed system running on a usb3.2 stick@sudodus – Pradur Apr 17 '23 at 10:19
  • @Pradur, OK. I'm looking forward to your result with an SSD. I think it will improve a lot, but if not there are other things to explore (to check which processes during the boot process, that need most time and try to improve the conditions for those processes). – sudodus Apr 17 '23 at 12:00
  • 2
    I have full install on SSD and it is almost as fast as internal SSD with USB3. I do not now plan on buying any more flash drives as I have many. Make sure you have ESP on external drive. Posted work around to manually unmount & mount correct ESP during install #55 or( #23 & #26) https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1396379 or Remove esp flag from Windows before install to second or external drive - Tim Richardson https://askubuntu.com/questions/16988/how-do-i-install-ubuntu-to-a-usb-key-without-using-startup-disk-creator – oldfred Apr 17 '23 at 13:33
  • I tried with a fresh usb stick. The 4K performance of usb stick does matter. The boot time of my friend's fresh usb stick is much more faster than mine. It seems like long boot time only happens on mine.@sudodus – Pradur Apr 23 '23 at 12:37

1 Answers1

1

In my case with Ubuntu live usb on a stick with 170 Mb/s read/write speed, this value is almost 2 minutes. The system become responsive much earlier, than this two minutes, no mater of background process.

It depends a lot of the USB stick speed. Slower read/write stick speed can double the time easily.

alexlibris
  • 19
  • 4