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


Click here to return to the 'The best way to go about this..' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
The best way to go about this..
Authored by: hannibal on May 05, '02 04:07:09PM

It appears autodiskmount does not allow a location to be specified as the mount point for each device in the current release of Darwin. However, the version in CVS will respect locations defined in fstab - I imagine we'll be receiving the enhancement as part of 10.2.

As an interim measue, I made a copy of the /System/Library/StartupItems/Disks folder and placed it at /Library/StartupItems/Disks . The item at /Library takes precedence over the one under /System , so it can be customized without having to modify any configuration files provided by Apple.

I added commands to mount my Users and Applications partitions to the Disks script, before starting the autodiskmount daemon. Since they are already mounted, autodiskmount will simply ignore them.

I then booted into single user mode and used ditto to move the existing data under Applications and Users to the new partitions.

When 10.2 is released, it should be possible to add appropriate entries to fstab and remove the /Library/StartupItems/Disks folder and achieve the same result cleanly.



[ Reply to This | # ]
Warning!
Authored by: lastobelus on May 07, '02 06:37:40PM

This took me a few minutes to figure out...If you change your startup disk with the preferences panel, the device labels change and you have to modify your mounts. IE, what was /dev/disk0s10 may become /dev/disk1s10

I hit this because I had just installed another system on another disk prior to setting up the mount for Users on the old system. The startup disk was set to the new system but I had used the option key when booting to boot into the old system. However, this does not make the disk containing the system you're booting into disk0. Setting a startup disk using the startup disk preferences pane does set that disk to be disk0.

Which seems silly to me. They should be labelled by where they are on the bus, or at least in some way that remains the same.



[ Reply to This | # ]
Re:Warning!
Authored by: lastobelus on Jun 03, '02 01:48:11PM

Actually, the device labels are random, because as someone mentioned elsewhere, devices are discovered asynchronously.

Which makes it difficult to reliably mount the Users directory from another disk.



[ Reply to This | # ]