You are not logged in.
I use the systemd approach to mount my NFS folders on the /mnt drive which works fine.
The mnt.mount systemd file is as shown below:
[Unit]
Description=Mount Share at boot
[Mount]
What=ServerName:/mnt
Where=/mnt
Options=
Type=nfs
TimeoutSec=30
[Install]
WantedBy=multi-user.targetThe directory then gets populated with nfs folders under /mnt which are
/mnt/Drive1
/mnt/Drive2
I also would like to mount the local NTFS partition drive on the same folder but I cannot. When I go to do a sudo mkdir /mnt/LocalDrive I get the following error:
mkdir: cannot create directory ‘LocalDrive’: Read-only file systemI currently therefore load this under the media folder with the following fstab line
UUID=XXXXXXXXXXXXXX /media/LocalDrive ntfs-3g defaults,locale=en_US.UTF-8,umask=000,dmask=000,fmask=000,uid=1000,gid=1000 0 0What am I doing incorrectly which prevent me from mounting my 'LocalDrive' on the /mnt drive as well?
I want all the partitions at one place which includes my NFS remote folders as well.
Any help/suggestions etc is appreciated.
Thanks for your attention and efforts.
OZooHA
Last edited by ozooha (2020-11-14 14:50:36)
Offline
I don’t get it, you are mounting something inside a dir inside the nfs? Why?
Also it’s quite visible that whatever got mounted in /mnt is read only.
A filesystem UUID is not sensitive information, redacting it is not needed. As per usual many choose separate dirs inside /media if they are meant for always be there, and /media is part of /.
You need to change the NFS to rw if you really want to do that in /mnt, idk how or why is ro tho...
A safe assumption would be that ro is the default, in that case you must state rw in the Options.
Poor reading comprehension on my end, disregard, Trilby is more accurate in this subject.
Last edited by GaKu999 (2020-11-13 04:09:32)
Offline
And what do you expect to happen if you have files with the same name on the remote drive and local partitions? Or which filesystem should store the data if you then try to create a file under /mnt? This really doesn't have anything to do with this being an NFS mount, you can't mount two partitions to the same mount point (not without masking one, or using a union mount / overlay).
You shouldn't be mounting everything to /mnt, you should mount different partitions under /mnt. For example, mount the nfs on /mnt/nfs, or /mnt/ServerName, or something of the sort, then mount the ntfs local partition on /mnt/LocalDrive.
Last edited by Trilby (2020-11-13 03:57:24)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Got it.
Thanks.
Offline