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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
12-22-2002, 12:57 AM
|
#1
|
Member
Registered: Dec 2002
Location: Kalamazoo, MI - US
Distribution: OpenMandriva
Posts: 144
Rep:
|
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.

|
|
|
12-22-2002, 01:11 AM
|
#2
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
mounting rw is not an option, what commands are you using, what's in /etc/fstab
|
|
|
12-22-2002, 01:25 AM
|
#3
|
Member
Registered: Dec 2002
Location: Kalamazoo, MI - US
Distribution: OpenMandriva
Posts: 144
Original Poster
Rep:
|
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
|
|
|
12-22-2002, 02:09 AM
|
#4
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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
|
|
|
12-22-2002, 01:11 PM
|
#5
|
Member
Registered: Dec 2002
Location: Kalamazoo, MI - US
Distribution: OpenMandriva
Posts: 144
Original Poster
Rep:
|
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
|
|
|
12-22-2002, 02:03 PM
|
#6
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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 02:04 PM.
|
|
|
12-23-2002, 08:06 PM
|
#7
|
Member
Registered: Dec 2002
Location: Kalamazoo, MI - US
Distribution: OpenMandriva
Posts: 144
Original Poster
Rep:
|
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
|
|
|
12-23-2002, 08:28 PM
|
#8
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
12-23-2002, 08:30 PM
|
#9
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
12-23-2002, 09:58 PM
|
#10
|
Member
Registered: Dec 2002
Location: Kalamazoo, MI - US
Distribution: OpenMandriva
Posts: 144
Original Poster
Rep:
|
dmesg says:
hdc: LG CD-RW CED-8080B, ATAPI CDROM Drive
???
lol
|
|
|
12-23-2002, 10:02 PM
|
#11
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
12-23-2002, 11:04 PM
|
#12
|
Member
Registered: Dec 2002
Location: Kalamazoo, MI - US
Distribution: OpenMandriva
Posts: 144
Original Poster
Rep:
|
scsi : 0 hosts
scsi : detected total
and dats it
|
|
|
12-24-2002, 02:41 AM
|
#13
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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
|
|
|
12-24-2002, 10:43 AM
|
#14
|
LQ Newbie
Registered: Dec 2002
Location: Hilversum, The Netherlands
Distribution: Red Hat Linux 8.0
Posts: 6
Rep:
|
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
|
|
|
12-24-2002, 11:03 AM
|
#15
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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 11:19 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|