Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [filesystem]

The system used to format and organize files on a disk. This includes directory structure, permissions management, metadata, and more. The current default file system for macOS is APFS (High Sierra and higher) and HFS+ (Sierra or lower).

0
votes
1answer
10 views

Is it possible to roll back to the last saved version of a file in mojave?

I am not sure if I read that APFS functionality correctly but I have read that Mojave stores a kind of file time machine and that I could browse previous versions of files on the filesystem. I was ...
1
vote
1answer
17 views

Is it possible to make a folder look and behave like a file?

I'm developing a desktop application which saves its projects to disk. Projects contain multiple files, like json and jpg etc. Current solution: zipped file I'm "zipping" them all together into a ...
0
votes
2answers
49 views

Location of the root's home directory in macOS

All Unix-like operating systems I've seen use /root as the home directory for the root account. What's the reason it was moved to /var/root in macOS? Can I change it to the usual /root? I need to run ...
0
votes
0answers
16 views

Spotlight is disabled but “._file_name” still get created on external drives that I plug in [duplicate]

I want to prevent my MAC from creating ._file_name files on external memory drives that I plug into it. I think I've turned off Spotlight completely. However, such files keep getting created. How to ...
3
votes
1answer
106 views

Terminal command to remove custom icon from file (HFS+)

Context In Mac OS X / macOS you can select a file in the Finder, click Informations then click the icon, and paste any image/icon that is in the clipboard. Now this file has a custom icon made of ...
1
vote
0answers
131 views

Can't Install Mojave because of file system error: Object map is invalid

I wanted to upgrade macOS High Sierra to Mojave but installation failed with this error: File system verify or repair failed. Using Recovery Mode I tried First Aid from Disk Utility and it failed ...
1
vote
1answer
126 views

Access to ~/Library/Containers/com.apple.mail/Data/ denied

Since installing Mojave, I can no longer access ~/Library/Containers/com.apple.mail/Data/: pse@Mithos:~$ ll ~/Library/Containers/com.apple.mail/Data/ ls: DataVaults: Operation not permitted I've ...
0
votes
0answers
142 views

How can I get an NTFS partition to mount in macOS Mojave?

I have a external HDD with four different partitions on it. 3 out of 4 of them work flawlessly. Two partitions are running the macOS Extended filesystem, one is running good old fat32, with the last ...
1
vote
0answers
19 views

Recovering a deleted file on MacOS

There is an old Unix trick for attempting to recover a deleted file where you run $ sudo grep -C100 string-known-to-be-in-file /dev/sda1 which takes a very long time, but can at least recover a ...
1
vote
0answers
18 views

Mount two disks/directories into a single point

I want to mount two disks or directories into a single mount point. I saw some article online which mentioned bindfs, I had a look at it but I don't understand how it can help. Another article shows ...
0
votes
1answer
37 views

How to manage permissions of files owned by user “_unknown” in Mac OS 10.13.4?

I've got permissions problems with files on my MacOS 10.13.4 desktop. When I try to correct the problems by hand, I see a curious issue: Matt$ sudo chown Matt:Engineers TestFile chown: TestFile: ...
4
votes
1answer
68 views

How do I get the path to a DMG (disk image) file given the mounted volume path?

I tried hdiutil info -plist, but if I shift the DMG file elsewhere after mounting it, it doesn't update the DMG path. If I right click and select 'Get info' on the volume, I'm able to view the correct ...
0
votes
1answer
30 views

How to get the Disk Image property using terminal?

Let's say I have the volume path. Normally I can right-click and 'Get info' to get its Disk image. I want to replicate the same on terminal (basically need to code it in objective C) mdls doesn't seem ...
2
votes
3answers
160 views

Mac Pro 5.1 Windows 10 boot problems

I'm trying to run Win 10 on a separated drive attached to sata optical drive bay. I ran into some issues about GPT partition over instalation processes which I could solve it by terminal commands. It ...
0
votes
1answer
27 views

Why is macOS forcibly renaming my USB drive?

I have a USB Drive named "Cuthbert", and various apps use paths starting with /Volumes/Cuthbert when it is plugged in. However, my laptop is putting it at /Volumes/Cuthbert 1, and won't let me rename ...
0
votes
0answers
44 views

Mac File System Tagging questions regarding external USB drive, SMB shares and indexing

(1) I googled mac tagging. I know the tagging was stored in HFS+ file system's extended attribute. But when I create tags in SMB shares (which are ext4 and ntfs on the network), I find out the tags ...
0
votes
1answer
24 views

