|
|
A simpler way to mount drives - 100%
Several ways to mount a specified disk @ boot have been suggested ... involving scripts, partition size, & other non-trivial ways of determining the unique identity of a drive/partition. Instead of these methods why not use a constant, unique identifier that is already present in each partition ... the UUID.
I have used the following method, with 100% success for about 18+ months on both 10.3 & 10.4, to mount a second SATA drive I added to my G5 PowerMac as the "/Users" volume: 1. Open Disk Utility. 2. Select the partition/volume (not physical drive) you want to mount & click Info. 3. Write down the value for "Universal Unique Identifier" 4. Edit /etc/fstab & add the following line: UUID=xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx/mountpoint hfs rw 1 2 for example: I used "UUID=832760B0-DA18-3865-B22A-C86F16493D15 /Users hfs rw 1 2" to mount my second drive as my "/Users:" directory, putting all user files are on my other drive. (NOTE: The mount point must be a preexisting empty directory.) 5. Reboot. This info was discussed in an earlier hint, quite a few months ago. Hope this is helpfull...
A simpler way to mount drives - 100%
Only after a half hour of experimenting did I realize that you never actually said that you tried this for moving the swapfile. Your confidence threw me.
A simpler way to mount drives - 100%
Your suggestion to use fstab will only work 100% of the time for single disk setups. If you have multiple disks, especially across multiple busses, then the disk numbering order won't necessarily be the same after every reboot.
A simpler way to mount drives - 100%
Each volume/partition has a unique, unchanging UUID.
A simpler way to mount drives - 100%
UUID fstab mounting also works fine with FireWire drives, you've just got to set the automount preferences right, via
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.
Using the UUID to reference volumes
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:
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),
Using the UUID to reference volumes
This thread is about setting up a swap partition. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.32 seconds |
|