LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-22-2002, 01:57 AM   #1
dfctve_end_user
Member
 
Registered: Dec 2002
Location: Kalamazoo, MI - US
Distribution: Ubuntu 8.04 Hardy Heron LTS x86_64
Posts: 144

Rep: Reputation: 15
Question mounting cdrw read only in mandrake 7


I am new to linux and this forum so go easy on me....
I am trying to mount my cdrw for read only access and the message is:

mount: /dev/cdrom is not a valid block device

it's not important because I have a dvd I can mount but it's the principle of the thing. I also was wondering if there is drag and drop support for kfm or any other file manager, kinda like Direct CD. I am proudly a FORMER windows user so I have a whole other perspective to learn. Thanks to anyone who at least reads this.

 
Old 12-22-2002, 02:11 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
mounting rw is not an option, what commands are you using, what's in /etc/fstab
 
Old 12-22-2002, 02:25 AM   #3
dfctve_end_user
Member
 
Registered: Dec 2002
Location: Kalamazoo, MI - US
Distribution: Ubuntu 8.04 Hardy Heron LTS x86_64
Posts: 144

Original Poster
Rep: Reputation: 15
fstab:

/dev/hda5 /boot ext2 defaults 1 2
/dev/hda6 / ext2 defaults 1 1
/dev/hda7 /home ext2 defaults 1 2
/dev/hdb5 swap swap defaults 0 0
/dev/fd0 /mnt/floppy auto sync, user, noauto, nosuid, nodev, unhide 0 0
none /proc proc defaults 0 0
none /dev/pts devpts mode=0620 0 0
/dev/cdrom /mnt/cdrom auto user, noauto, nosuid, exec, nodev, ro 0 0
/dev/cdrom2 /mnt/cdrom2 auto user, noauto, nosuid, exec, nodev, ro 0 0
 
Old 12-22-2002, 03:09 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
what command are you using?

maybe the cdrw is not /dev/cdrom

maybe it's /dev/sr0 or something else

do you have ide-scsi set on the device in lilo.conf
 
Old 12-22-2002, 02:11 PM   #5
dfctve_end_user
Member
 
Registered: Dec 2002
Location: Kalamazoo, MI - US
Distribution: Ubuntu 8.04 Hardy Heron LTS x86_64
Posts: 144

Original Poster
Rep: Reputation: 15
the command I am using in terminal is:

mount /mnt/cdrom

as far as the entry in lilo.conf I have an entry under
image=/boot/vmlinuz
that says

append="hdc=ide-scsi"


It's all greek to me lol
 
Old 12-22-2002, 03:03 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
ok, the line in lilo.conf will make the cd a scsi device probably /dev/sr0

so you need to see what /dev/cdrom is linked to, it may be linked to /dev/hdc which will not work


try this

Code:
mount /dev/sr0 /mnt/cdrom
if that works then you can link /dev/cdrom to /dev/sr0

Code:
ln -sf /dev/sr0 /dev/cdrom
let us know if the mount command does not work

Last edited by DavidPhillips; 12-22-2002 at 03:04 PM.
 
Old 12-23-2002, 09:06 PM   #7
dfctve_end_user
Member
 
Registered: Dec 2002
Location: Kalamazoo, MI - US
Distribution: Ubuntu 8.04 Hardy Heron LTS x86_64
Posts: 144

Original Poster
Rep: Reputation: 15
I tried mounting /dev/sr0 and I got this error:

mount: the kernel does not recognize /dev/sr0 as a block device
(maybe 'insmod driver'?)

round and round we go lol
I appreciate you helping me though.

ty
 
Old 12-23-2002, 09:28 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Could you kindly post the output of dmesg here, but try to snip it to just show us sections about your drive(s). If you are unsure, just go ahead with the full thing.

Somewhere in there it should tell you something about what device it'll be. And one more thing, what version of Mandrake are you using, I am wondering if you are using DevFS.

Cool
 
Old 12-23-2002, 09:30 PM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Ah yes, how to get the output of dmesg:
open up a terminal, and type:
dmesg|less

This will make it scrollable, and that way you can scroll through and find the relevant sections.

That is a pipe ( | ) btw, it's just above the Enter key on my keyboard.

Cool
 
Old 12-23-2002, 10:58 PM   #10
dfctve_end_user
Member
 
Registered: Dec 2002
Location: Kalamazoo, MI - US
Distribution: Ubuntu 8.04 Hardy Heron LTS x86_64
Posts: 144

