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


Click here to return to the 'Unmount (perhaps spin down) a disk device' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Unmount (perhaps spin down) a disk device
Authored by: LC on Feb 06, '04 12:42:44PM
In Panther, I wanted to manipulate the status of the internal (20GB, 4200rpm ATA) disk drive; I found that these are effective --

/usr/sbin/diskutil mountDisk disk0
(...)
/usr/sbin/diskutil unmountDisk disk0
(* stdout: *) Disk disk0 unmounted
But the "unmountDisk" (or any other unmount) doesn't spin down that drive, so this will actually spin it down:

/usr/sbin/diskutil eject disk0
(* stdout: *) Disk disk0 ejected
I suspect that mount no longer consults /etc/fstab, so we can't specify to ignore filesystems there. An entry in which file will tell autodiskmount to ignore a Volume? Larry.

[ Reply to This | # ]
Unmount (perhaps spin down) a disk device
Authored by: LC on Feb 06, '04 08:23:04PM
Uh, I noticed that diskutil depends on a bunch of frameworks including DiskArbitration. It's only usable after SystemStarter
has been executed. I even managed (by doing something dumb in the boot scripts) to provoke the dreaded --
Carbon Lazy Values Total size: 11057 bytes!
by trying to execute diskutil before the kernel extension loader service was up! (Duh;)
After SystemStarter is done, I can play with diskutil just fine; Larry.

[ Reply to This | # ]