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

Click here to return to the 'Unmount a volume at startup' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Unmount a volume at startup
Authored by: laurencewilks on Jun 14, '05 02:22:03PM
I'm no expert with disks via the command line but I think this line:

/usr/sbin/diskutil unmount /dev/disk0s5

actually unmounts the partition s5 on disk0

To unmount the disk use:

/usr/sbin/diskutil unmountDisk /dev/disk0

To remount a disk use:

/usr/sbin/diskutil mountDisk /dev/disk0

A good place to understand how this works is:

man diskutil

[ Reply to This | # ]
Unmount a volume at startup
Authored by: bdm on Jun 14, '05 09:40:02PM

Yes, you are completely right. My extra disk has only one partition so for me it made no difference, but in general unmountDisk should be used. Your observation also lets us note that individual partitions can be unmounted (or mounted for that matter) at startup by this method. -- Brendan.

[ Reply to This | # ]