D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Hate computers. Hate systemd. [Was Re: Hate computers. Hate HP. Hate USB.

 

On 10/11/2021 18:47, comrade meowski wrote:
On 10/11/2021 14:01, Julian Hall wrote:

sudo ls -alh /media/julian
ulian@Cerce:~$ sudo ls -alh /media/julian
[sudo] password for julian:
total 16K
drwxr-xr-x 5 root root 4.0K Oct 25 16:49 .
drwxr-xr-x 3 root root 4.0K Sep  9 16:09 ..
drwxr-xr-x 2 root root    0 Nov 10 11:05 DEMETER
drwxr-xr-x 2 root root 4.0K Sep 18 09:55 HESTIA
drwxr-xr-x 2 root root 4.0K Sep 18 09:56 PERSEPHONE

There must be a process holding a lock on the mount point - annoying that the previous chown command didn't exit with a fail status but hey ho. Ok let's try and be methodical and shut down the NFS and relevant mount units first:

sudo systemctl stop nfs-*
sudo systemctl stop media-julian-DEMETER.mount
sudo systemctl stop media-julian-DEMETER.automount
sudo systemctl umount /media/julian/DEMETER

# that hopefully "frees" any process locks

sudo ls -alh /media/julian
sudo chown julian:julian /media/julian/DEMETER
sudo ls -alh /media/julian

# the second command should show the updated permissions

If so, reboot and test the nfs mount. If not don't reboot and try and delete the mount point entirely. There will presumably be an instructive error message if the system still doesn't like it.
julian@Cerce:~$ sudo systemctl stop nfs-*
[sudo] password for julian:
julian@Cerce:~$ sudo systemctl stop media-julian-DEMETER.mount
Warning: Stopping media-julian-DEMETER.mount, but it can still be activated by:
  media-julian-DEMETER.automount
julian@Cerce:~$ sudo systemctl stop media-julian-DEMETER.automount

NB: They shouldn't even exist much less be active. As I said I'm trying to only use fstab.

julian@Cerce:~$ sudo systemctl umount /media/julian/DEMETER
Unknown operation umount.
julian@Cerce:~$ sudo umount /media/julian/DEMETER
umount: /media/julian/DEMETER: not mounted.
julian@Cerce:~$
julian@Cerce:~$ sudo ls -alh /media/julian
total 20K
drwxr-xr-x 5 root root 4.0K Oct 25 16:49 .
drwxr-xr-x 3 root root 4.0K Sep  9 16:09 ..
drwxr-xr-x 2 root root 4.0K Sep  9 16:09 DEMETER
drwxr-xr-x 2 root root 4.0K Sep 18 09:55 HESTIA
drwxr-xr-x 2 root root 4.0K Sep 18 09:56 PERSEPHONE
julian@Cerce:~$ sudo chown julian:julian /media/julian/DEMETER
julian@Cerce:~$ sudo ls -alh /media/julian
total 20K
drwxr-xr-x 5 root   root   4.0K Oct 25 16:49 .
drwxr-xr-x 3 root   root   4.0K Sep  9 16:09 ..
drwxr-xr-x 2 julian julian 4.0K Sep  9 16:09 DEMETER
drwxr-xr-x 2 root   root   4.0K Sep 18 09:55 HESTIA
drwxr-xr-x 2 root   root   4.0K Sep 18 09:56 PERSEPHONE

*saving reply to reboot*

Still the same. Boots, mounts, refuses to let me see the content :(

Julian

--
“The great tragedy of Science — the slaying of a beautiful hypothesis by an ugly 
fact.”

― Thomas Henry Huxley


--
The Mailing List for the Devon & Cornwall LUG
https://mailman.dcglug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq