futurex
Posts: 25
Joined: Sun Dec 27, 2020 9:20 pm

Ubuntu on external SSD

Tue Apr 20, 2021 8:36 pm

I tried to install ubuntu on external SSD, the problem is that the installation is very slow, it often crashes, I tried several times but I can't solve it, what could it depend on?

Undertow
Posts: 29
Joined: Thu Feb 18, 2021 2:00 pm

Re: Ubuntu on external SSD

Tue Apr 20, 2021 8:50 pm

What version of Ubuntu? I'm on 20.10 so can't speak for earlier versions.

Is Ubuntu slow for you from other media or just SSD? If you are booting to desktop make sure you login using X rather than Wayland. For example in Gnome desktop click the setting cog at login (before password) and make sure you are not on Wayland.

User avatar
kerry_s
Posts: 2026
Joined: Thu Jan 30, 2020 7:14 pm

Re: Ubuntu on external SSD

Tue Apr 20, 2021 8:55 pm

futurex wrote:
Tue Apr 20, 2021 8:36 pm
I tried to install ubuntu on external SSD, the problem is that the installation is very slow, it often crashes, I tried several times but I can't solve it, what could it depend on?
how are you installing? what are you currently using for os.

User avatar
kerry_s
Posts: 2026
Joined: Thu Jan 30, 2020 7:14 pm

Re: Ubuntu on external SSD

Tue Apr 20, 2021 9:05 pm

also what adapter are you using for the ssd, it needs to be fully usap compliant.
some lie & are only partially supported, those you need to use the workaround.

futurex
Posts: 25
Joined: Sun Dec 27, 2020 9:20 pm

Re: Ubuntu on external SSD

Tue Apr 20, 2021 9:17 pm

Yes ubuntu 20.10, I also tried to install it on SD card and everything ok, instead from SSD M2 with USB 3.0 it is nailed, but the problem is that then it loads a vlta every now and then, usually from different errors and does not complete the loading

futurex
Posts: 25
Joined: Sun Dec 27, 2020 9:20 pm

Re: Ubuntu on external SSD

Tue Apr 20, 2021 9:19 pm

I use raspberry OS on micro SD but I have set the boot from USB, then I extract the microSD and connect the SSD via USB 3.0 and start it.


User avatar
kerry_s
Posts: 2026
Joined: Thu Jan 30, 2020 7:14 pm

Re: Ubuntu on external SSD

Tue Apr 20, 2021 10:53 pm

do you have raspberry currently?
can you plug the ssd adapter in & do a

Code: Select all

lsusb
to see the info.
Attachments
Screenshot from 2021-04-20 12-53-33.png
Screenshot from 2021-04-20 12-53-33.png (178.98 KiB) Viewed 470 times

User avatar
HawaiianPi
Posts: 6305
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Ubuntu on external SSD

Tue Apr 20, 2021 11:27 pm

futurex wrote:
Tue Apr 20, 2021 8:36 pm
I tried to install ubuntu on external SSD, the problem is that the installation is very slow, it often crashes, I tried several times but I can't solve it, what could it depend on?
Could be power or UASP support.

Make and model of SSD (and power requirements if you know the spec's)?

Have you tried the latest Raspberry Pi OS image on the SSD?

Have you tried the SSD on one of the USB 2.0 ports (you might be surprised to find it works on USB 2.0)?

As a guess your enclosure has a JMicron 578 family bridge chip, which are known to be troublesome on the Pi4 due to an incomplete implementation of UAS protocol. There is a workaround to disable UASP for that chipset, but it will be slower (still faster than not working at all) and SSD TRIM almost certainly won't work (so it's not a proper fix).

As kerry_s said, connect the enclosure to a Pi and run the lsusb command then post the output here.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

futurex
Posts: 25
Joined: Sun Dec 27, 2020 9:20 pm

Re: Ubuntu on external SSD

Wed Apr 21, 2021 8:14 am

Yesterday I tried on USB 2.0 and it works well, but it is clearly not optimal because the SSD is 3.0 so you can't make the most of it even if I seem to see that the SD card is faster than the SD card.
The SSD is this:
https://www.amazon.it/gp/product/B07P22 ... UTF8&psc=1

User avatar
kerry_s
Posts: 2026
Joined: Thu Jan 30, 2020 7:14 pm

Re: Ubuntu on external SSD

Wed Apr 21, 2021 8:24 am

futurex wrote:
Wed Apr 21, 2021 8:14 am
Yesterday I tried on USB 2.0 and it works well, but it is clearly not optimal because the SSD is 3.0 so you can't make the most of it even if I seem to see that the SD card is faster than the SD card.
The SSD is this:
https://www.amazon.it/gp/product/B07P22 ... UTF8&psc=1
if that's the case, you most likely have a jmicron chip in the adapter. they lie about compatibility. there not fully compliant to usap.
there's the workaround for that, use the search.

futurex
Posts: 25
Joined: Sun Dec 27, 2020 9:20 pm

Re: Ubuntu on external SSD

Wed Apr 21, 2021 9:52 pm

Basically then I have to change the adapter also because changing the chip seems complicated to me?

tom11011
Posts: 2
Joined: Wed Apr 21, 2021 5:39 pm

Re: Ubuntu on external SSD

Thu Apr 22, 2021 5:30 pm

I am running ubuntu 20.10 on the pi4 using a Samsung 1TB V-NAND SSD 860EVO (Sata M.2) without issue. Using a USB 3.0 interface.

Tom

User avatar
HawaiianPi
Posts: 6305
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Ubuntu on external SSD

Thu Apr 22, 2021 6:37 pm

futurex wrote:
Wed Apr 21, 2021 9:52 pm
Basically then I have to change the adapter also because changing the chip seems complicated to me?
Depending on exactly which chip your enclosure is using there may be a firmware update, but those firmware updates can be tricky to find, and flashing firmware to the USB bridge chip runs the risk of bricking the enclosure.

If you post the output of the command kerry_s and I asked you to run (lsusb) we could suggest a workaround that could get your enclosure working on USB 3.0 in USB Mass Storage mode (slower than UASP but faster than USB 2.0).

Or if you want a properly working enclosure, look for one that uses an ASMedia chip (I have several with the ASM1153 chip that work well for me). Unfortunately I have no specific recommendations for M.2 drives because I use 2.5 inch SSD models on my Pi's (they usually cost less and offer the same performance).

Hopefully someone else can help with a Pi4 compatible M.2 SATA SSD enclosure.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

futurex
Posts: 25
Joined: Sun Dec 27, 2020 9:20 pm

Re: Ubuntu on external SSD

Fri Apr 23, 2021 8:09 pm

Thanks to all guys for the indications, these days despite being using USB2, the speed is good and it seems to me higher than that of the microSD, and of a normal SSD for now I leave a bit like this and then let's see ..

User avatar
kerry_s
Posts: 2026
Joined: Thu Jan 30, 2020 7:14 pm

Re: Ubuntu on external SSD

Fri Apr 23, 2021 9:01 pm

futurex wrote:
Fri Apr 23, 2021 8:09 pm
Thanks to all guys for the indications, these days despite being using USB2, the speed is good and it seems to me higher than that of the microSD, and of a normal SSD for now I leave a bit like this and then let's see ..
you can test it, in the menu you'll find diagnostics, it's a speed test for the drive.

futurex
Posts: 25
Joined: Sun Dec 27, 2020 9:20 pm

Re: Ubuntu su SSD esterno

Sat Apr 24, 2021 7:28 pm

I have used gnome disk utility but i don't see the read and write speed

Return to “Ubuntu”