This maybe a noob question. But I have formatted my HDD with btrfs. But I can’t automount the partition on boot with user permission.
Partition only works with sudo parmission.
This fstab settings I have tried.
This fstab worked with ext4 and with user permission.
$ sudo vim /etc/fstab
UUID=4208875b-ffea-4376-afd8-b0bbd6bcb0e3 /run/media/mnt/LocalDisk btrfs auto,users,exec 0 0
I also tried with defaults. Still doesn’t work without root permission.
I have added ‘btrfs’ in mkinitcpio.conf.
Still the same problem. Disk only mount with root permission.
Can’t figure a way to use the partition as user. The same entry used to work with ext4
Yes, that’s exactly how it’s supposed to work. Partitions are not user-mountable unless the user mount option is supplied among the mount options for the partition’s entry in /etc/fstab.
That said, /run/media/mnt/Localdisk is a mountpoint on what is itself a tmpfs that gets mounted by systemd. It is most certainly not the correct place to mount a partition. If you want that partition available under your home directory, then create a mountpoint ─ i.e. a “folder” ─ for it in your $HOME and tell /etc/fstab to mount the partition to that folder at boot time.
I plan on doing a tutorial on UNIX/POSIX filesystems and permissions later ─ I haven’t had the time yet ─ but for now, I’ll just give you the advice to stop thinking of storage devices along the paradigm of Microsoft Windows or Apple macOS. UNIX systems treat storage not as individual volumes but as a transparent uniform directory hierarchy, regardless of whether something resides on a separate partition (or even another computer in the network) or not.