Introduction
This article describes the setup procedure to properly partition and format an SD card to be used on a Maivin unit. The article describes creating the partition and formatting the SD card on the Maivin though this could be done on another device as well.
Note that if formatting the SD card on another device to make sure to format as EXT4 and to use GPT partitioning as described in this article. Other partition and format types may work but have not been tested.
Requirements
- Torizon for Maivin 6.5 or newer
- SD Card installed into the Maivin
Instructions
Once the SD card is formatted it will automatically show up under /media/DATA. The DATA portion of the path is based on the file system label, if you use a different label it will affect this path.
NOTE: THIS IS A DESTRUCTIVE PROCESS ALL DATA ON SD CARD WILL BE DELETED!
sudo parted /dev/mmcblk1 mklabel gpt
sudo parted /dev/mmcblk1 mkpart DATA ext4 0% 100%
sudo mkfs.ext4 -L DATA /dev/mmcblk1p1
ls /media/DATA
The final command should show at least a lost+found folder inside the /media/DATA path.
As an optional, final step, some applications need the "torizon" user to have write access to the /media/DATA directory. Run the following commands to allow this:
cd /media
sudo chmod a+w DATA
Confirm that the directory is writeable:
torizon@verdin-imx8mp-15139764:/media$ ll
total 4
drwxrwxrwx 3 root root 4096 Mar 6 20:54 DATA
Comments
0 comments
Please sign in to leave a comment.