LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mounting cdrw read only in mandrake 7 (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-cdrw-read-only-in-mandrake-7-a-39099/)

zeroability 12-22-2002 12:57 AM

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.

:study:

DavidPhillips 12-22-2002 01:11 AM

mounting rw is not an option, what commands are you using, what's in /etc/fstab

zeroability 12-22-2002 01:25 AM

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

DavidPhillips 12-22-2002 02:09 AM

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

zeroability 12-22-2002 01:11 PM

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"
:study:

It's all greek to me lol

DavidPhillips 12-22-2002 02:03 PM

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

zeroability 12-23-2002 08:06 PM

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

MasterC 12-23-2002 08:28 PM

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

MasterC 12-23-2002 08:30 PM

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

zeroability 12-23-2002 09:58 PM

dmesg says:

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

???

lol

MasterC 12-23-2002 10:02 PM

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

zeroability 12-23-2002 11:04 PM

scsi : 0 hosts
scsi : detected total

and dats it

DavidPhillips 12-24-2002 02:41 AM

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

IHateJazz 12-24-2002 10:43 AM

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

DavidPhillips 12-24-2002 11:03 AM

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


All times are GMT -5. The time now is 02:41 AM.