LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   re: how do I mount my cdrom-which is a cdrw (https://www.linuxquestions.org/questions/linux-hardware-18/re-how-do-i-mount-my-cdrom-which-is-a-cdrw-109919/)

ergo_sum 10-29-2003 09:31 AM

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

superbondbond 10-29-2003 09:36 AM

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

ergo_sum 10-29-2003 10:31 AM

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

superbondbond 10-29-2003 11:09 AM

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

ergo_sum 10-29-2003 04:44 PM

So what do I do?

superbondbond 10-29-2003 09:03 PM

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?

ergo_sum 10-31-2003 05:18 AM

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

superbondbond 10-31-2003 12:34 PM

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. ;)

michaelk 10-31-2003 03:45 PM

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?

ergo_sum 11-01-2003 04:31 AM

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

ergo_sum 11-01-2003 04:37 AM

Here is dmesg | grep 'hd'
ide_setup: hdc=ide-scsi
ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:pio
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?


All times are GMT -5. The time now is 05:19 PM.