differently?
start with not using the /run directory to mount your drive
The drive has a device name (/dev/sdXx)
That device needs to be mounted to (e.g)
/srv/nfs/R
make sure it is mounted before you try to share it via NFS
run is where the hard drive is mounted by default. How do I make the hard drive mount automatically somewhere else? I don’t want to mount it manually every time.
I’ll restart and try again later because it isn’t mounting for some reason
server ❯ sudo mv /etc/systemd/system/data-nfs-R.mount /etc/systemd/system/r-ntfs.mount
server ❯ lsblk -no UUID /dev/sde1
8066D52E66D525A6
server ❯ sudo cat /etc/systemd/system/r-ntfs.mount
[Unit]
Description=My shared partition
[Mount]
What=/dev/disk/by-uuid/8066D52E66D525A6
Where=/r/ntfs
Type=ntfs
Options=defaults,rw,noatime
[Install]
WantedBy=multi-user.target
server ❯ sudo systemctl start r-ntfs.mount
Failed to start r-ntfs.mount: Unit r-ntfs.mount has a bad unit file setting.
See system logs and 'systemctl status r-ntfs.mount' for details.
server ❯ systemctl status r-ntfs.mount
× r-ntfs.mount - My shared partition
Loaded: loaded (/etc/systemd/system/r-ntfs.mount; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2022-07-16 14:50:32 CEST; 4min 26s ago
Where: /r/ntfs
What: /dev/disk/by-uuid/8066D52E66D525A6
CPU: 4ms
jul 16 14:50:32 arch systemd[1]: Mounting My shared partition...
jul 16 14:50:32 arch mount[157246]: Mount is denied because the NTFS volume is already exclusively opened.
jul 16 14:50:32 arch mount[157246]: The volume may be already mounted, or another software may use it which
jul 16 14:50:32 arch mount[157246]: could be identified for example by the help of the 'fuser' command.
jul 16 14:50:32 arch systemd[1]: r-ntfs.mount: Mount process exited, code=exited, status=16/n/a
jul 16 14:50:32 arch systemd[1]: r-ntfs.mount: Failed with result 'exit-code'.
jul 16 14:50:32 arch systemd[1]: Failed to mount My shared partition.
server ❯ journalctl -xe
jul 16 14:50:32 arch mount[157246]: could be identified for example by the help of the 'fuser' command.
jul 16 14:50:32 arch systemd[1]: r-ntfs.mount: Mount process exited, code=exited, status=16/n/a
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ An n/a= process belonging to unit r-ntfs.mount has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 16.
jul 16 14:50:32 arch systemd[1]: r-ntfs.mount: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ The unit r-ntfs.mount has entered the 'failed' state with result 'exit-code'.
jul 16 14:50:32 arch systemd[1]: Failed to mount My shared partition.
░░ Subject: A start job for unit r-ntfs.mount has failed
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░
░░ A start job for unit r-ntfs.mount has finished with a failure.
░░
░░ The job identifier is 2576 and the job result is failed.
jul 16 14:50:32 arch sudo[157230]: pam_unix(sudo:session): session closed for user root
jul 16 14:50:32 arch audit[157230]: USER_END pid=157230 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_c>
jul 16 14:50:32 arch audit[157230]: CRED_DISP pid=157230 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred >
jul 16 14:50:32 arch kernel: audit: type=1106 audit(1657975832.587:430): pid=157230 uid=1000 auid=1000 ses=1 subj==unco>
jul 16 14:50:32 arch kernel: audit: type=1104 audit(1657975832.587:431): pid=157230 uid=1000 auid=1000 ses=1 subj==unco