Apple file system. Designed for solid state storage devices. Used on MacOS, iOS, tvOS and watchOS.
Questions tagged [apfs]
49 questions
44
votes
4 answers
Case-sensitive path collisions on case-insensitive file system when I do git clone
when I git clone the repository the following warning appears:
...
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:
…

Juan
- 649
- 1
- 6
- 11
34
votes
2 answers
Apple File System (APFS) Check if file is a clone on Terminal (shell)
With macOS High Sierra a new file system is available: APFS.
This file system supports clone operations for files: No data duplication on storage.
cp command has a flag (-c) that enables cloning in Terminal (shell).
But I didn't find a way to…

Dyorgio
- 1,114
- 13
- 23
30
votes
3 answers
Create APFS RAM disk on macOS High Sierra
usually creating RAM disks works with the following commands
hdid -nomount ram://
Returns e.g. /dev/disk2
Then I would format the disk, with say
newfs_hfs /dev/disk2
followed by mounting it:
mount -t hfs /dev/disk2…

MShekow
- 1,526
- 2
- 14
- 28
11
votes
1 answer
Is perl's rename doing something odd on APFS?
I think this is related to iCloud Drive in some way, but I have not investigated.
I'm trying to track down an issue with Perl's rename on macOS using the Apple Filesystem (APFS). I've been able to replicate this with perls back to at least 5.12.3…

brian d foy
- 129,424
- 31
- 207
- 592
9
votes
1 answer
macOS with APFS: Copy-On-Write in Terminal
I am writing some little script that assembles backup data into one directory. The directory content will then be uploaded to a cloud service and after that we can remove it. I was wondering how one could utilize APFS' copy-on-write feature with a…

Anticro
- 685
- 4
- 12
9
votes
1 answer
how to shrink/resize apfs?
I want to shrink the boot file system's size(formatted as APFS), how to do it?
In macOS Sierra, HFS+ can be shrunk without reboot/remount(in disk utility), but in macOS High Sierra, it seems impossible.

Robert Lu
- 1,499
- 13
- 22
8
votes
3 answers
How do you INCREASE the size of an APFS volume?
I've created an APFS volume on a MBP running High Sierra in order to use it as a Time Machine drive for the iMac I use at work (we don't have a backup solution so this is my hacky way to keep myself safe as the MPB itself is backed up separately).…

Lumus
- 101
- 1
- 2
- 5
7
votes
1 answer
Delays in freeing disk space with Dropbox Smart Sync on MacOS/APFS - what dangers lurk?
As explained by Dropbox, Smart Sync is a feature "that helps you save space on your hard drive. Access every file and folder in your Dropbox account from your computer, using virtually no hard drive space. ... With Smart Sync, content on your…

Tom Baker
- 683
- 5
- 17
7
votes
2 answers
Are there any commands showing Apple File System (APFS) timestamps in nanoseconds?
I heard that timestamps in APFS are in nanoseconds.
Are there any commands that are able to show APFS timestamps in nanoseconds?
I've tried ls, stat but no luck so far.

Domon
- 6,753
- 1
- 25
- 29
6
votes
1 answer
Does APFS actually support Named Forks or just Resource Forks and Extended Attributes?
From version 8.1 until Mountain Lion (10.8), the OS supported a concept called "Named Forks". Named forks are equivalent to "Alternate Data Streams" in Windows.
There is a ton of confusion on the internet now between named forks vs the resource fork…

hippietrail
- 15,848
- 18
- 99
- 158
4
votes
1 answer
How to distribute a MacOS Disk Image (DMG) file to other Macs? Uploading to Google Drive or AwsS3 corrupts the file
I have created a DMG file and need to distribute it with a public link. Please note that the dmg file opens properly on all the macs if I transfer it through commandline scp (OpenSSH).
However, if I upload the same DMG file to Google Drive or AWS…

Anshuman Chatterjee
- 834
- 5
- 21
4
votes
1 answer
How to use 1 Data Volume with 2 MacOS versions?
I am running MacOS Catalina installed on internal SSD which creates two volumes:
Macintosh HD
Macintosh HD - Data
I am reluctant about moving to Big Sur, so wanted to test it out first. I created a new APFS volume named "Big Sur" and installed Big…

Vyom Maitreya
- 420
- 4
- 9
4
votes
1 answer
Why is performance of lstat poor on APFS (OSX) compared to Ext4 (Linux)
While profiling Git on a large repository, I found that git status is significantly (10x) slower on mac compared to linux. git status runs lstat on every file in the repository, which is where the slowness comes from.
Is there a particular reason…

UtsavShah
- 857
- 1
- 9
- 20
4
votes
1 answer
OSX Java App Bundle runs on HFS+ but not APFS
I've been encountering this issue that I find has no information on the web and would like some help as I've been working on this for the last few days with no leads.
Why does my java app suddenly stop working for APFS? It works if I move the app to…

Andre Ty
- 111
- 6
3
votes
3 answers
Determine Volume Groups in macOS Catalina, Big Sur and later
Since macOS 10.15 (Catalina), a volume, as the user sees it, may actually be comprised of multiple volumes, such as the System and the Data volume.
I'm writing a tool that needs to identify these volumes separately because when using specific file…

Thomas Tempelmann
- 11,045
- 8
- 74
- 149