Mounting a disk image without the "nodev" option I need to mount a disk image. From terminal, I issued:

hdiutil attach &lt;myImage.sparseimage&gt;


Now if I run mount I get:

/dev/disk2s2 on /Volumes/&lt;myDisk&gt; (hfs, local, nodev, nosuid, journaled, noowners, mounted by administrator)


The nodev flag is creating problems for my next commands. Is there a way to disable it?
You can't easily change the way hdiutil mounts the image. You can, however, change the status of a mounted volume using the mount command with the -uoption. The following will do what you wish:

sudo mount -u -o dev /Volumes/&lt;mydisk&gt;