On 9/4/05, Ala'a Ibrahim <[EMAIL PROTECTED]> wrote: > Have you ever been wondering if you can get some software on Linux to what > Virtual CD or Fake CD Does, well in Linux you don't need this kind of > software cause Loopback Devices comes to the rescue. > > the first thing you need to do is to create an image of your CD, (HD,DVD, or > whatever) by > > $ cp /dev/cdrom ~/MyCDrom.img > > you can replace /dev/cdrom with any device you wont (or the proper one, > consult your documentation) and ~/MyCdrom.img with any other name or path, > it's your img file. > > after that you just need to mount it, applying that the you have a directory > to mount it to. > > $ mount -o loop=/dev/loop0 ~/MyCDrom.img /mnt/VirtualSystemFolder > > of course replace ~/MyCDrom.img /mnt/VirtualSystemFolder with the > appropriate values. > > if it failed try /dev/loop1 or /dev/loop2 instead of loop0 as you might be > using the loopdevice, issue > > $ ls /dev/loop* > > to see what loop devices you have. > > hope this was useful > > PS: Things may be changed on your system, if nothing worked then excuse me > for bothering you, and Consult the documentation of your distribution for > the loopback devices > > -- > Ala'a A. Ibrahim > http://360.yahoo.com/bai_83 > _______________________________________________ > General mailing list > [email protected] > http://mail.jolug.org/mailman/listinfo/general_jolug.org > > >
I'm not sure if cp would do the trick $ cp /dev/cdrom ~/MyCDrom.img I think you should use dd instead $dd if=/dev/cdrom of=~/MyCDrom.img And when mounting the file, you should not specify which loop device to use (ex. /dev/loop0) , you should let the kernel handle that by doing this $ mount -t iso9660 -o loop ~/MyCDrom.img /mnt/VirtualSystemFolder the -t specifies that the image file is an iso9660 formatted file, just like the cds correct me if I'm wrong please. Zaid -- --------------------------- Netiquette -> http://www.dtcc.edu/cs/rfc1855.html http://tumbak.at.preempted.net Netiquette Nazi -> http://redwing.hutman.net/%7Emreed/warriorshtm/netiquettenazi.htm --------------------------- _______________________________________________ General mailing list [email protected] http://mail.jolug.org/mailman/listinfo/general_jolug.org
