LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-10-2004, 03:35 PM   #1
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Rep: Reputation: 30
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?
 
Old 02-10-2004, 03:45 PM   #2
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
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.
 
Old 02-10-2004, 03:45 PM   #3
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
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 ...
 
Old 02-10-2004, 03:46 PM   #4
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
BTW, I like the Mortal Kombat nostalgia
 
Old 02-10-2004, 06:35 PM   #5
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Original Poster
Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 not shown with ide-scsi emulation RestInPieces Linux - General 4 08-30-2004 12:55 PM
can't mnt cdrom with scsi-emulation redhat8 Linux - Hardware 3 11-16-2003 10:36 AM
SCSI emulation for cd-r nrunge Linux - Hardware 5 11-04-2003 11:19 PM
scsi emulation doralsoral Linux - Software 9 11-03-2003 10:45 AM
Scsi Emulation!! FearPasion710 Linux - General 3 09-20-2003 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:51 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration