Hacker News new | ask | show | jobs
by Skunkleton 2959 days ago
You can make that even easier:

    # losetup -Pf /path/to/disk.img
    # mount /dev/loop0pX /mnt
1 comments

Additionally, this method is not susceptible to race conditions when other loop devices are being configured.