- Products websites
- Other Services
This article explains how to modify the original partition table for the FoxBox G25, and it can be particularly useful to phisically separate data increasing their safety.
Please implement this solution on a new microSD, keeping the original one as a backup if something goes wrong.
In this step you will need to follow the same procedure used to restore the internal microSD (available here).
Obviously, you will have to modify the structure defined in GParted. As an example we will use:
Note that the data partition has now become Extended, and inside of it we have three dataN Logic ones.
Moreover you will have to edit the script restoreVerC.sh, editing the line shown below:
Original: sudo tar xvjpSf ./dataXYZ.tar.bz2 -C /media/data Modified: sudo tar xvjpSf ./dataXYZ.tar.bz2 -C /media/data1
Before booting the system, you also have to modify the file /etc/fstab as shown below:
Original: /dev/mmcblk0p3 /media/data ext4 noatime 0 1 Modified: /dev/mmcblk0p3 /media/data ext4 noatime,sync 0 0
This will avoid problems during the boot phase, when the automatic filesystem check will parse the Extended partition.
As for every other Linux system, once the system is working you can mount each new partition with these commands:
mkdir /mnt/data1 mkdir /mnt/data2 mkdir /mnt/data3 mount /dev/mmcblk0p5 /mnt/data1 mount /dev/mmcblk0p6 /mnt/data2 mount /dev/mmcblk0p7 /mnt/data3
Now the device will see all the partitions defined before, and you will be able to work over them as usual.
Add the new partitions to the fstab in order to automatically mount them during the boot phase.