Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Create a temporary UFS partition UNIX
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:
  1. From the Disk Copy menu, select   File -> New -> Blank Image
  2. In the "Save as" window type ufs.dmg (or anything you want).
  3. Select "Desktop" (for convenience) in the "Where" dialog.
  4. Leave volume name as Untitled, Size as 10 MB unless you will need more space.
  5. From "Format" select the "Unix File System" option.
  6. Now click on the "Create" button.
  7. Double-click the ufs.dmg icon, and you should get a virtual disk called Untitled.
  8. Change the permissions by issuing:
    sudo chmod 777 /Volumes/Untitled
Now you can copy whatever it is you need to compile to the virtual UFS disk, compile, and then install the software as needed.
  • Currently 2.00 / 5
  You rated: 1 / 5 (3 votes cast)

Create a temporary UFS partition | 2 comments | Create New Account
Click here to return to the 'Create a temporary UFS partition' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a temporary UFS partition
Authored by: englabenny on Jun 10, '03 04:31:48PM

Clever thing! I wonder when I'll ever use it, though... Too bad Disc Copy cannot format even stranger filesystems...

[ Reply to This | # ]
Create a temporary UFS partition
Authored by: vasi on Jun 13, '03 06:35:17PM

You can also find files in the tarball that have case problems, and extract them separately--then rename them. This is what Fink does when needed, check out the TarFilesRename field.

# To find the dups:
tar -tzf tarball.tgz | tr a-z A-Z | sort | uniq -d

[ Reply to This | # ]