You are not logged in.
Pages: 1
I need to get my computer to treat an ISO image as if it's a physical optical drive. I've tried mounting it via loop devices, which is very useful, but it's not enough (basically, I need programs to be able to find it as a device, not a mounted filesystem). Any ideas?
Last edited by fflarex (2009-01-12 20:32:28)
Offline
You could create an empty file with dd like this:
dd if=/dev/zero of=disk-image count=40960That will create a 20 MB file
Then you can format it with a file system:
/sbin/mkfs -t ext3 -q disk-imageTell it to proceed even if it is not a block specific device.
Mount it and you have a virtual disc drive.
mount -o loop disk-image fsI borrowed this from here:
http://freshmeat.net/articles/view/1387/
Last edited by Cheesebaron (2009-01-12 20:36:18)
IBM Thinkpad X60 Tablet | Zen-sources | My AUR Builds
Offline
What do you mean "which is very useful, but it's not enough"? What are you trying to do exactly and why isn't mounting it good enough?
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
I think he wants to write to the ISO or a similar file while it's mounted, or that is at least my interpretation.
Last edited by Cheesebaron (2009-01-12 20:43:51)
IBM Thinkpad X60 Tablet | Zen-sources | My AUR Builds
Offline
I want programs to see it as if it is a actual, physical disk drive like /dev/cdrom, not a filesystem under /mnt or /media (for programs that automatically look for such drives but don't let me specify them manually). Cheesebaron's instructions are interesting and might be useful for something else (I may use it to test ext4), but not exactly what I'm looking for. I found similar programs that are available for windows (daemon tools and alcohol 120% came up in google searches), but it seems like this feature should be built in to linux (like nearly every other feature of those programs).
Last edited by fflarex (2009-01-12 21:10:29)
Offline
I found what I needed in cdemu (cdemu-daemon and cdemu-client from the community repo). I'll probably add this to the wiki later today, along with mounting loop devices too.
Offline
Can I ask, what is the benefit of this? As far as I know they are treated the same. The /media/cdrom is created from the /dev/ entry. When mounting an ISO you are just cutting out the need for the /dev/ entry yet for some reason you want it there. Why?
![]()
Offline
AcetoneIso is the answer your looking for.
Offline
Pages: 1