How do I convert .dmg to .img?
According to a very old source [circa 2006]


  In Terminal, 
  
  hdiutil convert disk.dmg -format RdWr -o disk.img 
  
  where disk.dmg is the path to your image (input) 
  and disk.img the output image