LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-30-2009, 02:23 AM   #1
bogdan_rec
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
Question 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
 
Old 06-30-2009, 04:04 AM   #2
bogdan_rec
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Lightbulb

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.
 
Old 06-30-2009, 04:32 AM   #3
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 308

Rep: Reputation: 39
Hmm, I wonder if you had just symlinked it on each disc change, would that have worked just as well?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cdrom /dev/scd0 laurentwahl Linux - Hardware 3 04-28-2005 12:00 PM
knoppix looks for CDROM in /dev/scd0 dongmin Linux - Newbie 1 05-22-2004 11:44 PM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 08:36 PM
cdrom isnt /dev/scd0 anymore? riddlebox80 Slackware 2 06-25-2003 03:36 PM
why my Slave ATAPI IDE CDROM recognized as /dev/scd0 Alexop Linux - Newbie 9 02-25-2003 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration