| Both sides previous revision Previous revision Next revision | Previous revision |
| lwc:hardware:wear_leveling [2025/11/14 06:54] – John Harrison | lwc:hardware:wear_leveling [2025/11/14 10:58] (current) – John Harrison |
|---|
| </code> | </code> |
| === lighten ext4 journaling === | === lighten ext4 journaling === |
| //not sure ''data=writeback'' especially is a good idea and will survive ungraceful powerdown ongoingly without then mounting as RO on reboot at some point due to corrupted system// | //not sure ''data=writeback'' especially is a good idea and will survive ungraceful powerdown ongoingly without then mounting as RO on reboot at some point due to corrupted system. I'm thinking though even though data corruption is more likely, it will not flag a disk corruption. Instead some file data may be lost.// |
| * in ''/etc/fstab'': ''/dev/mmcblk1p1 / ext4 noatime,data=writeback,barrier=1,commit=60,errors=remount-ro 0 1'' | * in ''/etc/fstab'': ''/dev/mmcblk1p1 / ext4 noatime,data=writeback,barrier=1,commit=60,errors=remount-ro 0 1'' |
| * ''noatime'': don't update access time every time you read a file | * ''noatime'': don't update access time every time you read a file |
| * ''barrier=1'': maintain safety | * ''barrier=1'': maintain safety |
| * data=writeback + sudden power loss = some recently changed files may become garbage inside (but no FS corruption) | * data=writeback + sudden power loss = some recently changed files may become garbage inside (but no FS corruption) |
| * add/change the ''cmdline'' in ''uEnv.txt'' (otherwise ''data=writeback'' will cause kernel to remount partition as Read Only: | * add/change the ''cmdline'' in ''uEnv.txt'' (otherwise ''data=writeback'' will cause kernel to remount partition as Read Only): |
| * ''cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 root=/dev/mmcblk1p1 rw rootfstype=ext4 rootwait'' | * ''cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 root=/dev/mmcblk1p1 rw rootfstype=ext4 rootwait'' |
| |