The other day I had to compile a program that required me to use a UFS formatted drive, as (I guess) it had files or something that differed only in having capital vs. small letters. It could not be compiled on an HFS+ formatted drive. Fortunately, I had NFS-mounted UFS drives from other UNIX systems, so this was not difficult. But what if this were not the case? Would I have to reformat my hard drive just to compile one lousy piece of software?
I then realized that one can use /Applications -> Utilities -> Disk Copy to create a temporary virtual UFS partition. You can do this as follows:
I then realized that one can use /Applications -> Utilities -> Disk Copy to create a temporary virtual UFS partition. You can do this as follows:
- From the Disk Copy menu, select File -> New -> Blank Image
- In the "Save as" window type ufs.dmg (or anything you want).
- Select "Desktop" (for convenience) in the "Where" dialog.
- Leave volume name as Untitled, Size as 10 MB unless you will need more space.
- From "Format" select the "Unix File System" option.
- Now click on the "Create" button.
- Double-click the ufs.dmg icon, and you should get a virtual disk called Untitled.
- Change the permissions by issuing:
sudo chmod 777 /Volumes/Untitled
•
[8,503 views]

