mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
bcm2835-bootloader: create flash/sdcard optimized ext4 filesystem
See http://blogofterje.wordpress.com/2012/01/14/optimizing-fs-on-sd-card/ for reference: - disable journaling - set stride and stripe-width - set block size to 4k
This commit is contained in:
parent
70391fbdf0
commit
c02f928cb2
@ -210,8 +210,10 @@ echo "#########################################################"
|
||||
echo "creating filesystem on $PART1..."
|
||||
mkfs.vfat "$PART1" -I -n System
|
||||
|
||||
# create ext4 partition with optimized settings for running on flash/sd
|
||||
# See http://blogofterje.wordpress.com/2012/01/14/optimizing-fs-on-sd-card/ for reference.
|
||||
echo "creating filesystem on $PART2..."
|
||||
mkfs.ext4 "$PART2" -L Storage
|
||||
mkfs.ext4 -O ^has_journal -E stride=2,stripe-width=1024 -b 4096 "$PART2" -L Storage
|
||||
|
||||
# remount loopback device
|
||||
if [ "$DISK" = "/dev/loop0" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user