MyBook Live Duo 21.02.2 / rootfs size

Hi,

I've just installed the version 21.of OpenWrt on MyBook Live Duo.

The new rootfs size (102.4 MB) seems to be too little, I have only 3.4 MB free after installing all the necessary packages.

Filesystem                Size      Used Available Use% Mounted on
/dev/root               102.4M     96.9M      3.4M  97% /

The samba4 package (which is crucial for a NAS) itself occupies almost 25 MB, the whole /usr/lib is 65.5 MB.

As it was an upgrade from 19.07.3, I can still grow the filesystem to the former 256 MB, so it's not a big deal for me. But I think it would problem for anybody installing this version for the first time.

If anybody is interested, I can upload the results of "ls -laSr /usr/lib"
Maybe somebody could advise what can be removed...

Here it is.
lrwxrwxrwx    1 root     root             9 Mar  5 12:45 libz.so -> libz.so.1
lrwxrwxrwx    1 root     root            11 Mar  5 16:06 libcap.so -> libcap.so.2
lrwxrwxrwx    1 root     root            12 Feb 16 21:29 libss.so.2 -> libss.so.2.0
lrwxrwxrwx    1 root     root            13 Feb 16 21:29 libmenu.so.6 -> libmenuw.so.6
lrwxrwxrwx    1 root     root            13 Mar  5 12:45 libjpeg.so -> libjpeg.so.62
lrwxrwxrwx    1 root     root            13 Feb 16 21:29 libform.so.6 -> libformw.so.6
lrwxrwxrwx    1 root     root            13 Feb 16 21:29 libe2p.so.2 -> libe2p.so.2.3
lrwxrwxrwx    1 root     root            14 Mar  5 12:45 libz.so.1 -> libz.so.1.2.11
lrwxrwxrwx    1 root     root            14 Feb 16 21:29 libpanel.so.6 -> libpanelw.so.6
lrwxrwxrwx    1 root     root            14 Mar  5 16:07 libnetapi.so -> libnetapi.so.0
lrwxrwxrwx    1 root     root            14 Mar  5 16:06 libcap.so.2 -> libcap.so.2.43
lrwxrwxrwx    1 root     root            15 Mar  5 16:07 libsmbconf.so -> libsmbconf.so.0
lrwxrwxrwx    1 root     root            15 Mar  5 12:45 libogg.so.0 -> libogg.so.0.8.4
lrwxrwxrwx    1 root     root            15 Mar  5 16:07 libndr.so.1 -> libndr.so.1.0.1
lrwxrwxrwx    1 root     root            15 Mar  5 16:07 libndr.so -> libndr.so.1.0.1
lrwxrwxrwx    1 root     root            15 Feb 16 21:29 libmenuw.so.6 -> libmenuw.so.6.2
lrwxrwxrwx    1 root     root            15 Feb 16 21:29 libmenu.so.6.2 -> libmenuw.so.6.2
lrwxrwxrwx    1 root     root            15 Mar  5 12:46 libgio-2.0.so -> libgio-2.0.so.0
lrwxrwxrwx    1 root     root            15 Feb 16 21:29 libformw.so.6 -> libformw.so.6.2
lrwxrwxrwx    1 root     root            15 Feb 16 21:29 libform.so.6.2 -> libformw.so.6.2
lrwxrwxrwx    1 root     root            15 Mar  5 12:46 libffi.so.7 -> libffi.so.7.1.0
lrwxrwxrwx    1 root     root            15 Mar  5 12:45 libbz2.so.1.0 -> libbz2.so.1.0.8
lrwxrwxrwx    1 root     root            16 Mar  5 16:00 libwrap.so.0 -> libwrap.so.0.7.6
lrwxrwxrwx    1 root     root            16 Feb 16 21:29 libuuid.so.1 -> libuuid.so.1.3.0
lrwxrwxrwx    1 root     root            16 Mar  5 12:46 libssh2.so.1 -> libssh2.so.1.0.1
lrwxrwxrwx    1 root     root            16 Mar  5 12:46 libpopt.so.0 -> libpopt.so.0.0.0
lrwxrwxrwx    1 root     root            16 Feb 16 21:29 libpanelw.so.6 -> libpanelw.so.6.2
lrwxrwxrwx    1 root     root            16 Feb 16 21:29 libpanel.so.6.2 -> libpanelw.so.6.2
lrwxrwxrwx    1 root     root            16 Mar  5 16:06 libpam.so.0 -> libpam.so.0.85.1
lrwxrwxrwx    1 root     root            16 Mar  5 16:06 libpam.so -> libpam.so.0.85.1
lrwxrwxrwx    1 root     root            16 Mar  5 16:07 libnss_wins.so -> libnss_wins.so.2
lrwxrwxrwx    1 root     root            16 Mar  5 16:06 libnettle.so.8 -> libnettle.so.8.0
lrwxrwxrwx    1 root     root            16 Feb 16 21:29 libncurses.so.6 -> libncursesw.so.6
lrwxrwxrwx    1 root     root            16 Mar  5 16:06 libgmp.so.10 -> libgmp.so.10.4.1
lrwxrwxrwx    1 root     root            16 Mar  5 12:46 libglib-2.0.so -> libglib-2.0.so.0
lrwxrwxrwx    1 root     root            16 Feb 16 21:29 libf2fs.so.8 -> libf2fs.so.8.0.0
lrwxrwxrwx    1 root     root            16 Feb 16 21:29 libext2fs.so.2 -> libext2fs.so.2.4
lrwxrwxrwx    1 root     root            16 Mar  5 12:45 libcurl.so.4 -> libcurl.so.4.7.0
lrwxrwxrwx    1 root     root            16 Mar  5 12:45 libFLAC.so.8 -> libFLAC.so.8.3.0
lrwxrwxrwx    1 root     root            16 Mar  5 12:45 libFLAC.so -> libFLAC.so.8.3.0
lrwxrwxrwx    1 root     root            17 Mar  5 16:06 liburing.so.1 -> liburing.so.1.0.7
lrwxrwxrwx    1 root     root            17 Mar  5 16:06 liburing.so -> liburing.so.1.0.7
lrwxrwxrwx    1 root     root            17 Mar  5 12:45 libtirpc.so.3 -> libtirpc.so.3.0.0
lrwxrwxrwx    1 root     root            17 Mar  5 12:45 libtirpc.so -> libtirpc.so.3.0.0
lrwxrwxrwx    1 root     root            17 Mar  5 16:06 libtasn1.so.6 -> libtasn1.so.6.6.0
lrwxrwxrwx    1 root     root            17 Mar  5 16:07 libsamdb.so.0 -> libsamdb.so.0.0.1
lrwxrwxrwx    1 root     root            17 Mar  5 16:07 libsamdb.so -> libsamdb.so.0.0.1
lrwxrwxrwx    1 root     root            17 Mar  5 16:06 libpamc.so.0 -> libpamc.so.0.82.1
lrwxrwxrwx    1 root     root            17 Mar  5 16:06 libpamc.so -> libpamc.so.0.82.1
lrwxrwxrwx    1 root     root            17 Feb 16 21:29 libmount.so.1 -> libmount.so.1.1.0
lrwxrwxrwx    1 root     root            17 Mar  5 12:45 libjpeg.so.62 -> libjpeg.so.62.2.0
lrwxrwxrwx    1 root     root            17 Feb 16 21:29 libip6tc.so.2 -> libip6tc.so.2.0.0
lrwxrwxrwx    1 root     root            17 Feb 16 21:29 libip4tc.so.2 -> libip4tc.so.2.0.0
lrwxrwxrwx    1 root     root            17 Mar  5 16:06 libhogweed.so.6 -> libhogweed.so.6.0
lrwxrwxrwx    1 root     root            17 Mar  5 16:06 libhistory.so.8 -> libhistory.so.8.1
lrwxrwxrwx    1 root     root            17 Feb 16 21:29 libfdisk.so.1 -> libfdisk.so.1.1.0
lrwxrwxrwx    1 root     root            17 Mar  5 12:45 libexif.so.12 -> libexif.so.12.3.4
lrwxrwxrwx    1 root     root            17 Feb 16 21:29 libcom_err.so.0 -> libcom_err.so.0.0
lrwxrwxrwx    1 root     root            17 Feb 16 21:29 libblkid.so.1 -> libblkid.so.1.1.0
lrwxrwxrwx    1 root     root            18 Mar  5 16:06 libreadline.so.8 -> libreadline.so.8.1
lrwxrwxrwx    1 root     root            18 Feb 16 21:29 libncursesw.so.6 -> libncursesw.so.6.2
lrwxrwxrwx    1 root     root            18 Feb 16 21:29 libncurses.so.6.2 -> libncursesw.so.6.2
lrwxrwxrwx    1 root     root            18 Feb 16 21:29 liblucihttp.so.0 -> liblucihttp.so.0.1
lrwxrwxrwx    1 root     root            18 Feb 16 21:29 libjson-c.so.5 -> libjson-c.so.5.1.0
lrwxrwxrwx    1 root     root            18 Mar  5 12:45 libid3tag.so.0 -> libid3tag.so.0.3.0
lrwxrwxrwx    1 root     root            18 Mar  5 16:06 libexpat.so.1 -> libexpat.so.1.6.12
lrwxrwxrwx    1 root     root            18 Mar  5 16:07 libdcerpc.so.0 -> libdcerpc.so.0.0.1
lrwxrwxrwx    1 root     root            18 Mar  5 16:07 libdcerpc.so -> libdcerpc.so.0.0.1
lrwxrwxrwx    1 root     root            18 Mar  5 16:06 libdaemon.so.0 -> libdaemon.so.0.5.0
lrwxrwxrwx    1 root     root            19 Mar  5 16:07 libwbclient.so.0 -> libwbclient.so.0.15
lrwxrwxrwx    1 root     root            19 Mar  5 16:07 libwbclient.so -> libwbclient.so.0.15
lrwxrwxrwx    1 root     root            19 Mar  5 12:45 libstdc++.so.6 -> libstdc++.so.6.0.25
lrwxrwxrwx    1 root     root            19 Mar  5 12:45 libsqlite3.so.0 -> libsqlite3.so.0.8.6
lrwxrwxrwx    1 root     root            19 Mar  5 16:07 libnss_winbind.so -> libnss_winbind.so.2
lrwxrwxrwx    1 root     root            19 Mar  5 16:07 libndr-nbt.so.0 -> libndr-nbt.so.0.0.1
lrwxrwxrwx    1 root     root            19 Mar  5 16:07 libndr-nbt.so -> libndr-nbt.so.0.0.1
lrwxrwxrwx    1 root     root            19 Mar  5 16:00 libkeyutils.so.1 -> libkeyutils.so.1.10
lrwxrwxrwx    1 root     root            19 Mar  5 12:46 libgthread-2.0.so -> libgthread-2.0.so.0
lrwxrwxrwx    1 root     root            19 Mar  5 12:46 libgobject-2.0.so -> libgobject-2.0.so.0
lrwxrwxrwx    1 root     root            19 Mar  5 12:46 libgmodule-2.0.so -> libgmodule-2.0.so.0
lrwxrwxrwx    1 root     root            19 Mar  5 16:06 libdbus-1.so.3 -> libdbus-1.so.3.26.1
lrwxrwxrwx    1 root     root            19 Mar  5 12:46 libattr.so.1 -> libattr.so.1.1.2448
lrwxrwxrwx    1 root     root            19 Mar  5 12:46 libattr.so -> libattr.so.1.1.2448
lrwxrwxrwx    1 root     root            20 Feb 16 21:29 libxtables.so.12 -> libxtables.so.12.4.0
lrwxrwxrwx    1 root     root            20 Mar  5 12:46 libuClibc++.so.0 -> libuClibc++-0.2.5.so
lrwxrwxrwx    1 root     root            20 Mar  5 16:07 libsamba-errors.so -> libsamba-errors.so.1
lrwxrwxrwx    1 root     root            20 Mar  5 16:06 libgnutls.so.30 -> libgnutls.so.30.29.1
lrwxrwxrwx    1 root     root            21 Mar  5 16:07 libsmbclient.so.0 -> libsmbclient.so.0.7.0
lrwxrwxrwx    1 root     root            21 Mar  5 16:07 libsmbclient.so -> libsmbclient.so.0.7.0
lrwxrwxrwx    1 root     root            21 Feb 16 21:29 libsmartcols.so.1 -> libsmartcols.so.1.1.0
lrwxrwxrwx    1 root     root            21 Mar  5 16:06 libpam_misc.so.0 -> libpam_misc.so.0.82.1
lrwxrwxrwx    1 root     root            21 Mar  5 16:06 libpam_misc.so -> libpam_misc.so.0.82.1
lrwxrwxrwx    1 root     root            21 Mar  5 12:45 libnghttp2.so.14 -> libnghttp2.so.14.20.1
lrwxrwxrwx    1 root     root            21 Mar  5 12:45 libnatpmp.so.1 -> libnatpmp.so.20150609
lrwxrwxrwx    1 root     root            21 Mar  5 12:45 libminiupnpc.so.17 -> libminiupnpc.so.2.2.1
lrwxrwxrwx    1 root     root            21 Mar  5 12:45 libmbedtls.so.12 -> libmbedtls.so.2.16.12
lrwxrwxrwx    1 root     root            21 Mar  5 12:45 libevent-2.1.so.7 -> libevent-2.1.so.7.0.1
lrwxrwxrwx    1 root     root            22 Mar  5 16:07 libsamba-util.so.0 -> libsamba-util.so.0.0.1
lrwxrwxrwx    1 root     root            22 Mar  5 16:07 libsamba-util.so -> libsamba-util.so.0.0.1
lrwxrwxrwx    1 root     root            22 Mar  5 12:45 libmbedx509.so.0 -> libmbedx509.so.2.16.12
lrwxrwxrwx    1 root     root            22 Mar  5 12:46 libgio-2.0.so.0 -> libgio-2.0.so.0.6600.4
lrwxrwxrwx    1 root     root            22 Mar  5 12:45 libavutil.so.56 -> libavutil.so.56.51.100
lrwxrwxrwx    1 root     root            22 Mar  5 16:06 libavahi-core.so.7 -> libavahi-core.so.7.1.0
lrwxrwxrwx    1 root     root            23 Mar  5 16:07 libndr-krb5pac.so.0 -> libndr-krb5pac.so.0.0.1
lrwxrwxrwx    1 root     root            23 Mar  5 16:07 libndr-krb5pac.so -> libndr-krb5pac.so.0.0.1
lrwxrwxrwx    1 root     root            23 Mar  5 12:46 libglib-2.0.so.0 -> libglib-2.0.so.0.6600.4
lrwxrwxrwx    1 root     root            23 Mar  5 16:07 libdcerpc-samr.so.0 -> libdcerpc-samr.so.0.0.1
lrwxrwxrwx    1 root     root            23 Mar  5 16:07 libdcerpc-samr.so -> libdcerpc-samr.so.0.0.1
lrwxrwxrwx    1 root     root            23 Mar  5 12:45 libavcodec.so.58 -> libavcodec.so.58.91.100
lrwxrwxrwx    1 root     root            24 Mar  5 16:07 libndr-standard.so.0 -> libndr-standard.so.0.0.1
lrwxrwxrwx    1 root     root            24 Mar  5 16:07 libndr-standard.so -> libndr-standard.so.0.0.1
lrwxrwxrwx    1 root     root            24 Mar  5 12:45 libmbedcrypto.so.3 -> libmbedcrypto.so.2.16.12
lrwxrwxrwx    1 root     root            24 Mar  5 12:45 libavformat.so.58 -> libavformat.so.58.45.100
lrwxrwxrwx    1 root     root            24 Mar  5 16:06 libavahi-common.so.3 -> libavahi-common.so.3.5.4
lrwxrwxrwx    1 root     root            24 Mar  5 16:06 libavahi-client.so.3 -> libavahi-client.so.3.2.9
lrwxrwxrwx    1 root     root            25 Mar  5 16:07 libsamba-passdb.so.0 -> libsamba-passdb.so.0.28.0
lrwxrwxrwx    1 root     root            25 Mar  5 16:07 libsamba-passdb.so -> libsamba-passdb.so.0.28.0
lrwxrwxrwx    1 root     root            26 Mar  5 12:46 libgthread-2.0.so.0 -> libgthread-2.0.so.0.6600.4
lrwxrwxrwx    1 root     root            26 Mar  5 12:46 libgobject-2.0.so.0 -> libgobject-2.0.so.0.6600.4
lrwxrwxrwx    1 root     root            26 Mar  5 12:46 libgmodule-2.0.so.0 -> libgmodule-2.0.so.0.6600.4
lrwxrwxrwx    1 root     root            26 Mar  5 16:07 libdcerpc-binding.so.0 -> libdcerpc-binding.so.0.0.1
lrwxrwxrwx    1 root     root            26 Mar  5 16:07 libdcerpc-binding.so -> libdcerpc-binding.so.0.0.1
lrwxrwxrwx    1 root     root            28 Mar  5 16:07 libsamba-hostconfig.so.0 -> libsamba-hostconfig.so.0.0.1
lrwxrwxrwx    1 root     root            28 Mar  5 16:07 libsamba-hostconfig.so -> libsamba-hostconfig.so.0.0.1
lrwxrwxrwx    1 root     root            29 Mar  5 16:07 libsamba-credentials.so.1 -> libsamba-credentials.so.1.0.0
lrwxrwxrwx    1 root     root            29 Mar  5 16:07 libsamba-credentials.so -> libsamba-credentials.so.1.0.0
lrwxrwxrwx    1 root     root            30 Mar  5 16:07 libdcerpc-server-core.so.0 -> libdcerpc-server-core.so.0.0.1
lrwxrwxrwx    1 root     root            30 Mar  5 16:07 libdcerpc-server-core.so -> libdcerpc-server-core.so.0.0.1
-rw-r--r--    1 root     root           542 Feb 16 21:29 os-release
-rw-r--r--    1 root     root          2555 Dec 22  2020 libstdc++.so.6.0.25-gdb.py
drwxr-xr-x    3 root     root          4096 Mar  5 16:06 security
drwxr-xr-x    2 root     root          4096 Mar  6 00:09 rpcd
drwxr-xr-x    4 root     root          4096 Feb 16 21:29 opkg
drwxr-xr-x    3 root     root          4096 Mar  5 12:46 mc
drwxr-xr-x    4 root     root          4096 Feb 21 23:43 lua
drwxr-xr-x    2 root     root          4096 Jan  3 22:09 engines-1.1
drwxr-xr-x    7 root     root          4096 Feb 26 09:27 ..
drwxr-xr-x    5 root     root          8192 Mar  5 16:07 samba
drwxr-xr-x    9 root     root          8192 Mar  6 00:10 .
-rwxr-xr-x    1 root     root         65536 Feb 16 21:29 uhttpd_ubus.so
-rw-r--r--    1 root     root         65536 Jul 12  2020 libvorbisfile.so.3.3.8
-rwxr-xr-x    1 root     root         65536 Jul 12  2020 liburing.so.1.0.7
-rwxr-xr-x    1 root     root         65536 Feb 16 21:29 libpanelw.so.6.2
-rwxr-xr-x    1 root     root         65536 Nov 30  2020 libpamc.so.0.82.1
-rwxr-xr-x    1 root     root         65536 Nov 30  2020 libpam_misc.so.0.82.1
-rwxr-xr-x    1 root     root         65536 Nov 30  2020 libpam.so.0.85.1
-rwxr-xr-x    1 root     root         65536 Sep 18  2019 libogg.so.0.8.4
-rw-r--r--    1 root     root         65536 Mar 16  2020 libnatpmp.so.20150609
-rw-r--r--    1 root     root         65536 Feb 24  2021 libminiupnpc.so.2.2.1
-rwxr-xr-x    1 root     root         65536 Feb 12 19:42 libmbedx509.so.2.16.12
-rw-r--r--    1 root     root         65536 Feb 16 21:29 liblucihttp.so.0.1
-rwxr-xr-x    1 root     root         65536 Dec 14  2020 libkeyutils.so.1.10
-rwxr-xr-x    1 root     root         65536 Jan  8  2021 libgthread-2.0.so.0.6600.4
-rwxr-xr-x    1 root     root         65536 Feb 16 21:29 libcom_err.so.0.0
-rwxr-xr-x    1 root     root         65536 Feb 24  2021 libavahi-common.so.3.5.4
-rwxr-xr-x    1 root     root         65536 Feb 24  2021 libattr.so.1.1.2448
-rwxr-xr-x    1 root     root         65544 Feb 16 21:29 libxtables.so.12.4.0
-rwxr-xr-x    1 root     root         65544 Feb 16 21:29 libuuid.so.1.3.0
-rw-r--r--    1 root     root         65548 Feb 16 21:29 libuclient.so
-rw-r--r--    1 root     root         65548 Feb 24  2021 libcap.so.2.43
-rwxr-xr-x    1 root     root         65552 Feb 16 21:29 libss.so.2.0
-rwxr-xr-x    1 root     root         65556 Jan  8  2021 libgmodule-2.0.so.0.6600.4
-rwxr-xr-x    1 root     root         65560 Feb 14  2021 libhistory.so.8.1
-rwxr-xr-x    1 root     root         65560 Feb 24  2021 libffi.so.7.1.0
-rwxr-xr-x    1 root     root         65564 Feb 24  2021 libdaemon.so.0.5.0
-rwxr-xr-x    1 root     root         65588 Jun  2  2020 dbus-daemon-launch-helper
-rwxr-xr-x    1 root     root         65652 Feb 24  2021 libavahi-client.so.3.2.9
-rwxr-xr-x    1 root     root         65708 Feb 16 21:29 libmenuw.so.6.2
-rwxr-xr-x    1 root     root         65800 Feb 16 21:29 libip6tc.so.2.0.0
-rwxr-xr-x    1 root     root         65800 Feb 16 21:29 libip4tc.so.2.0.0
-rwxr-xr-x    1 root     root         65840 Feb 26  2019 libpopt.so.0.0.0
-rw-r--r--    1 root     root         65879 Feb 16 21:29 libnl-tiny.so
-rwxr-xr-x    1 root     root         66296 Feb 16 21:29 libiptext6.so
-rwxr-xr-x    1 root     root         66296 Feb 16 21:29 libiptext4.so
-rwxr-xr-x    1 root     root         66519 Dec 31  2020 libwrap.so.0.7.6
-rwxr-xr-x    1 root     root         66586 Feb 16 21:29 libe2p.so.2.3
-rwxr-xr-x    1 root     root         68612 Oct 19  2019 libbz2.so.1.0.8
-rwxr-xr-x    1 root     root         69132 Sep  8 16:29 libdcerpc-samr.so.0.0.1
-rwxr-xr-x    1 root     root         71456 Sep  8 16:29 libnss_wins.so.2
-rwxr-xr-x    1 root     root         72760 Sep  8 16:29 libnss_winbind.so.2
-rwxr-xr-x    1 root     root         80932 Sep  8 16:29 libwbclient.so.0.15
-rwxr-xr-x    1 root     root         84092 Sep  8 16:29 libndr-krb5pac.so.0.0.1
-rw-r--r--    1 root     root        131072 Feb 25  2021 libz.so.1.2.11
-rw-r--r--    1 root     root        131072 Feb 24 02:00 libexpat.so.1.6.12
-rwxr-xr-x    1 root     root        131080 May 25  2020 libtasn1.so.6.6.0
-rwxr-xr-x    1 root     root        131083 Oct  7  2019 libid3tag.so.0.3.0
-rwxr-xr-x    1 root     root        131085 Feb 16 21:29 libf2fs.so.8.0.0
-rw-r--r--    1 root     root        131094 Feb 16 21:29 libjson-c.so.5.1.0
-rwxr-xr-x    1 root     root        131132 Feb 12 19:42 libmbedtls.so.2.16.12
-rwxr-xr-x    1 root     root        131576 Feb 16 21:29 libformw.so.6.2
-rwxr-xr-x    1 root     root        132354 Feb 16 21:29 libiwinfo.so.20210430
-rwxr-xr-x    1 root     root        134220 Feb 16 21:29 libiptext.so
-rwxr-xr-x    1 root     root        153452 Sep  8 16:29 libdcerpc-server-core.so.0.0.1
-rwxr-xr-x    1 root     root        158128 Sep  8 16:29 libsamdb.so.0.0.1
-rwxr-xr-x    1 root     root        158396 Sep  8 16:29 libsamba-credentials.so.1.0.0
-rwxr-xr-x    1 root     root        159704 Sep  8 16:29 libndr.so.1.0.1
-rw-r--r--    1 root     root        196608 Jul 12  2020 libvorbis.so.0.4.9
-rw-r--r--    1 root     root        196608 Feb 16 21:29 liblua.so.5.1.5
-rwxr-xr-x    1 root     root        196608 Feb 24  2021 libavahi-core.so.7.1.0
-rw-r--r--    1 root     root        196652 Feb  7  2021 libnghttp2.so.14.20.1
-rwxr-xr-x    1 root     root        196696 Jul 10  2021 libtirpc.so.3.0.0
-rwxr-xr-x    1 root     root        234104 Sep  8 16:29 libndr-nbt.so.0.0.1
-rwxr-xr-x    1 root     root        236904 Sep  8 16:29 libsmbclient.so.0.7.0
-rwxr-xr-x    1 root     root        238528 Sep  8 16:29 libdcerpc-binding.so.0.0.1
-rwxr-xr-x    1 root     root        257988 Sep  8 16:29 libsamba-hostconfig.so.0.0.1
-rw-r--r--    1 root     root        262144 May 11  2020 libssh2.so.1.0.1
-rwxr-xr-x    1 root     root        262144 Feb 24  2021 libexif.so.12.3.4
-rwxr-xr-x    1 root     root        262172 Feb 16 21:29 libsmartcols.so.1.1.0
-rwxr-xr-x    1 root     root        262464 Feb 24  2021 libFLAC.so.8.3.0
-rwxr-xr-x    1 root     root        262528 Jul  8  2020 libuClibc++-0.2.5.so
-rwxr-xr-x    1 root     root        316740 Sep  8 16:29 libdcerpc.so.0.0.1
-rw-r--r--    1 root     root        327680 Dec 22  2020 libnettle.so.8.0
-rw-r--r--    1 root     root        327680 Dec 22  2020 libhogweed.so.6.0
-rwxr-xr-x    1 root     root        327696 Feb 12 19:42 libmbedcrypto.so.2.16.12
-rw-r--r--    1 root     root        327892 Feb 14  2021 libevent-2.1.so.7.0.1
-rwxr-xr-x    1 root     root        328526 Jan  8  2021 libgobject-2.0.so.0.6600.4
-rwxr-xr-x    1 root     root        338480 Feb 14  2021 libreadline.so.8.1
-rwxr-xr-x    1 root     root        389248 Sep  8 16:29 libsamba-passdb.so.0.28.0
-rw-r--r--    1 root     root        393224 Nov 24  2020 libjpeg.so.62.2.0
-rwxr-xr-x    1 root     root        393316 Jun  2  2020 libdbus-1.so.3.26.1
-rwxr-xr-x    1 root     root        393516 Feb 16 21:29 libmount.so.1.1.0
-rwxr-xr-x    1 root     root        393700 Feb 16 21:29 libblkid.so.1.1.0
-rwxr-xr-x    1 root     root        393960 Feb 16 21:29 libncursesw.so.6.2
-rwxr-xr-x    1 root     root        398184 Nov 29 10:31 libcurl.so.4.7.0
-r-xr-xr-x    1 root     root        449852 Nov 15 20:59 libdevmapper.so.1.02
-rwxr-xr-x    1 root     root        459252 Feb  5 10:23 libavutil.so.56.51.100
-rwxr-xr-x    1 root     root        459572 Feb 16 21:29 libext2fs.so.2.4
-rwxr-xr-x    1 root     root        464052 Feb 16 21:29 libfdisk.so.1.1.0
-rwxr-xr-x    1 root     root        524368 Feb 14  2021 libgmp.so.10.4.1
-rwxr-xr-x    1 root     root        525392 Feb  5 10:23 libavformat.so.58.45.100
-rw-r--r--    1 root     root        532092 Jan  3 22:09 libssl.so.1.1
-rwxr-xr-x    1 root     root        574988 Sep  8 16:29 libsamba-util.so.0.0.1
-rw-r--r--    1 root     root        589824 Jul 12  2020 libvorbisenc.so.2.0.12
-rwxr-xr-x    1 root     root        603224 Sep  8 16:29 libnetapi.so.0
-rwxr-xr-x    1 root     root        855835 Feb  5 10:23 libavcodec.so.58.91.100
-rwxr-xr-x    1 root     root        859000 Sep  8 16:29 libsmbconf.so.0
-rwxr-xr-x    1 root     root       1054044 Sep  8 16:29 libsamba-errors.so.1
-rwxr-xr-x    1 root     root       1055524 Dec 22  2020 libstdc++.so.6.0.25
-rwxr-xr-x    1 root     root       1119938 Aug 25  2020 libsqlite3.so.0.8.6
-rwxr-xr-x    1 root     root       1245731 Feb 22 20:29 libwolfssl.so.5.1.1.99a5b54a
-rwxr-xr-x    1 root     root       1246252 Jan  8  2021 libglib-2.0.so.0.6600.4
-rwxr-xr-x    1 root     root       1704704 Jan  8  2021 libgio-2.0.so.0.6600.4
-rwxr-xr-x    1 root     root       2033080 Dec  7 22:58 libgnutls.so.30.29.1
-rw-r--r--    1 root     root       2231232 Jan  3 22:09 libcrypto.so.1.1
-rwxr-xr-x    1 root     root       3935504 Sep  8 16:29 libndr-standard.so.0.0.1

