HOW TO MOUNT INTERNAL OR REMOTE HARD DISK
To auto-mount the hard disk at boot you need to edit the file /etc/fstab.
You can use a root teminal (type su and after give root password
audiolinux0) with
nano /etc/fstab
You can also use pcmanfm-qt file explorer root (red icon on the bottom bar)
and edit the file from there.
It is better to test the mount line before adding it to /etc/fstab. For
example:
mount -t cifs //ip-address/myshare /media/samba
-o workgroup=WORKGROUP,user=myuser,password=mypassword,uid=1000,gid=1000,forceuid,forcegid
etc.
Please be careful. if /etc/fstab has a wrong line, the system could not
boot.
Don't mount outside of /media subfolders if you are using ramroot!
To find LABEL or uuid type
blkid
in a terminal
Substitute mylabel, myuuid, servername, password etc. with your values.
Example for linux internal hard disk
LABEL=mylabel /media/linux1 ext4
nofail,noatime,rw 0 2
or
UUID=myuuid /media/linux1 ext4 nofail,noatime,rw
0 2
Example for ntfs internal hard disk
UUID=8A8288D08288C1E5 /media/windows ntfs-3g
nofail,noatime,rw,uid=1000,gid=1000,forceuid,forcegid
0 0
-->
Substitute ntfs-3g with the right filesystem, if different. You can list
what is available with the command
cat /proc/filesystems
For exfat install exfat-utils with:
pacman -S exfat-utils
Example for nfs remote hard disk
ref: https://wiki.archlinux.org/index.php/NFSMount_using_.2Fetc.2Ffstab
servername:/myshare /media/nfs nfs
nofail,x-systemd.automount,x-systemd.requires=network-online.target,x-systemd.device-timeout=10,timeo=14
0 0
Example for samba remote hard disk
ref.: https://wiki.archlinux.org/index.php/Fstab
//ip-address/my-share /media/samba cifs
nofail,rw,x-systemd.automount,x-systemd.requires=network-online.target,x-systemd.device-timeout=10,uid=1000,gid=1000,forceuid,forcegid,user=my-user,password=my-password
0 0
or
//server-name/my-share /media/samba cifs
nofail,rw,x-systemd.automount,x-systemd.requires=network-online.target,x-systemd.device-timeout=10,uid=1000,gid=1000,forceuid,forcegid,user=my-user,password=my-password
0 0
For servers with old version of samba:
//ip-address/my-share /media/samba cifs
vers=1.0,nofail,rw,x-systemd.automount,x-systemd.requires=network-online.target,x-systemd.device-timeout=10,uid=1000,gid=1000,forceuid,forcegid,user=my-user,password=my-password
0 0