|
mac geekeryGet your geek on. |
Hiding PartitionsQuestionHi, I have an external hard disk with two partitions on it. Is there a way to fix things so that when my Mac boots up, only one of the partitions is mounted? Jim Reese AnswerYou need to create an entry in your filesystem table to tell the OS not to mount that specific volume. This is relatively easy. First, we need to uniquely-identify the volume to hide. The name’s not good enough (how many “Untitled” CDs have you burned?), we need something more unique. Luckily, every HFS volume has a UUID identifier that we can use for this. This way, renaming the volume will not change this behavior. Using diskutil info /Volumes/[name] Look for the UUID in the output and copy it to the clipboard. Now that we have a UUID for the volume we should create ye olde fstab file. Save something like the following in a new file called /etc/fstab: # Identifier, mount point, fs type, options, dump order, check order UUID=73853D0B-489C-1C22-0148-62BE288C102F none hfs rw,noauto 0 0 Now reboot (for internal drives) or unmount, disconnect, and reconnect the drive (for external drives) and it should not mount the partition we identified. If things don’t work, start at the top and try again. If things still don’t work, leave a very, very detailed comment below. And I bet you thought it was a flag somewhere. Well, it used to be in Mac OS 9, but no longer. In Mac OS X, About Adam Knight |
|
||||
It works like a charm. Thank you, thank you, thank you!
Jim Reese
I’ve got an external iomega triple interface. I split it into 2 partitions using pdisk and fdisk. One is Journaled HFS+ and the other is FAT32L. See, the XBOX 360 will allow you to add a USB Mass storage device, so long as it’s formatted FAT32. I hate FAT32, but anyway…
The Fat32 volume is recognised on the xbox and osx and the journaled HFS+ is recognised on osx. Everything seems fine, except that FAT32 support went out the window with 10.3.8, so using a fat32 drive on 10.4 can result in destroyed data or volume structures (from what I’ve heard…), and I’ve personally noticed that it doesn’t act properly. I don’t want the volume to be mounted on OSX, I’d rather mount it manually in virtual PC. But in short, that part I can deal with myself.How do I keep it from mounting a fat32 partition? The partition doesn’t have a UUID, or at least diskutil doesn’t list one.
Maybe there’s a way to tell it to just not mount any partitions of a certain type or something? I’ve been raking forums all over and I just might end up melting google if I can’t figure this out!
diskutil info in Panther doesn’t display any UUID values.
How can a Panther user properly obtain that data?
-HI-
You would use “LABEL=MacintoshHD” and rename your drive to not have spaces. Panther doesn’t have the prolific use of UUIDs that Tiger does, so I’m unsure if it even does this, really.
Okay thanks.
That is weird tho, since Panther seems aware of UUIDs…
or, so one might assume — from looking at man uuidgen and
man diskarbitrationd. It’s mainly diskutil that seems oblivious.
Oh well.

But how would you use this to hide a FAT32 partition on Tiger? Like Panther there’s no UUID, but “LABEL=Name” doesn’t work in the fstab either.
In a nutshell, this has become more interesting with all of the talk of installing Windows on the Mactels. I now have a partition on my desktop that I just can’t seem to hide.
You can also ad a Dot (as “.Windows HD”)at the beginning of your windows partition while ruing windows (mac doesn’t allow it) and “Boom” (eh steve!) you windows drive icon disappears from the desktop. Of course this does not unmount the drive and you can still access it from the left menu in fonder but this was exactly what I was looking for !!!!
The command and the /etc/fstab file – still the same in Leopard, v10.5.x, for this?