[fstab](https://wiki.archlinux.org/index.php/Fstab)
## /dev/mapper/croot
UUID=12345678-90ab-cdef-fedc-ba0987654321 / ext4 rw,noatime 0 1
## boot partition
UUID=1098-0909 /boot vfat rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2
## tmpfs on ram
tmpfs /tmp tmpfs rw,nodev,nosuid,size=6G 0 0
## swap file
/var/swapfile none swap defaults 0 0
## Data drive
UUID=12345678-90ab-cdef-1234-567890abcdef /mnt/hdd ext4 defaults,noatime 0 2
## Fat32 USB drive
UUID=1234-09AB /mnt/usb vfat noauto,defaults,user,noatime,gid=1000,uid=1000,umask=0022 0 2
## Samba share
//192.168.1.1/Shared /mnt/samba cifs credentials=/home/yu/.smbcredentials,nofail,x-systemd.requires=network-online.target,x-systemd.device-timeout=10,user,workgroup=WORKGROUP,uid=1000,gid=1000,iocharset=utf8 0 0
Drive UUIDs
sudo blkid
/home/yu/.smbcredentials
username=user
password=pass
#domain=domain_or_workgroupname
If I put the workgroup here, will it work?
Make the file read-only
chmod 0600 /home/yu/.sbmcredentials
Mount anyone manually
mount /mnt/<path>