Raspberry Pi 2B and SSD drive

Brian Scott bscott at bunyatech.com.au
Mon Jun 18 01:13:50 UTC 2018


I'm doing this with a spinning USB disk at the moment on my Raspberry-Pi
3. I never managed to make it work on my (256MB) RPi-B but suspect the
problem was with the powered USB hub that I needed to use to power the disk.

I have the /boot and /boot/msdos partitions on the sdcard and everything
else on the USB attached disk.

In the loader.conf file on the /boot partition I have:

(pi3_hdd is the label I put on the ufs partition on the hard drive)

I also have a directory on /boot called boot that contains hard links
back to the files in /boot and symlinks to the directories on /boot.
This gets me around the problem that when booting, the /boot partition
is effectively the root partition for finding files and the loader seems
to have some embedded /boot/.... file paths in it.

In /etc/fstab I have:

/dev/ufs/pi3_hdd   /       ufs     rw      1       1
/dev/ufs/pi3_boot   /boot   ufs     rw      1       2
/dev/msdosfs/PI3_MSDOS /boot/msdos msdosfs rw,noatime 1 3
/dev/label/pi3_swap    none    swap    sw     0       0
tmpfs /tmp      tmpfs   rw,mode=1777,size=50m   0       0

(I also have a swap partition on the usb drive that I have glabelled

I'm strongly considering moving /boot and /boot/msdos to be read only to
further reduce any possibility of wear although it's very unusual for
any write activity there anyway.

I have a shell script that shuffles a snapshot image around into the two
images (sd card and hdd) if you are interested.

Hope this helps,


On 18/6/18 1:10 am, Per olof Ljungmark wrote:
> FBSD 11.2-RC1
> How can I make good use of a USB SSD drive connected to the Pi?
> For instance, can I start from the SD card and then hand over everything
> to the SSD drive? From googling it does look like it is possible.
> Thanks!
> ...
> Yes, but....
> The but being that it's still USB attached and won't be nearly as fast
> as you expect.
> ...
> Subscribed to the list now...
> I am not concerned about the performance, it is the wear.
> So, how do one load the OS from the SSD? I suppose I could boot the OS
> from the SD card and place most other filesystems on the SSD but would
> prefer to load the OS from the SSD drive.
> Have a feeling the mysterious /boot/msdos/config.txt is involved but I
> fail to locate any documentation, if there is one?
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"

More information about the freebsd-arm mailing list