Home > Questions

Help! Can it not eject the APFS volume when logging out?

Typically, the scenario is: I connect to my server via ssh with admin user X. I mount the encrypted volume with `sudo diskutil apfs unlockVolume` For some reason, sometime after that (hours, days, months…) I connect to my server with VNC with the same user X, and log in with a graphical session (aka "console"), also with the same user X. I do my stuff, and I don't touch at all the encrypted mounted volume. I log in when I have finished, encrypted volume is force ejected. There is any way to avoid this behavior? I tested mounting the volume with the `nobrowse` flag, it doesn't change anything. Thank you.

Best Answered by

iBoysoft author Amanda Wong

Amanda Wong

Answered on Thursday, July 27, 2023

The encrypted APFS volume requires the password to unlock the drive so that you can access the drive data with full privileges. If you log out of the current user account and the APFS volume ejects, and you can't mount it via VNC, there is a solution to solve this problem.

When you format an external hard drive on Mac, you can choose to encrypt the drive with the options of file system. Both APFS and Mac OS Extended(Journaled) provide such options. If you have an encrypted APFS volume, you need to enter the password so that you can access it. That may also explain why it ejects when you log out of the current user account, for the purpose of preventing the drive from unauthorized access.

 If this troubles you when you try to access the drive via VNC and every time you need to manually mount it given that the drive is automatically ejected when logging out. Then you can site the volume in /etc/fstab with the 'auto' option, then it will not be unmounted during user logout. 

When determining the mount point for a filesystem, the user-defined mount points, indexed by the filesystem, are found in the file /etc/fstab.  The constructs "UUID" and "LABEL" respectively can be used to identify each filesystem by its UUID or by its label. 

 

People Also Ask

Read More Questions

Read More Advice From iBoysoft's Computer Experts

OneDrive für Mac

OneDrive für Mac: Wie man es auf dem Mac herunterlädt, sich anmeldet und einrichtet

Eine Übersicht über OneDrive für Mac und zeigt Ihnen, wie Sie OneDrive auf einem Mac herunterladen, installieren und sich anmelden können. Außerdem erfahren Sie, welche Alternativen es für Mac gibt.

La aplicación está dañada y no se puede abrir

Solucionar 'Archivo/Aplicación dañada y no se puede abrir' en Mac

Explicar las razones detrás del error 'Archivo o aplicación dañada y no se puede abrir. Debería moverlo a la Papelera.' y formas de solucionarlo.

Mac flickering black after update

Mac Screen Flickering Black After Updating, Reasons & Fixes

Fix Mac, MacBook Pro, and MacBook Air screen flickering black after updating. Explain the reasons why the Mac screen flickers black after updating.

News Tips