SD card recovery
#5
Another thing that some of us are experimenting with is building a card (manually of course, which takes a particular set of linux skills) that has multiple partitions for the various parts of the filesystem (current linux images have two, /boot mmcblk0p1 and the rootfs partition mmcblk0p2).

There should actually be about 10 partitions; and the filesystem should be mounted on them like so:

/boot
/
swap
(extended, part 4)
/usr
/opt
/usr/local
/var
/tmp
/home

Usually when corruption occurs it is going to occur in either /var or /tmp (sometimes /home, but not usually). Almost never does /boot, or / get clobbered. /var and /tmp are easily rebuilt without reloading the entire card. The downside of this is that at this time there is no automation to construct these cards, and you have to know what you are doing.

I am toying with providing a service on-line to Pinesters who might like to purchase SD cards at a nominal rate, through paypal, and I would send out a preformed SD card , fully partitioned , and preloaded with the gnu+linux distro of choice; thinking of providing the dbian, ubuntu, and Gentoo images.

We'll see. In the mean time, dive in and give this a try. Partitioning an SD card is no more difficult than partitioning a disk drive.

PS Some of the partitions can be mounted RO; but, the most important of these is the /home part... it can be mounted noexec and nosuid. This gives an additional layer of security. Also, note that I placed /home at the end. That way whatever space is left on the card (after you assign /usr and /opt for software) can be expanded in user space which is of course your home directories.
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )


Messages In This Thread
SD card recovery - by TeaPack - 08-05-2016, 02:12 PM
RE: SD card recovery - by MarkHaysHarris777 - 08-05-2016, 09:20 PM
RE: SD card recovery - by TeaPack - 08-06-2016, 12:22 PM
RE: SD card recovery - by martinayotte - 08-06-2016, 12:40 PM
RE: SD card recovery - by MarkHaysHarris777 - 08-06-2016, 01:05 PM
RE: SD card recovery - by TeaPack - 08-06-2016, 03:19 PM
RE: SD card recovery - by MarkHaysHarris777 - 08-06-2016, 05:02 PM
RE: SD card recovery - by TeaPack - 08-07-2016, 07:29 AM
RE: SD card recovery - by xalius - 08-07-2016, 07:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PINE A64 SBC: Clone of a functional 32GB SD card doesn't boot burningkrome 3 1,631 05-19-2023, 07:43 AM
Last Post: crocspot
Exclamation Can't boot when SD card inserted kivox 5 8,094 03-15-2020, 06:00 AM
Last Post: kivox
Photo Daughter Card SBC for P64 blue 5 7,119 08-22-2017, 07:51 AM
Last Post: blue
  Pine64 $15 card killed my $120 keyboard exa 22 27,808 01-04-2017, 09:01 AM
Last Post: skenn_ie
  overlapping partitions issue with resize of 8GB image put on 16GB sd card dkryder 10 12,177 10-05-2016, 11:32 AM
Last Post: dkryder
  Can't write to SD card w/ Adapter apple4ever 2 4,322 07-23-2016, 03:16 PM
Last Post: apple4ever
  missing SD card xj-boonie 4 5,676 07-13-2016, 12:22 PM
Last Post: tllim
  128GB Card OS? mesaxi 12 16,758 07-12-2016, 11:59 PM
Last Post: Tarjei85
  Problem making SD card Tam Dl 17 20,505 06-19-2016, 07:48 PM
Last Post: pfeerick
  Missing SD Card Chris_Mc11 0 1,793 04-26-2016, 06:02 PM
Last Post: Chris_Mc11

Forum Jump:


Users browsing this thread: 2 Guest(s)