how do you view / access the contents of a mounted dmg drive through TERMINAL hdiutil diskmount
Posted
by
A. O.
on Super User
See other posts from Super User
or by A. O.
Published on 2012-09-16T17:37:22Z
Indexed on
2012/09/16
21:42 UTC
Read the original article
Hit count: 224
My external USB drive failed. I made a .dmg image file of the drive using disk utility. Later I was not able to mount the .dmg image. I used terminal
hdiutil attach -noverify -nomount name.dmg
diskutil list
diskutil mountDisk /dev/disk4
then received the following message:
Volume(s) mounted successfully
However, I cant see the drive or access its contents through Finder. DUtility shows the drive as ghost but I still cant mount it using diskutility.
Terminal tells me that the drive is mounted and constantly shows it in the diskutil list.
pwd is not the mounted .dmg image. I dont know how to enter into the mounted image drive to see its contents. So in case what I said sounds like I see the files in the mounted image no this is not the case. I do not know how to access or even change the pwd within Terminal. I was hoping to see the mounted drive tru finder but I do not see that. So I need help as to how to find a way to access the mounted image drive if it was really mounted. Terminal says that it was and it shows it under diskutil list as a /dev/disk4.
Can someone please help me access the files on this drive?
© Super User or respective owner