sonenbli@oxy.edu (Andrew D. Sonenblick) (10/30/89)
Ok, short and sweet: do you have code that will erase a mounted volume? If you do, please send a copy to me at sonenbli@oxy.edu
doner@henri.ucsb.edu (John Doner) (11/02/89)
In article <57892@tiger.oxy.edu> sonenbli@oxy.edu (Andrew D. Sonenblick) writes: > Ok, short and sweet: do you have code that will erase a mounted > volume? If you do, please send a copy to me at sonenbli@oxy.edu I wouldn't mind some code to erase an UNmounted volume! I have this disk for which the response is always "The desktop file couldn't be created on the disk..." followed by ejection. Nor can the desktop file be rebuilt. I don't get any chance to try to reinitialize it. John Doner doner@henri.ucsb.edu
pasek@ncrcce.StPaul.NCR.COM (Michael A. Pasek) (11/04/89)
In article <57892@tiger.oxy.edu> sonenbli@oxy.edu (Andrew D. Sonenblick) writes: > Ok, short and sweet: do you have code that will erase a mounted > volume? If you do, please send a copy to me at sonenbli@oxy.edu Why would you want to do this, when the "Erase Disk" selection of the "Special" menu will accomplish this for you ? Anyway, it sounds definitely dangerous, and probably not "nice", either. M. A. Pasek Switching Software Development NCR Comten, Inc. (612) 638-7668 CNG--er--PU4 Port Devel. 2700 N. Snelling Ave. pasek@c10sd3.StPaul.NCR.COM Roseville, MN 55113
tim@hoptoad.uucp (Tim Maroney) (11/05/89)
In article <57892@tiger.oxy.edu> sonenbli@oxy.edu (Andrew D. Sonenblick) writes: > Ok, short and sweet: do you have code that will erase a mounted > volume? If you do, please send a copy to me at sonenbli@oxy.edu In article <1679@ncrcce.StPaul.NCR.COM> pasek@c10sd3.StPaul.NCR.COM (M. A. Pasek) writes: >Why would you want to do this, when the "Erase Disk" selection of the "Special" >menu will accomplish this for you ? Anyway, it sounds definitely dangerous, >and probably not "nice", either. The answer is: You use the Disk Initialization Package documented in Inside Mac, volume II, chapter 14. Note that drive numbers are not used very often, so be sure you understand them first. You can get the drive number associated with a volume from the ioVDrvInfo member returned from PBHGetVInfo. -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com "Superhero stories could best be described as entertainment that externalizes childhood power fantasies." -- Timothy Fay on rec.arts.comics