Regards,
Tice

you could probably replace samba4 with ksmbd

Thank you for the advice!

However, according to the statistics here its network performance is not yet up to the full samba implementation. :frowning:

Another statistics here shows a completely different picture. I wonder which one is true...

tbh, I haven't been able to get full speed using samba4 at all ...

they've done something between v3 and 4, and the performance is a lot worse, I think it's related to the parallelism/multi threading in your 2nd link.
With that said, your CPU will probably become a bottle neck anyway.

not using openwrt on the samba4 host though.

It seems that we have several options to provide smb/samba, but I think the real problem is that the root partition has been reduced to ~100MB, while this machine has several GB's/TB's of storage.

So my question is (as the title suggest): is there any reason for the root partition being this small?

it's usually 100MB, it applies (AFAIK) for all platforms with "flexible" storage, x86, RPi, whatever that runs from a memcard, etc ...

you can always resize it, though.

Yes, sure... I can resize it, but the next sysupgrade will overwrite the partition table again. :frowning:
And for a NAS with some raid drives it's not that funny to rebuild them so often. Not to mention the possibility of errors...

you can always pull out the drive, put the newest FS in (not the whole image), before putting it back in, not pretty, but should work, and should be safe for your data.

That's a good idea, but I don't have any device I can connect the HDD to. :frowning:
I've sold my last desktop machine, and my laptop has no SATA connector, only NVMe. I have a USB-SATA converter, but that cannot provide enough power to a 3.5 inch drive.
I had to be tricky to resize the partition also: change the two drives, boot from the other one, resize the not active partition, and then change them back.

So, I have to do the upgrade (and anything else) in-place... :frowning:

You could also roll your own image. Not only can you then include samba and other packages (and save yourself having to reinstall them after an upgrade) and some default config files, you can also increase the rootfs size as you see fit.

This can actually be done without a full-blown build system and compiling the whole image from scratch, it is also possible just with the "simplified" image builder. Once you downloaded and ungzipped the image builder, edit the .CONFIG file and change CONFIG_TARGET_ROOTFS_PARTSIZE, which by default is now set to 104, to whatever size in MiB you prefer for the rootfs.

I was afraid this would be the next answer... :confused:
I'm not yet prepared to jump into the build process, but it seems to be necessary.

Anyway, my next move will be to check if ksmbd is a feasible alternative to samba.
Do you have any advice how to remove all the samba related libraries, dependencies and settings and all (except by reflashing the whole image again...)?

this actually isn't bad, you could run two different openwrt versions or configurations, and switch the boot device, when going between them.

instead of writing the combined image, write the rootfs + copy kernel, to keep the old partition layout.

Actually, it's not that simple. I have two raid devices, one mirror (md0 / raid1) and another stripe set (md1 / raid0). This latter always complains when I swap the disks, so before I do that, I have to disable raid completely (/etc/config/fstab, /etc/config/mdadm). And it should be done parallel on both root partitions.

