

Still another AS Discussions respondent had queried Mac Fix It on the reason for this and was told that it probably had to do with preparation of the disk for unmounting - but then, why wouldn't the same thing happen directly in Terminal? If you erase just the mbr you could use testdisk to attempt to recover data (in case you don't have erased the disk label). lsof grep then drag the drive to the terminal window to complete the path to the drives mount point, and press enter. this one erase the partition table also: dd if/dev/zero of/dev/disk0 bs512 count1. Disk Utility on the Apple Mac is a useful tool for formatting disks, partitioning.
#UNMOUNT DISK MAC TERMINAL HOW TO#
this code erase the MBR: dd if/dev/zero of/dev/disk0 bs446 count1. How to use the diskutil command from the Terminal in macOS on the Apple Mac. However, if this is done in AS editor as "do shell script", the unmount (while reliable) takes upwards of 20 seconds on my fast machine, whereas the mount time is very quick.Īccording to an AS Discussions respondent, the same sort of delay can be expected when using an obj-C application. Boot from cd or external hd and open terminal.

Don't know whether someone would like to give this a whirl, but it has been posted on Apple AS & UNIX discussions without a reply (except for others reinforcing the question).īear with me, as this does have to do with AS.
