LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   SCSI CDROM emulation (https://www.linuxquestions.org/questions/linux-hardware-18/scsi-cdrom-emulation-144554/)

atheist 02-10-2004 03:35 PM

SCSI CDROM emulation
 
Hi. My problem is that I recently emulated my IDE CDROM as an SCSI CDROM to be able to burn CDs. That worked fine although I've only tested burning compiled data CDs. Anyways. I did this by not loading IDE CDROM support in the kernel and loading SCSI emulation support and general support etc. So... I've been quite happy about my setup untill just now when I actually needed to use a CD. So I put it in my CDROM and cd my way to my CDROM.
Code:

anti@atheisticfaith:/cdrom$ cd /cdrom/
anti@atheisticfaith:/cdrom$ ls -a
.  ..

Only to find nothing there. So I go: "Ah. I probably need to mount it." My, being the newbie that I am, then try this:
Code:

atheisticfaith:/home/anti# mount hdd1 /cdrom/
mount: special device hdd1 does not exist

I then realize my computer probably detects it as an SCSI drive. Duh... and try this:
Code:

atheisticfaith:/home/anti# mount /dev/sda /cdrom/
mount: /dev/sda is not a valid block device

...and this:
Code:

atheisticfaith:/home/anti# mount /dev/sr0 /cdrom/
mount: block device /dev/sr0 is write-protected, mounting read-only

Which seemed to do the trick. Now my problem is that everytime I need to use a CD I need to type in mount /dev/sr0 /cdrom as root and everytime I need to eject a CD I need to umount it which doesn't always work and sometimes gives me mthis output:
Code:

atheisticfaith:/cdrom# umount /dev/sr0
umount: /cdrom: device is busy
umount: /cdrom: device is busy

Is there a simpler way of going about things like that?

snacky 02-10-2004 03:45 PM

Re: SCSI CDROM emulation
 
Quote:

Originally posted by atheist
Code:

atheisticfaith:/cdrom# umount /dev/sr0
umount: /cdrom: device is busy
umount: /cdrom: device is busy

Is there a simpler way of going about things like that? [/B]
It says "device is busy" because you're currently in the directory the device is mounted in.

DrOzz 02-10-2004 03:45 PM

well this is true, you do have to mount a cd to use it and you do have to umount it to eject it ....
now the reason because your getting device is busy is because you are in the /cdrom folder ... so you are in the mounted folder, so it is busy cause you are in it ...
so get out of the mount point and then umount it ...

snacky 02-10-2004 03:46 PM

BTW, I like the Mortal Kombat nostalgia ;)

atheist 02-10-2004 06:35 PM

Thanks. Yes, I noticed that it was because I was in the directory. o_O It's kind of annoying though having to become root everytime you wish to mount a CD... Anyways, thanks for the quick responses all.
Quote:

BTW, I like the Mortal Kombat nostalgia
Hehe, whee. Someone noticed. :)
That quote always stuck with me after playing Mortal Kombat 3 for countless hours as a kid.


All times are GMT -5. The time now is 09:23 AM.