What's the recommanded flag for fstab to mount ext4 partition or NTFS partition?

I see many people flag through fstab. And uses different flags. If I mount through KDE partition manager. It only mount with auto flag.
So, I need suggestion for what is the best flag to mount ext4 or ntfs partition through fstab? Please provide some example.

You can mount ext4 partitions with -t ext4 and similar ntfs with -t ntfs-3g.

Here is my fstab:

UUID=de933c27-2061-4dc0-944a-a7bd71a86d57 /boot ext4 defaults,noatime 0 2
UUID=7e99bfbe-ca27-4afb-9b88-9c8bddfb134c / ext4 defaults,noatime 0 1
UUID=9f37810a-7288-47e3-9bbe-7a864bd7b290 /home ext4 defaults,noatime 0 2
UUID=4ee1699b-a21c-4f5a-849d-f41aa37200ce /var ext4 defaults,noatime 0 2
UUID=9AE4-62B5 /boot/efi vfat umask=0077 0 2
UUID=43166bcb-eb7f-4f68-8360-3bd6c383f3c1 /data ext4 defaults,noatime 0 2
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0

1 Like

This mount(8) — Arch manual pages and that ext4(5) — Arch manual pages?

“Best” doesn’t exist, unless you give heavy details for maybe optimizing some things. The defaults in Manjaro would probably be good for you.

2 Likes

You have interesting things here on Archwiki related to fstab

https://wiki.archlinux.org/index.php/fstab

But they do not explain everything, there are many guides, this one could be a start for you

1 Like

What @omano said: there is no “best” for everyone. The “best for me, myself and I are:”

noauto,
x-systemd.automount,
x-systemd.device-timeout=10,
rw,
inherit,
permissions,
streams_interface=windows,
windows_names,
compression,
norecover,
hide_dot_files,
hide_hid_files,
big_writes

and if you want to have “the best for you, yourself and Pulsar”, read this, created by one of the authors of the ntfs-3g driver and only then will you have the best (but only for yourself)

:smiling_imp:

2 Likes

My apologies if the question is wrong or I’ve always mounted disks with fstab and it amazes me and I don’t understand those instructions for systemd :sleepy:
I need some reference or explanation to see what its function is
Sorry for the intrusion and thanks for your patience
Thanks