Image sizes too big for SD card?
#28
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


Messages In This Thread
Image sizes too big for SD card? - by montero65 - 07-07-2016, 09:12 AM
RE: Image sizes too big for SD card? - by DonFL - 07-07-2016, 10:18 AM
RE: Image sizes too big for SD card? - by Luke - 07-07-2016, 10:40 AM
RE: Image sizes too big for SD card? - by DonFL - 07-07-2016, 10:51 AM
RE: Image sizes too big for SD card? - by DonFL - 07-07-2016, 11:14 AM
RE: Image sizes too big for SD card? - by g_t_j - 07-14-2016, 03:57 PM
RE: Image sizes too big for SD card? - by gtpboy - 07-15-2016, 12:11 PM
RE: Image sizes too big for SD card? - by Pepe - 07-15-2016, 12:25 PM
RE: Image sizes too big for SD card? - by gtpboy - 07-16-2016, 12:59 PM
RE: Image sizes too big for SD card? - by jimwrey - 07-16-2016, 05:04 PM
RE: Image sizes too big for SD card? - by DonFL - 07-19-2016, 01:17 PM
RE: Image sizes too big for SD card? - by Ghost - 07-19-2016, 01:53 PM
RE: Image sizes too big for SD card? - by Boring - 07-20-2016, 09:15 AM
RE: Image sizes too big for SD card? - by Ghost - 07-21-2016, 09:08 PM
RE: Image sizes too big for SD card? - by MarkHaysHarris777 - 07-22-2016, 12:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Issues with SD Card and Running Android Twistedx 0 3,835 02-26-2019, 11:58 AM
Last Post: Twistedx
  Reducing Android Image download size. KPhillisJr 4 8,914 08-21-2017, 04:48 AM
Last Post: winstongel
  Is there an android tv image out there where I can install netflix? eclay 2 6,842 07-18-2017, 08:49 AM
Last Post: eclay
  Corrupt SD Card? CaptainCWA 13 18,748 06-04-2017, 08:01 PM
Last Post: pfeerick
  Android 6.0.1 Image (LCD and HDMI Video Output) Release 20170209 [ver 2.0.1] rookieone 15 25,455 05-05-2017, 01:50 AM
Last Post: Quezbeme
  Editing SD card simplexdan 2 4,407 02-25-2017, 12:09 PM
Last Post: simplexdan
  android image & sd card size problems tomarneson 11 19,564 01-24-2017, 05:31 AM
Last Post: ayufan
  Creating bootable SD card on Mac OS X colinj 13 22,603 01-24-2017, 03:03 AM
Last Post: MarkHaysHarris777
  SD card too small Error loungehound 7 13,839 01-21-2017, 05:37 PM
Last Post: Bluphire
  ethernet does not work with Android 5.1.1 Image Release 20160711 (Known Problem) mathiraj 18 26,349 10-29-2016, 04:31 AM
Last Post: joe

Forum Jump:


Users browsing this thread: 12 Guest(s)