07-22-2016, 12:58 AM
This issue is really more complicated (more sophisticated) than has been discussed so far.
The SD card (I'm speaking of gnu+linux here) should be partitioned with multiple partitions and a part of the file system should be dedicated to each partition. This is done for security and also for technical integrity. These are the parts and the mount points:
1 /boot
2 / (root)
3 swap
4 (extended)
5 /usr
6 /var
7 /tmp
8 /usr/local
9 /opt
10 /home
The /home partition should be mounted nosuid and noexec .
If the SD card is going to get clobbered due to a power outage this will most likely happen to /var or /tmp, but may also happen to /home. There is no need to rebuild the entire card if only /var or /tmp is borked.
If you were going to run an external sdd or hdd on the Pine, then this scheme above should definitely be used; although, there are considerable advantages for doing the same to a standard SD card. Of course it takes some experience to know (for a given distro) the sizes for each of the partitions; particularly /usr and /opt. On a 32G card most of the card should be given over to /home. a 1G part for each of /var and /tmp should be fine. /opt and /usr will be sized based on the packages that are required for each filesystem.
/boot can be ext2 or ext3. All others besides swap should be ext4 journaled.
In any case IMHO 32G cards should be used , spanning the entire SD, regardless of 8G, 16G or whatever images. Everyone is making this too hard in the one direction... and not hard enough in the other (multiple partitions are the way to go).
marcushh777
The SD card (I'm speaking of gnu+linux here) should be partitioned with multiple partitions and a part of the file system should be dedicated to each partition. This is done for security and also for technical integrity. These are the parts and the mount points:
1 /boot
2 / (root)
3 swap
4 (extended)
5 /usr
6 /var
7 /tmp
8 /usr/local
9 /opt
10 /home
The /home partition should be mounted nosuid and noexec .
If the SD card is going to get clobbered due to a power outage this will most likely happen to /var or /tmp, but may also happen to /home. There is no need to rebuild the entire card if only /var or /tmp is borked.
If you were going to run an external sdd or hdd on the Pine, then this scheme above should definitely be used; although, there are considerable advantages for doing the same to a standard SD card. Of course it takes some experience to know (for a given distro) the sizes for each of the partitions; particularly /usr and /opt. On a 32G card most of the card should be given over to /home. a 1G part for each of /var and /tmp should be fine. /opt and /usr will be sized based on the packages that are required for each filesystem.
/boot can be ext2 or ext3. All others besides swap should be ext4 journaled.
In any case IMHO 32G cards should be used , spanning the entire SD, regardless of 8G, 16G or whatever images. Everyone is making this too hard in the one direction... and not hard enough in the other (multiple partitions are the way to go).
marcushh777