Hello
I have an Arm appliance running Debian that has 512MB RAM, 512MB NAND flash memory, and a 4GB SD card:
Code:
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mtdblock0 31:0 0 1M 0 disk
mtdblock1 31:1 0 4M 0 disk
mtdblock2 31:2 0 507M 0 disk
mmcblk0 179:0 0 3.7G 0 disk
mmcblk0p1 179:1 0 214M 0 part /boot
mmcblk0p2 179:2 0 3.3G 0 part /
mmcblk0p3 179:3 0 1K 0 part
mmcblk0p5 179:5 0 214M 0 part [SWAP]
Currently, it appears that the NAND is ignored and the whole thing (system + applications + user files) is installed on the SD card.
Since dmesg shows that the SD card is dying, I'm thinking of
- upgrading the SD card to a 16GB card,
- upgrading to the latest Debian by installing the read-only part of Debian in the NAND,
- installing system/application temporary files either on the SD card or in RAM
- installing user files on the SD card.
What do you think?
In addition, besides "
Managing flash storage with Linux", is there a good tutorial on how to install Debian on a NAND + SD appliance?
Thank you.