Simulate mounting ISO to /dev/cdrom (populate /dev/scd0 with data)
Hi all,
I have a software installed on 10 CDs.
I am a tester and need to install this very often and become sick of this.
To install it I have to insert the first CD, run setup from it, when it is finished it asks for the next CD (had to insert CD nr 2) and so on.
I made 10 ISO images and mount the first image to /media/cdrom using this command:
mount -t iso9660 -o ro,loop=/dev/loop0 /home/bogdan/free_install/image1.iso /media/cdrom/
and run setup from it.
When it is finished installing from this image it asks for the next CD but
mounting image2.iso will not be the same as inserting CD2 into drive and
setup cannot find the second CD.
Mounting iso is not populating /dev/scd0 right? only a folder, can be any folder.. is just a mount.
I need to simulate somehow the real mount of a CD rom into drive. When I insert a real CD into drive the system populates /dev/scd0 or /dev/hdc with cdrom's data which is not happening on an regular mount.
How can I simulate insertion of a CD .. a system mount, when CD is inserted?
Thanks in advance,
Bogdan
ps: I also tried to link /dev/cdrom to /media/cdrom but no use.. same problem
|