Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2018 11:13:41 +1000
From:      Brian Scott <bscott@bunyatech.com.au>
To:        Per olof Ljungmark <peo@nethead.se>, freebsd-arm@FreeBSD.org
Subject:   Re: Raspberry Pi 2B and SSD drive
Message-ID:  <5403d66f-929e-2abd-24e0-02eac395e3aa@bunyatech.com.au>
In-Reply-To: <2f135d3f-8175-aecb-006f-424b876a5bce@nethead.se>
References:  <2f135d3f-8175-aecb-006f-424b876a5bce@nethead.se>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

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:
vfs.root.mountfrom="ufs:/dev/ufs/pi3_hdd"

(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
pi3_swap).

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,


Brian


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@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5403d66f-929e-2abd-24e0-02eac395e3aa>