LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-29-2003, 09:31 AM   #1
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Rep: Reputation: 30
re: how do I mount my cdrom-which is a cdrw


Hello All:

What is the filesystem for /dev/scd0? It's for a cdrw:
I'd like to mount it and then automount it so I don't have to go through this again.

Thanks,

ergo_sum
 
Old 10-29-2003, 09:36 AM   #2
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
filesystem is iso9660

mount /dev/scd0 -t iso9660 /mnt/wherever

If you add an entry for the drive in you /etc/fstab then you won't need to type it out every time. simply

mount /mnt/wherever

see man fstab
 
Old 10-29-2003, 10:31 AM   #3
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
Here is my fstab:

I seem to have a conflict somewhere, because my cdrw is either sc0 or cdrom. It's a cdrw, so I think it should be scd0.

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

Anxiously awaiting your reply.

ergo_sum
 
Old 10-29-2003, 11:09 AM   #4
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
Well, usually /dev/cdrm is just a soft link to another device, like /dev/hdc or something like that.

If you use SCSI emulation for an IDE CD-Rom drive (hdc=ide-scsi might show up in your lilo.conf) then it might show up as another device. I think on my system the CD-RW is designated as /dev/sr0, but I just re-directed the cdrom link

ln -s /dev/sr0 /dev/cdrom
 
Old 10-29-2003, 04:44 PM   #5
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
So what do I do?
 
Old 10-29-2003, 09:03 PM   #6
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
Well, we need to determine what device designation your CD-Rom is assigned to. (I'll show info from my systyem as an example)

look in your /etc/lilo.conf for something like this:
Code:
append="hdc=ide-scsi"
This shows that my system is using SCSI emulation for /dev/hdc
If that's the case, then look at the output of
cat /proc/scsi/scsi
mine looks like this:
Code:
Attached devices: 
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: LITE-ON  Model: LTR-40125S       Rev: ZS0J
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: Generic  Model: STORAGE DEVICE   Rev: 0125
  Type:   Direct-Access                    ANSI SCSI revision: 02
The first one is my CD-writer. Now, I don't remember exactly how I figured out that my drive was showing up as /dev/sr0, but that's what it ended up being, so I just created a soft link from that to /dev/cdrom. Like this
ln -s /dev/sr0 /dev/cdrom
Then I updated my fstab entry:
Code:
/dev/cdrom         /mnt/cdrw        iso9660     noauto,user      0   0
Does all that make sense?
 
Old 10-31-2003, 05:18 AM   #7
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
Yes.

Here is the relevant part in my /etc/grub.conf:

hdc=ide-scsi

And here is /proc/scsi/scsi:

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: LG Model: CD-RW CED-8080B Rev: 1.04
Type: CD-ROM ANSI SCSI revision: 02

The most important part of your post is that your cdrw is /dev/sr0. I need to figure out what my cdrw is. I don't have a listing of /dev/sr0.

So I guess my question is how do I figure out what my cdrw is?

Looking forward to your reply.

ergo_sum
 
Old 10-31-2003, 12:34 PM   #8
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
I'll have to track down where it told me that. Just out of curiousity, dod you try mounting /dev/sr0?

more later..... we're getting close.
 
Old 10-31-2003, 03:45 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,785

Rep: Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807Reputation: 2807
What distro / version are you running?

Have you tried mounting a data cd to /dev/scd0?

What are the output messages of dmesg for your CDRW?
 
Old 11-01-2003, 04:31 AM   #10
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
Running rh 7.3, kde desktop.
Didn't try mounting sr0 because there's no such device in /dev/ I'm a newbie, so does that matter or not?

ergo_sum
 
Old 11-01-2003, 04:37 AM   #11
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
Here is dmesg | grep 'hd'
ide_setup: hdc=ide-scsi
ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hdaMA, hdbio
ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdcMA, hddio
hda: WDC WD400EB-00CPF0, ATA DISK drive
hdc: LG CD-RW CED-8080B, ATAPI CD/DVD-ROM drive
hda: 78165360 sectors (40021 MB) w/2048KiB Cache, CHS=4865/255/63, UDMA(100)
hda: hda1 hda2 hda3
hdc: DMA disabled

This is all good, except for the DMA disabled part. Could that have something to do w/ my cdrw not working/ gone missing?
 
  


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
Can't mount CDROM/CDRW/DVDROM/FLOPPY kriidler Slackware 45 07-14-2005 05:09 PM
Setup of cdrom and cdrw - can't mount cd's? matsgl Mandriva 2 02-06-2005 08:26 PM
Changed CDROM to CDRW, Debian can't mount it bcalder01 Linux - Laptop and Netbook 9 09-12-2004 03:33 PM
Mount cdrom & cdrw Ed-Slack Slackware 7 01-05-2003 11:44 PM
CDROM, CDRW Mount Harryc Linux - Newbie 5 01-01-2003 05:18 AM

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

All times are GMT -5. The time now is 08:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration