|
|
Unmount (perhaps spin down) a disk device
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 unmountedBut 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 ejectedI 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.
Unmount (perhaps spin down) a disk device
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. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks 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.09 seconds |
|