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

Click here to return to the 'A simpler way to mount drives - 100%' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A simpler way to mount drives - 100%
Authored by: Cat2Mac on Feb 14, '06 08:09:24PM

Each volume/partition has a unique, unchanging UUID.

If you call the volume X & it has a UUID of Y, & your mount point is /Z, then X is Y & will always mount at /Z. I believe the only time the UUID might change is when deleting & recreating the volume. (Note that I have only used this for permament drives, not external/unmountable firewire or USB. SCSI drives should also work.)

Also you can have as many volumes as you want ... just add as many volume definitions as you need to fstab. I only used one, but any number of volumes can be added. If you want 10 volumes then add 10 lines.

[ Reply to This | # ]
A simpler way to mount drives - 100%
Authored by: syzygies on Feb 15, '06 04:21:06AM

UUID fstab mounting also works fine with FireWire drives, you've just got to set the automount preferences right, via

defaults write /Library/Preferences/SystemConfiguration/autodiskmount AutomountDisksWithoutUserLogin -bool true

It won't work for moving the swapfile, because moving the swapfile comes too soon in the boot process. I'd read this widely, and in fact I stated it as a truism on my web page, but after first reading this post I did a double take, "Maybe this behavior changed and I didn't test it recently!?" No, still doesn't work for moving the swap.

[ Reply to This | # ]
Using the UUID to reference volumes
Authored by: Cat2Mac on Feb 15, '06 01:12:58PM
I must cede to your greater knowledge of the nuances of the boot process. My intention was primarily to bring attention to an intrinsic property (that everyone in the thread seemed to be ignoring) of any volume/partition that is:
  1. Generated & recorded on each volume during formatting
  2. UNIQUE to each volume
  3. Stable & unchanging (unless reformatted)
  4. Stays the same even if mounted on a different computer.
Rather than looking for combinations of ephemeral values to identify a volume, why don't you use the one value that is designed to be a unique value: the UUID.

Please let me know if there is some reason why the UUID can't be used to identfy a drive (whether used as a swap volume or some other purpose),

[ Reply to This | # ]
Using the UUID to reference volumes
Authored by: TigerKR on Feb 15, '06 05:01:30PM

This thread is about setting up a swap partition.

You can't use an UUID to setup a swap partition because swap is setup before ANY UUID information is read/used; UUID only comes into play only AFTER the swap is happily swapping along already.

Therefore, this thread is ignoring UUID discussions because this thread is about setting up a swap partition.

[ Reply to This | # ]