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.
>
I fear you're being acutely optimistic here ... j/s ! :P

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

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