A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

5

Get the device number of the RAM disk: diskutil list (e.g. disk3) Add some content to the RAM disk 😉. Unmount the volume: diskutil umount disk3 Mount the RAM disk read-only: diskutil mount readOnly /dev/disk3. Apply the disk number according to your environment! unmount/mount works for an HFS+ disk (in case of a RAM disk)/volume or an APFS volume only ...


0

So, I had to revise the title/question as the solution to my problem was not an answer to the question posted originally. As far as I know, there is no way to manually edit the list of attached volumes manually. However, I managed to prevent mounted volumes to become "permanently attached" by borrowing parts of a solution to a similar problem. The problem ...


1

Finally, after many turns, I've found what's going on: The executing shell/app in the script (e.g. zsh, sh, python - in my case /bin/bash) needs to have Full Disk Access privileges. In order to do so I went to Apple Menu > System Preferences > Security & Privacy, selected Privacy tab, unlocked the settings and added /bin/bash to the list. Now I can ...


1

You are trying to use: mount_nfs -o rwsize=32768 -o locallocks -o namedattr -o noac -o rdirplus -o nfsv3 jin.local:volume1/File/ /Volumes/File Instead try: mount_nfs -vers=4 -o rwsize=32768 -o locallocks -o namedattr -o noac -o rdirplus jin.local:volume1/File/ /Volumes/File or mount_nfs -vers=4,rwsize=32768,locallocks,namedattr,noac,rdirplus ...


2

Here's how I did it mkdir -p /Volumes/work \ && mount -t smbfs //admin:$(security find-internet-password -D "Network Password" -l "share name" -w)@server/work /Volumes/work The keychain access was a bit tricky, I found the answer and wrote it there. The important part was the capitals when specifying the secret kind. You'll need to be able to ...


0

The code in my AppleScript was causing problems. The full automator flow is 2 Apple Scripts, one to set the variable for the file location and another to run it. The first script: on run {input, parameters} set output to "NameOfImage" return output end run The next one on run {input, parameters} set imagePath to "Macintosh HD:Rest of ...


2

I would use hdiutil ... instead of other methods but with an image protected by a certificate instead of a password. This is similar as to building an encrypted image with a password and a recovery key (based on a cert) - without password though: Create a temporary cert folder and cd into it: mkdir ~/certsecdmg cd ~/certsecdmg Create a root CA if you don'...


Top 50 recent answers are included