Monday, June 4, 2012

Disk image: No mountable file systems

I downloaded a disk image recently, but it refused to mount, complaining that there were "no mountable file systems". I tried redownloading it, because I knew that this error can be due to incomplete or corrupted disk images, but it still refused to open. After reading through countless webpages which told me to use long convoluted methods and third party data recovery software, I finally found a nice short Terminal command that worked on this site. The command was

hdiutil convert /path/to/yourfile.dmg -format UDRW -o newfilename.dmg

After using this command, a new disk image was created, which worked when I clicked on it. =D
I've recently written a couple of programs using Python. They are both text based programs designed to be run from a command line. The first is designed to help learn about the charges on common ions, and can be downloaded from here. The second is a command line based version of Minesweeper, and can be downloaded from here. Both programs are very much alpha versions, but they should work. You will need Python 3 to run them, which can be downloaded from here. NOTE: The Minesweeper game relies on the *nix curses module, and won't work on Windows.