lsblk -p
NAME         MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
/dev/sda       8:0    0  3.6T  0 disk  
├─/dev/sda1    8:1    0    8M  0 part  /boot
├─/dev/sda2    8:2    0  256M  0 part  /
├─/dev/sda3    8:3    0  512M  0 part  [SWAP]
├─/dev/sda4    8:4    0    1T  0 part  
│ └─/dev/md0   9:0    0 1024G  0 raid1 /mnt/data
└─/dev/sda5    8:5    0  2.6T  0 part  
  └─/dev/md1   9:1    0  5.3T  0 raid0 /mnt/data/Media
/dev/sdb       8:16   0  3.6T  0 disk  
├─/dev/sdb1    8:17   0    8M  0 part  
├─/dev/sdb2    8:18   0  256M  0 part  
├─/dev/sdb3    8:19   0  512M  0 part  [SWAP]
├─/dev/sdb4    8:20   0    1T  0 part  
│ └─/dev/md0   9:0    0 1024G  0 raid1 /mnt/data
└─/dev/sdb5    8:21   0  2.6T  0 part  
  └─/dev/md1   9:1    0  5.3T  0 raid0 /mnt/data/Media

So, it should be planned and executed very carefully. I plan to create an small, basic openwrt disk to be used in case of partition and filesystem manipulation on the real "production" disks. It would be nice if the system could be able to boot from USB, but AFAIK it's not possible:
MBLD boot from USB