Which filesystems support symbolic links?

I'm copying a big archive of files from a Linux host to an external USB hard drive, that will then plug into a macOS host. The copy should preserve the archive's many symbolic links (ln -s). What ...
1
vote
1answer
85 views

Why is there no difference between 2 differently capitalized folders?

I have an empty directory called "foo". I try to create a new directory called "Foo". But I cannot create it: ***@###:~/test$ mkdir foo ***@###:~/test$ ls foo ***@###:~/test$ mkdir Foo mkdir: Foo: ...
1
vote
1answer
13 views

Get Size of Folder Containing Hardlinks (like Time Machine Backups)

I'm using an rsync script to make incremental backups of a specific folder, in very much the same way Time Machine does. I'm very interested to know how large my backup destination folder is. However ...
1
vote
1answer
56 views

Deleting the ._* files from a mounted volume kinda screwed some things up

I have a thumb drive that I use frequently, which results in a lot of the ._* files being created, which I periodically delete by executing something like find /Volumes/Secure -name '._*' -exec rm -vf ...
0
votes
0answers
20 views

Is there anyway to make a block device read-only?

I am NOT talking about mounting a filesystem read-only. On Linux, I can make a block device read-only and when I do that not even filesystem modifications that would occur if I partition read-only (...
1
vote
1answer
37 views

change /etc/localtime to UTC time?

I noticed it is common for programming languages to utilize /etc/localtime when determining the current time to display for a user. In particular, I know that Ruby relies on /etc/localtime if the "TZ" ...
2
votes
2answers
32 views

How to check if file is in use?

I have c++ application and I need to know if one file is in use by anyone. I'm ok with running any shell command, but I don't want to run lsof command for this purpose, since I think I can't safely ...
0
votes
1answer
63 views

Cron mail notifies error of suspicious unknown script

Thanks to the mail function of the Terminal it came to my attention that there was some kind of cron job being executed with some errors. The mail of the cron gives this info: 2018-08-02 23:47:22....
1
vote
1answer
33 views

How to get rid of “The disk you inserted was not readable” and auto ignore it? (without installing apps)

whenever I plug in an ext4 partition type external USB drive, this message will pop up. and then I need to press "Ignore" to ignore it. This is very annoying. How can I auto ignore it? I did google ...
1
vote
2answers
57 views

locate is not finding a zip file that exists

The com.apple.locate.plist daemon is running, and I've updated the database using sudo /usr/libexec/locate.update, but the locate command is still not finding a .zip named OldPhoneCamera.zip in /Users/...
0
votes
0answers
27 views

How to know what is causing high CPU?

Here is the problem. Pages is causing me a High CPU but one of two things may be causing it: Pages is using memory, computing something or moving/searching stuff on memory. Pages is using the disk. ...
1
vote
1answer
30 views

Using hard disk after a S.M.A.R.T. error

Good day everyone. I had an hard drive and start giving a S.M.A.R.T error and I've immediately replaced it. Now if I try to format it in exFAT, all goes right, (also checkdisk). Here is the result ...
4
votes
1answer
161 views

Paste path from clipboard in file dialog

I have a full absolute file path on my clipboard (ie: /Users/Noit/Pictures/Screenshot - Jul 9, 2018 3.27 PM.png) I then go to say Skype or gmail in my web borwser, and click "attach". This opens a ...
2
votes
2answers
77 views

What's a good setup to back up macOS data and restore to Linux?

Background I have an old MBP which works fine right now. I have no immediate plans to change it. But it is getting old, the discrete GPU died, and I expect it could die at any time. I would like ...
1
vote
1answer
100 views

Why is “tomorrow” displayed as the “Date Modified”?

This is a bizarre situation-on my MacBook Pro (2017, High Sierra 10.13.5), when I opened a folder on the Finder, the Date Modified column for the files in a folder displays "Tomorrow at 2:34AM" and ...
2
votes
0answers
24 views

How to ensure that you retrieve all permission attributes (including ACLs) of a file or folder from the shell?

I would like to retrieve ALL permissions (including ACLs) and attributes of files and folders (both) from a folder and its accompanying files on a drive. Most frequently one sees ls -le being used to ...
2
votes
1answer
22 views

Tracing real-time filesystem calls by process?

I suspect my backupd is performing a full filesystem scan. I can't tell because I don't know how to use Activity Monitor (or something else) to see what directories and files backupd is reading or ...
1
vote
0answers
13 views

Large file download behavour

One of my users started a download of a very large (1.2 TB) file using Firefox onto his mac (High Sierra) which had 400 GB free. Firefox did warn that the file was more than the available disk space ...
2
votes
0answers
177 views

Split a large folder containing many files into a set of smaller folders

This seems like a pretty common use case: I have a folder containing multiple files which I'd like to split into multiple folders, where each output folder is no bigger than a given size. In short,...
2
votes
2answers
4k views

Is it safe to remove /vm/swapfile0?

I found a file of size 1 GB in /vm/swapfile0, that has not been accessed in a long time, according to last access date value in ls -l. My assumption is, that this file is left over from an older ...
0
votes
0answers
21 views

Cannot access file's last 0x10000 bytes (returns “result too large”)

My setup is running 10.13.4 and my main mount is: "/dev/disk1s1 on / (apfs, local, journaled)" I'm working on a file scanner, which crashed when reading the following file /.Spotlight-V100/Store-V2/...
4
votes
1answer
124 views

Can I view hidden files and directories from the Open or Save As dialog boxes without making them visible in the Finder? [duplicate]

I know you can use Terminal to switch on/off hidden files in OS X and already use these commands. What I want to know is if it’s possible to just do this from WITHIN the Open or Save As dialog boxes ...
4
votes
2answers
135 views

Finder file size easy way

While showing items as icons (not in a list, in columns or wit cover flow). In order to know file size I right-click the file then select Get info then a window opens full of info and I have to look ...
0
votes
0answers
11 views

new partition of external drive fails with “couldn't open disk” [duplicate]

I'm trying to revive a friend's timemachine drive. It failed at some point in some way and went into read-only mode. It was difficult to unmount (had to reboot) but then got it erased. Now when I try ...
1
vote
0answers
90 views

How to create /dev/null in a jail-environment (chroot)?

In short: I am trying to install BIND9 on OSX inside a jail-environment (chroot) and failing to create a /dev/{null, random} file inside. Since Apple is slowly removing support for DNS, DHCP and more ...
0
votes
3answers
185 views

diskutil: correctly get total and available space on macOS

On macOS High Sierra, with SSD formate with APFS, i've got: diskutil info -all Device Identifier: disk0 Device Node: /dev/disk0 Whole: Yes Part ...
0
votes
0answers
15 views

How to delete time machine backups in trash. [duplicate]

I deleted several time machine backups to trash. I tried emptying trash and had over 1 million items and still deleting. I stopped deleting. Files are still in trash bin. How do I get rid of them ...
2
votes
1answer
132 views

iOS - Photos & message access to MDM installed apps

In iOS, is it possible for apps managed via MDM to get access to photos and text/WhatsApp text messages of user stored on user's iPhone. If yes, what kind of permissions do these actions require?
0
votes
0answers
263 views

APFS Container Corruption?

I'm not sure what happened, but suddenly my MacBook Pro MD103 stopped booting from internal Vertex 4 256GB SSD. It happened in December, probably before after one of these APFS updates. I've tried ...
1
vote
2answers
1k views

How to mount /dev/disk1 with write permissions from Recovery Mode?

Using Command + R at boot, I entered recovery mode but the /private/etc/ directory is Read-Only. Is it possible to unmount the disk then mount it again with write permissions? # sw_vers ProductName: ...
3
votes
1answer
2k views

How to tell if I'm using HFS+ or APFS?

Using diskutil, or other command line tools, how can I determine which filesystem I'm using? # sw_vers ProductName: Mac OS X ProductVersion: 10.8.5 BuildVersion: 12F45
0
votes
0answers
409 views

How to completely uninstall FUSE and ntfs-3g and reset the macOS native USB mounter as the default?

FUSE has not worked for me on macOS 10.13.4 on my MacBook Pro. I have installed osxfuse from home-brew and also installed ntfs-3g and exchanged the default driver with ntfs-3g (Driver which manages ...
1
vote
1answer
452 views

NTFS drive isn't writable even after installing Fuse

I have installed fuse using steps which are linked below in an article. Each and every step was successful but after mounting my WD external drive, still it was not writable. Everywhere I found same ...
3
votes
0answers
21 views

Mount HFS+ filesystem with disable read and write caches

I've got the HFS+ filesystem represented by .dmg image file. For security reasons I'd like to make sure every I/O applies directly to the .dmg file and not through any kind of memory in the middle. ...