diskutil: mounting after ejected, and other questions.

hazmat

Rusher of Din
I am playing with diskutil to mount and unmount my iPod. Besides it not being the same device every time, I guess depending on whether there's a CD in the drive, once I eject it, can I remount it? Quitting and reopening iTunes will do it, but I would like to be able to do it manually. Can I? And what's the difference as far as the iPod activity/heat usage between unmounting it and ejecting it? And is there and way to mount it (if just unmounted and not ejected) using some string that is always static so I don't have to have known what it was before it was unmounted?

Thanks.
 
Try using disktool. The important forms are these:

disktool -u device
disktool -m device
disktool -e device

These will unmount, mount, and eject a specified device. I've used all three with my USB floppy drive without problems. I think there might have been some trickery to get disktool -m to work perfectly, but I don't think it was anything hard to figure out. Maybe I'm thinking of a different command, though.
 
Back
Top