I believe you could boot from an SSD ( using an x850 expansion board which you can configure as a boot device ). However, it doesn’t appear that any additional data storage space beyond that configured in the original image can be used as I attempted to expand the original image I copied onto a 16GB Micro SD card to take advantage of the over 12GB of “ unallocated “ space. I used GParted to move the swap file to the end of the disk and expanded the system partition to include all of the unallocated space. Unfortunately, the modified SD card will not boot so I’m left with 12GB of unused space. However, you can configure a USB Thumb Drive or an mSATA SSD mounted in an expansion board to store your data rather than the system area of the SDCard ( I’ve done both ) . Just perform the modifications as detailed in the following article I found on the web ( translated from the German )
“ Meteohub on Raspberry Pi - Data on USB stick
I use the Meteohub ( Link ) software for my Davis Vantage weather station to store the measurement data and visualize it on my website. Some time ago, I switched from hardware NSLU2 to Raspberry 2.
At fairly regular intervals of 2-3 weeks, I discovered incorrect entries in the meteohub log (eg weather \ 201408 \ raw).
raw_error
It could even happen that the Raspberry after a restart from the SD card no longer wanted to start. I quickly secured all the files in the directory "public" and I had to reboot the map every few weeks.
I decided to move the data from Meteohub from the SD card to a USB stick. Below I describe how I proceeded.
I expressly point out that I can not accept any liability if this process should not work.
Background:
Raspberry Pi (model B or 2) with SD card
Meteohub installed and fully operational (for me version 5.0j)
Backup created (maintenance - back up application data)
All files in the directory "public" (network share) externally secured (except directory "upload")
Data Collection Stopped (Maintenance - Stop Data Acquisition Process)
Weather station depending on the Raspberry Pi
procedure:
USB stick in the Raspberry Pi plug (I use a 32GB stick of HP (FDU32GBHPV165W-EF))
Use the terminal program putty to access Meteohub (Username: root, password: meteohub)
Check whether the USB flash drive has been detected: fdisk -l
fdisk
This is where the USB stick (example with 4GB capacity) with / dev / sda1 appears under / dev / sda. The current Meteohub data partition is shown in / dev / mmcblk0p4.
Now the USB stick is prepared for use with Meteohub:
- fdisk / dev / sda
- d (Delete Partition)
- n (create new primary partition, confirm all default settings)
- w (save partition data and leave fdisk)
Format the USB stick with the file system EXT4: mkfs.ext4 / dev / sda1
The file / etc / fstab must now be adapted so that the data can be saved on the USB stick again:
- nano / etc / fstab
- Insert a # at the beginning of the line / dev / mmcblk0p4
- Insert new line directly afterwards:
/ Dev / sda1 / data ext4 defaults, noatime 0 0
(Blank area with Tab key, at the end of line 2 zeros)
- CTRL + x (leaving nano)
- y (Save file)
The file fstab looks as follows:
fstab
Raspberry Pi reboot : reboot
Reconnect to Meteohub via putty
Check if the USB stick has been loaded correctly: mount
mount
The USB stick is loaded:
/ Dev / sda1 on / datatype ext4 (rw, noatime, data = ordered)
Now copy all files including the backup over the network to the directory "public"
In the Meteohub web interface, select Restore Data (Maintenance - Load Application Data)
Switch off the Raspberry Pi (Maintenance - Switch off the Meteohub system)
Connect the weather station again “
Here is the link to the original article which includes screenshots of the various steps
Switch on the Raspberry Pi
In the web interface check if everything is running correctly
The starting point of these adjustments was this contribution at www.forum-
Here is the link to the original article in German which I translated with Google Translate.
https://www.beathis.ch/cgi/Wordpress/?p=1790