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: |
mounting rw is not an option, what commands are you using, what's in /etc/fstab
|
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 |
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 |
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 |
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 Code:
ln -sf /dev/sr0 /dev/cdrom |
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 |
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 |
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 |
dmesg says:
hdc: LG CD-RW CED-8080B, ATAPI CDROM Drive ??? lol |
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 Cool |
scsi : 0 hosts
scsi : detected total and dats it |
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 |
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 |
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:
Code:
dmesg | grep CD also let's see what this says Code:
ls -l /dev/cdrom and also your /etc/fstab Code:
cat /etc/fstab we can check to see if it's set up right, but as far as the freezing goes, it's hard to say |
David,
here we go with the output: Quote:
Job:o |
If you want to find the device name of the CDRW, go to /etc/sysconfig/hwconf. you can see the CDRW drive from there. then you can mount it with.
mount -t iso9660 /dev/**device /mnt/***mount point. The iso9660 is the filesystem type of CDs. I'm sorry if this isn't relevant to the current discussion; i haven't read all of it. hope it helps |
Ok I looked at a post that was submitted a while ago and had problems. It had basically told me to link /dev/scd0 to /dev/cdrw or /dev/cdrom1. Well I tried that last week and puked my links. Since I am not savy enough I just reinstalled (that would be reinstall number 50 in my linux experience). So what I did is said "What the heck" (yeah I acutally said that) and tried to do this:
mount /dev/scd0 /mnt/cdrom Well guess what happened.... I heard the cdrw read the disk and POOF! Right to the prompt with no error. So.... I linked my cdrw to /dev/scd0 /dev/cdrw and my dvd to /dev/hdd /dev/dvd. Then I had to verify.... And it blew up in my face. So I tried to specify a file system. Still no go... Then I remembered this isn't windows lol I went into a handy dandy utility called linuxconf. Under that utility there is an area called File Systems and yet another setting called Access Local Drive. This is where I get real proud of myself. I changed the device and mount settings for my drives there and it asks me (in submission to my awesome newbie powers :cool: ) if I want to create the mount files since they weren't there. Sure, why not. It will even autodetect the file system (I think) because the file system field says auto. Now it works like magic. I am extremely grateful to this site and will continue to come here as well as refer it to as many people as I can but unfortunately I can't convert the world... but I'll work on it. Thanks again, Nik |
yea you can see your output of dmesg | grep CD
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray that tells you there that it's sr0 not scd0 |
Hey yeah that's pretty cool. And it figures that I fix one thing and another hits me in the face. I can't get xcdroast or gtoaster to work. What info do I need to give you?
|
try running this
cdrecord -scanbus this should show the cdrw cdrecord -scanbus Cdrecord 1.11a24 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling Linux sg driver version: 3.1.24 Using libscg version 'schily-0.6' scsibus0: 0,0,0 0) 'HP ' 'CD-Writer+ 9100b' '1.07' Removable CD-ROM 0,1,0 1) * 0,2,0 2) * 0,3,0 3) * 0,4,0 4) * 0,5,0 5) * 0,6,0 6) * 0,7,0 7) * that's the first step since xcdroast only works with scsi drives, sr0 is scsi so you should see yours with that working ok you should be able to record. What kind of errors do you get from xcdroast |
if you are trying to run it as a normal user there are a few things to do first
you need a group that has access, and you will add approved users to that group Code:
groupadd cdwrite Code:
gpasswd -a david cdwrite Code:
cd /usr/bin/ then you should run xcdroast as root and go to the setup users section and setup users permissions, paths for isos, etc.. then you can run it as a normal user the file in /usr/bin/xcdroast is going to bring up the root passwd, the actual xcdroast is in /usr/sbin/xcdroast if you want to replace it run this Code:
ln -sf /usr/sbin/xcdroast /usr/bin/xcdroast |
Hi David,
you were right, after changing fstab and my cd rom connection to sr0 my system doesnṫ freeze any more. The bad news, however, is that i get the following message after mounting my cdrw in teminal: [root@localhost Job]# mount /dev/sr0 /mnt/cdrom mount: special device /dev/sr0 does not exist I feel like a special agent that doesn't officially exist! thanks for your help, Job |
run this and see if you have this file
ls -la /dev/.devfsd crw------- 1 root root 8, 0 Dec 31 1969 /dev/.devfsd if you do then you are using devfs which may require you to use a different naming scheme like this link lr-xr-xr-x 1 root root 36 Dec 19 11:15 /dev/cdrw -> /dev/scsi/host0/bus0/target0/lun0/cd the link you want to use may need to be created after boot in rc.local or some other file if you want, or you can use the devfs name in fstab, this is the devfs name of a cdrw using ide-scsi /dev/scsi/host0/bus0/target0/lun0/cd |
Hi David,
the result of the listing: [Job@localhost Job]$ su Password: [root@localhost Job]# ls -la /dev/.devfsd ls: /dev/.devfsd: Onbekend bestand of map (last is dutch for unknown file or map) so I am missing something somewhere?! Job |
Never seen anything like that
see if you have these folders /dev/scsi/host0/bus0/target0/lun0/cd |
I have the /dev folder which is pretty usual. The rest is missing! Install scsi? How to do that?
Job |
look in this file
/etc/sysconfig/hwconf see if you can find the name of the cd writer is sr0 in there or something else |
I looked to see what was in /etc/sysconfig/hwconf on mine because I can't burn cd's in any other program except kisocd. I am trying to use gtoaster to burn data and audio cd's and I get i/o errors and such.
I am beginning to think it can't be done. Here is part of the error messages I am getting. If you know of I way I can pipe it to cat I will do that and just copy and paste to the site: cdrecord WARNING: Track size unknown. Data may not fit on disk. cdrecord: input/output error, write_g1: scsi sendcmd: retryable error status: 0x2 (CHECK CONDITION) write track data: error after 0 bytes Child exited unexpectedly. If anyone has any ideas let me know. thanks |
David,
cd output of /etc/sysconfig/hwconf: class: CDROM bus: SCSI detached: 0 device: scd0 driver: ignore desc: "Philips CDRW4012P" host: 0 id: 0 channel: 0 lun: 0 here we get back to scd0. What to use now? sr0 or scd0? Job ps rated you yesterday in affero under nickname firewalkwithme, ok youŕe welcome |
looks like scd0 doesn't it
and that's when it locks up? mount -t iso9660 /dev/scd0 /mnt/cdrom |
I still can't burn with cdrecord frontends. I copied a data cd with kisocd but I can't get xcdroast or gtoaster to work. cdrecord keeps dumping with i/o error. I am losing my patience with it lol
maybe it doesn't like my burner or something. It's detected by cdrecord -scanbus. need help!!! |
Oh I had one other question.
An error I get with cdrecord had to do with unable to determine track size or something like that. I am trying to burn from audio disc in my dvd to the cdr. Is there a different way I should set permissions for dvd and cdrw to get it to work (i.e. groups, users, or setuid setgid)? And if so which dev should I use for cdrw (sr0, sg0, scd0)? It seems to be permission related to me but it could just be the windows user in me. |
Well it looks like I found the problem....
::sigh:: It would help greatly if I defined a filesystem on the new cdr so it can be read. |
All times are GMT -5. The time now is 08:09 PM. |