thatchunkylad198966
Posts: 112
Joined: Thu Jul 04, 2019 10:21 am
Location: UK, Birmingham

Re: [PI4:] how do I move the filesystem to a USB stick/Drive

Sat Jul 06, 2019 5:29 pm

Damn...
I was awake until 7am the other morning trying to get it to boot with /boot on the SDCARD and ROOTFS on my SSD via USB to SATA.
After reading this, think I'll try again!

Awesome. :D
One man's trash is another man's treasure! :) Pi's I have; Pi Zero, Pi Zero W, Pi 2 x2, Pi 3 x2, Pi 4 4GB x2.

thatchunkylad198966
Posts: 112
Joined: Thu Jul 04, 2019 10:21 am
Location: UK, Birmingham

Re: [PI4:] how do I move the filesystem to a USB stick/Drive

Sat Jul 06, 2019 5:36 pm

romprod wrote:
Sat Jul 06, 2019 2:46 pm
I've just this minute figured out why it wouldn't work....

So, found out that it would work using the PARTUUID method as per the guides etc but only when plugged into the USB2 socket.

The I found this site https://wiki.odroid.com/odroid-xu4/soft ... _fw_update and updated the firmware as below

Code: Select all

sudo ./JMS578FwUpdate -d /dev/sda -v
Bridge Firmware Version: v133.2.0.2

Code: Select all

sudo ./JMS578FwUpdate -d /dev/sda -f ./JMS578-Hardkenel-Release-v173.01.00.02-20190306.bin -b ./backup.bin
Update Firmware file name: ./JMS578-Hardkenel-Release-v173.01.00.02-20190306.bin
Backup Firmware file name: ./backup.bin
Backup the ROM code sucessfully.
Programming & Compare Success!!
Give everything a cold reboot (if you have power to your USB->SATA device

Code: Select all

sudo ./JMS578FwUpdate -d /dev/sda -v
Bridge Firmware Version: v173.1.0.2

Voila!

It now boots from USB3 ports!


Previous speed test on USB2

Code: Select all

sudo hdparm -tT /dev/sda                    

/dev/sda:
 Timing cached reads:   1754 MB in  2.00 seconds = 877.30 MB/sec
 Timing buffered disk reads: 102 MB in  3.05 seconds =  33.39 MB/sec
New speed test on USB3

Code: Select all

 hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   1826 MB in  2.00 seconds = 913.42 MB/sec
 Timing buffered disk reads: 1122 MB in  3.00 seconds = 373.49 MB/sec
I have this USB to SATA:

https://www.amazon.co.uk/Sabrent-2-5-In ... b3+to+sata

Will that still work?
One man's trash is another man's treasure! :) Pi's I have; Pi Zero, Pi Zero W, Pi 2 x2, Pi 3 x2, Pi 4 4GB x2.

romprod
Posts: 20
Joined: Sat Jun 09, 2012 6:31 pm

Re: [PI4:] how do I move the filesystem to a USB stick/Drive

Sat Jul 06, 2019 6:23 pm

Run lsb as below and see if you get the following results. If you do, then go for it. Although I ain't promising that it doesn't brick it!

Code: Select all

[email protected]:/data/docker $ lsusb

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

thatchunkylad198966
Posts: 112
Joined: Thu Jul 04, 2019 10:21 am
Location: UK, Birmingham

Re: [PI4:] how do I move the filesystem to a USB stick/Drive

Sat Jul 06, 2019 6:39 pm

romprod wrote:
Sat Jul 06, 2019 6:23 pm
Run lsb as below and see if you get the following results. If you do, then go for it. Although I ain't promising that it doesn't brick it!

Code: Select all

[email protected]:/data/docker $ lsusb

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I don't get the exact same?

Code: Select all

[email protected]:~ $ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 1058:107c Western Digital Technologies, Inc. Elements Desktop (WDBWLG)
Bus 002 Device 003: ID 152d:1561 JMicron Technology Corp. / JMicron USA Technology Corp. JMS561U two ports SATA 6Gb/s bridge
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 04b4:f02f Cypress Semiconductor Corp. 
Bus 001 Device 003: ID 093a:2521 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[email protected]:~ $ 
One man's trash is another man's treasure! :) Pi's I have; Pi Zero, Pi Zero W, Pi 2 x2, Pi 3 x2, Pi 4 4GB x2.

romprod
Posts: 20
Joined: Sat Jun 09, 2012 6:31 pm

Re: [PI4:] how do I move the filesystem to a USB stick/Drive

Sat Jul 06, 2019 7:07 pm

Sorry, not sure.

Maybe try looking for a new firmware for that device or try the one that I've used. It backups up the current firmware so I'm going to assume that you get the ability to reflash it if the new one doesn't work.

thatchunkylad198966
Posts: 112
Joined: Thu Jul 04, 2019 10:21 am
Location: UK, Birmingham

Re: [PI4:] how do I move the filesystem to a USB stick/Drive

Sat Jul 06, 2019 7:14 pm

romprod wrote:
Sat Jul 06, 2019 7:07 pm
Sorry, not sure.

Maybe try looking for a new firmware for that device or try the one that I've used. It backups up the current firmware so I'm going to assume that you get the ability to reflash it if the new one doesn't work.
I'll have a look around, at least I know it's not my fault that it wasn't working.
Stayed awake until 7am too; sigh.

Thanks dude! :D :mrgreen:
One man's trash is another man's treasure! :) Pi's I have; Pi Zero, Pi Zero W, Pi 2 x2, Pi 3 x2, Pi 4 4GB x2.

romprod
Posts: 20
Joined: Sat Jun 09, 2012 6:31 pm

Re: [PI4:] how do I move the filesystem to a USB stick/Drive

Mon Jul 08, 2019 11:04 am

I've reverted back to having / on the SSD card.

For some reason the storage was being set to read only and other strange behaviour.

It'll have to do for for now, but there's still something wrong with the SSD USB drivers and this USB3 port.

sbtagain
Posts: 3
Joined: Mon Dec 24, 2012 4:06 pm

Re: [PI4:] how do I move the filesystem to a USB stick/Drive

Tue Aug 13, 2019 7:23 pm

I am able to successfully mount the file system to a SSD ONLY if I attach the SSD device to a USB2 port directly on the pi board. The USB3 port simply does not work at all. Yea - I'm loosing performance but I want the extra storage...

romprod
Posts: 20
Joined: Sat Jun 09, 2012 6:31 pm

Re: [PI4:] how do I move the filesystem to a USB stick/Drive

Tue Aug 13, 2019 7:36 pm

Have you updated the firmware on your SATA to USB cable?

Return to “Advanced users”