instead of writing the combined image, write the rootfs + copy kernel, to keep the old partition layout.

I've tried that a few times, it breaks dependencies of the installed apps, so I have start installing everything over again. :frowning:

and it should.

you shouldn't copy it over on fs level, but dd the whole rootfs image, and resize it afterwards, to fill the partition it was written to.

Oh, I see... Sorry, I misunderstood...
Seeing all these obstacles it seems to be easier to stop upgrading the system regularly (like I did between 19.07.3 and 21.02.2), unless there is some serious security issue. Or, doing the upgrades on another disk, and copy the partitions over. I'm kind of reluctant losing all my data by openwrt upgrades.

I assume you're not using it as a router, internet exposed devices are more vulnerable.

That's why I was specifically mentioning that it can be done with the "simpler" Image Builder. While I can do it, I am also not a big fan of compiling my own images from scratch. If it can be done with the Image Builder alone, I usually choose to go down that much simpler route. It is easier to setup, gives much more immediate results, and one can still use pre-compiled kernel modules from the official repository.

Indeed, like @frollic says it's also not a priority on devices that are not facing the big bad internet on one cheek.

What I personally do: To both keep track on my customisations and for convenience, I have a small shell script that I keep one level above the Image Builder directory that keeps my build parameters. Nota bene, this was written for 19.07 and as such still references samba36 (I haven't actually switched to 21.02 with my MBLs yet) and contains packages that I see fit on my MBL, so take this as a template not as a guide:

#!/bin/sh

# Package inclusions/exclusions
PACKAGES=""

# LuCI-SSL
PACKAGES="$PACKAGES luci-ssl"
# Remove PPP
PACKAGES="$PACKAGES -ppp -ppp-mod-pppoe -luci-proto-ppp"
# Remove IPv6
PACKAGES="$PACKAGES -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables -luci-proto-ipv6"
# Remove dnsmasq and odhcpd (will never be a DNS server)
PACKAGES="$PACKAGES -dnsmasq -odhcpd -odhcpd-ipv6only"
# Remove firewall and related packages

# Samba packages and LuCI interface
PACKAGES="$PACKAGES luci-app-samba samba36-server"
# disk related
PACKAGES="$PACKAGES block-mount fdisk gdisk e2fsprogs hdparm smartmontools"
# NTFS (to copy legacy drives)
PACKAGES="$PACKAGES ntfs-3g"
# rsync/rsyncd
PACKAGES="$PACKAGES rsync rsyncd"
# Editors and file managers
PACKAGES="$PACKAGES mc nano"
# Screen
PACKAGES="$PACKAGES screen"
# Other tools
PACKAGES="$PACKAGES htop"

make image PROFILE="wd_mybooklive-duo" PACKAGES="$PACKAGES" FILES="../files/" CONFIG_IPV6="n"

My files directory, also outside of the Image Builder directory, then contains some basic configuration (/etc/config/network with the interface switched to DHCP for example) and a few custom shell scripts on my MBL (for example I rewrote the original MBL firmware's monitorio.sh to have my disks sleep). But that's all entirely up to you and your specific needs.

I can then just download the current Image Builder gzip, ungzip into a directory, and from that directory call my shell script to quickly build a current image. I then sysupgrade using the resulting image and have my MBL going again, no reinstalling of packages and recreating config files needed.

2 Likes

A big THANK YOU, takimata!
This description is really extremely helpful.
I've already started to put something similar together, but your post makes it so much easier.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.