Original Poster
Rep: Reputation: 15
dmesg says:

hdc: LG CD-RW CED-8080B, ATAPI CDROM Drive

???

lol
 
Old 12-23-2002, 11:02 PM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
ha ha ha, ok, can you post the whole thing? There is actually a section in there (usually) that describes the device and the scsi device that is being emulated. Here's my snippet:

Code:
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: TOSHIBA   Model: DVD-ROM SD-M1402  Rev: 1010
  Type:   CD-ROM                             ANSI SCSI revision: 02
  Vendor: SONY      Model: CD-RW  CRX210E1   Rev: 2YS1
  Type:   CD-ROM                             ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 40x/40x cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
sr1: scsi3-mmc drive: 12x/40x writer cd/rw xa/form2 cdda tray
If that helps any

Cool
 
Old 12-24-2002, 12:04 AM   #12
dfctve_end_user
Member
 
Registered: Dec 2002
Location: Kalamazoo, MI - US
Distribution: Ubuntu 8.04 Hardy Heron LTS x86_64
Posts: 144

Original Poster
Rep: Reputation: 15
scsi : 0 hosts
scsi : detected total

and dats it
 
Old 12-24-2002, 03:41 AM   #13
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
append="hdc=ide-scsi"

is not working

you will probably want to put it at the beginning of the lilo.conf file

in the mean time you can just use
Code:
mount /dev/hdc /mnt/cdrom
 
Old 12-24-2002, 11:43 AM   #14
IHateJazz
LQ Newbie
 
Registered: Dec 2002
Location: Hilversum, The Netherlands
Distribution: Red Hat Linux 8.0
Posts: 6

Rep: Reputation: 0
Question question for David

Hi there,

I am having the same problem with mij Philips CDRW. Whenever I (try to)
mount a cd the whole system freezes and I have to reboot. I run RH 8.0. David, should I make a seperate question for my problem and put my dmesg output in there or can I contact you directly? Either way is fine with me.

By the way, sorry for interrupting,

Job
 
Old 12-24-2002, 12:03 PM   #15
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I don't think the distro matters a lot, although knowing that a particular distro put's a certain link to a device would help.

As far as freezing, I don't know

We need to know how your bios sees the drive, how many
what you can do is post part of your lilo.conf file like this

Code:
cat /etc/lilo.conf | grep append

append="hdd=ide-scsi"
and this
Code:
dmesg | grep CD

hdc: CREATIVE CD5230E, ATAPI CD/DVD-ROM drive
hdd: Hewlett-Packard CD-Writer Plus 9100b, ATAPI CD/DVD-ROM drive
hdc: ATAPI 52X CD-ROM drive, 128kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
  Vendor: HP        Model: CD-Writer+ 9100b  Rev: 1.07
  Type:   CD-ROM                             ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0

also let's see what this says
Code:
ls -l /dev/cdrom 

lr-xr-xr-x    1 root     root           35 Dec 19 11:15 /dev/cdrom -> /dev/ide/host0/bus1/target0/lun0/cd


and also your /etc/fstab

Code:
cat /etc/fstab


/dev/hda3        swap             swap        defaults         0   0
/dev/hda2        /                ext3        defaults         1   1
/dev/hda1        /mnt/win_c       vfat        gid=99,uid=99,umask=0,user,noauto,rw  1   0
/dev/hdb1        /mnt/win_d       vfat        gid=99,uid=99,umask=0,user,noauto,rw  1   0
/dev/cdrom       /mnt/cdrom       iso9660     noauto,user,ro   0   0
/dev/cdrw        /mnt/cdrw        iso9660     noauto,user,ro   0   0
/dev/fd0         /mnt/floppy      auto        noauto,user,rw   0   0
none             /proc            proc        defaults         0   0


we can check to see if it's set up right, but as far as the freezing goes, it's hard to say
 
  


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
help mounting cdrw jgmyshko Fedora 7 11-16-2005 07:52 PM
cant read cdrom and cdrw cholombeh Slackware 6 08-20-2004 02:45 AM
CDRW only read only mounted ?? delta function Slackware 3 07-07-2004 04:13 AM
Mounting CDRW in Knoppix mattrand_99 Linux - Hardware 2 11-08-2003 09:19 PM
Read/Write to DirectCD formatted CDRW? mcarter Mandriva 1 08-31-2003 08:55 PM


All times are GMT -5. The time now is 06:16 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