Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Question about the default ext4 settings in lib/debootstrap.sh

Featured Replies

Hey guys.

 

 

1. This piece

    if [[ $(lsb_release -sc) =~ bionic|buster|cosmic|disco ]]; then
        mkopts[ext4]='-q -m 2 -O ^64bit,^metadata_csum'
    elif [[ $(lsb_release -sc) == xenial ]]; then
        mkopts[ext4]='-q -m 2'
    fi

Why disable metadata_csum?

Why disable 64bit overall, not just for pure 32 bit boards?

 

Edit on Mar 9 2020

Metadata checksums is a new feature of ext4 since e2fsprogs 1.44 (xenial has 1.42). It makes the fs more robust to data corruption but it requires some extra cpu power to calculate the checksums. It is not a problem for generic cpus with SSE4.2 (= hardware accelerated crc32):  intel since core gen1, amd since bulldozer.

Arm world is not that simple. So we just disable the checksums in distros which have them on by default in /etc/mke2fs.conf to reduce cpu usage.

The 64bit option is only required for the checksums (since armbian is not something for use with really huge storages) hence we disable it as well.

 

 

2. This piece 

[[ $ROOTFS_TYPE == ext4 ]] && tune2fs -o journal_data_writeback $rootdevice > /dev/null

Why enable journal_data_writeback feature? What are the pros and cons?

 

Edit on Mar 9 2020

"Data mode" section in https://www.kernel.org/doc/Documentation/filesystems/ext4.txt

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.