Simulate mounting ISO to /dev/cdrom (populate /dev/scd0 with data)
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
Haha.. after I've tried all kind of crazy things I manage to make the
setup recognize my second mount by mounting the second CD with the same ISO name..
I found out that the setup takes the device dir name the name of the folder/ISO file..
On a normal CD mount the device name is always the same /dev/scd0 but on an ISO mount the device dir name is the iso's file name.
So I rename image1.iso to image.iso and mount it and run setup.
When mount the second cd I renamed image2.iso to the same name image.iso
and the setup recognize it because has the same device dir name.
I wrote this in case someone may have same problem and this might be a possible solution in their case.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.