Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
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.
|
 |
|
08-21-2002, 06:54 PM
|
#1
|
Member
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139
Rep:
|
cd-rw/cdrom/xcdroast CHAOS! help!
I've really tried to figure this out myself for 4 days. I've read, and tried everything on the forums, and all the usual info sources (extensive, no stone left unturned!). Here's the problem (s).
1.Got new cd-rw, replaced my 50x cdrom, and after one day struggling with scsi-emulation (and updating all relevant stuff), finally got the newest xcdroast/cdrecord to work fine. Verified that the cds I burned are good, on another linux machine. Thought I had solved it.
2. Big error. Now, I can't get the new cd-rw to act as a regular cdrom reader (I've tried everything). Sometimes, I can get it to open an empty window, but no files on the cd appear. It's the old locked /mnt/cdrom thing, but even if I get the lock to disappear in the root/mnt/cdrom menu, I still have no access.
3. Hooked up the old cdrom as slave (hdd), couldn't access at first, no matter what chmod or chown, and etc/fstab edit I tried. Problem is I have no access (root or user), but if it opens, no files on a cd appear.
4. Tried various commands to get output to investigate the problem- no luck. Did lilo, etc., explored all kinds of settings as recommended on forums, etc. Countless reboots, and many re-readings of everything I saved as "help files"- literally 30 hours on this, and I'm more confused than before.
5. Gave up, disconnected cd-rw, and hooked up the old 50x cdrom as master- rebooted. Thought I'd just switch cables. Same problem- no access on the old drive. Tried all the chmod-chown-lilo-fstab stuff again, re-read info, tore more hair out, and agonized some more.
6. Bottom line- now I have a cd writer if I hook it up (fantastic!), but alas, no regular cdrom, even if I unhook the cd-rw, and hook upthe old one as before. I thought I could use the new cd-rw drive as both writer and regular cdrom. I could even live with having to fool with disconnecting the cable whenever I needed to burn a cd, but now I don't even have any regular cdrom that will function!
I know it's some confusing permissions/fstab/lilo thing I'm overlooking, but I really need some help here. I was determined to do it myself, but apparently I'm up against the limit of my linux experience. I know there's a way to have the cd-rw drive also act as the regular cdrom, but I can't figure it out, and now things are worse, as the regular cdrom refuses to function.
Thanks,
wrc1944
|
|
|
08-21-2002, 06:56 PM
|
#2
|
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004
Rep:
|
Can you post the output of
more /etc/fstab
?
|
|
|
08-21-2002, 09:07 PM
|
#3
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Yes, please, as Bert requested...
And also your "drive layout" Where is primary hd located, secondary, burner, etc.
What distro?
No worries, this looks like it should be up and running as you would like in no time.
Cool
|
|
|
08-21-2002, 10:00 PM
|
#4
|
Senior Member
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692
Rep:
|
you may have already tried this, but it sounds like a symlink issue. by enabling scsi emulation the cdrom/burner isn't known as /dev/hdx any longer, it's most likely /dev/sr0, and the old symlink(for the cdrom) is still pointing at /dev/hdx. create a new symlink to it by typing (as root) ln -sf /dev/sr0 /dev/cdrom (or /mnt/cdrom or whatever it's labeled on your distro)
|
|
|
08-23-2002, 06:16 AM
|
#5
|
Member
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139
Original Poster
Rep:
|
OK-My primary hd is master on the primary ide channel, and cd is always master on secondary ide channel. (I'm dual-booting with win98SE, as shows up in fstab).
Should I rehook up only the new cd-rw as master on the secondary ide channel, like before, when I had the writer up and working fine? (As I mentioned, I have now only the old 50x cdrom hooked up right now (which no longer works).
In other words, I should be able to use the new cd-rw as either a writer, or a regular cdrom without having to edit fstab and/or lilo everytime- correct? This was my original intent and preference, but if need be, I could use the old cdrom as slave?
Here is my fstab output (with only the old cdrom hooked up right now).
-------------------------------------------------------------------------------------------
[wrc1944@localhost wrc1944]$ more /etc/fstab
/dev/hda11 / ext3 defaults 1 1
/dev/hda10 /boot ext3 defaults 1 2
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda14 /home ext3 defaults 1 2
/mnt/cdrom /mnt/cdrom supermount dev=/dev/hdc,fs=iso9660,ro,--,iocharset=iso8859-1
0 0
/mnt/floppy /mnt/floppy supermount dev=/dev/fd0,fs=vfat,--,iocharset=iso8859-1,uma
sk=0,sync,codepage=850 0 0
/dev/hda1 /mnt/win_c vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda5 /mnt/win_d vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda6 /mnt/win_e vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda7 /mnt/win_f vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda8 /mnt/win_g vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda9 /mnt/win_h vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hda13 /usr ext3 defaults 1 2
/dev/hda15 /var ext3 defaults 1 2
/dev/hda12 swap swap defaults 0 0
[wrc1944@localhost wrc1944]$
|
|
|
08-23-2002, 07:19 AM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
You can use your CDRW for both CDROM and burning, or you can use your CDRW for just burning, and your old rom for just rom. I will try to give you both ways so you can choose:
For using your cdrw for both burning and rom, and no extra rom, and have your CDRW on Secondary Master, do this:
ln -sf /dev/hdc /dev/cdrom
ln -sf /dev/scd0 /dev/cdburner
ln -sf /dev/scd0 /dev/cdrw
To make the correct device symlinks, and then add this to your fstab file:
/dev/cdrom /mnt/cdrom iso9660 users,noauto,ro 0 0
And then make the entry in /etc/lilo.conf to enable scsi emulation:
append="hdc=ide-scsi"
And make sure your kernel has scsi support, if not, you may have to rebuild your kernel.
Of course you have probably done alot of this, but this would be how you would do it from scratch in case you start over or whatever.
And no you don't have to continually edit fstab, once it works, it works.
If you have both CDRW and CDROM, and you make CDROM Master, and CDRW Slave and only use CDROM as rom and CDRW as burner, here's the commands and entries:
ln -sf /dev/hdc /dev/cdrom
ln -sf /dev/scd0 /dev/cdburner
ln -sf /dev/scd0 /dev/cdrw
And the same as above in fstab
And I am not sure if all that makes sense, or even if it's all correct, so if anyone sees any mistakes or typos or whatever, please feel free to correct me. Thanks
Cool
|
|
|
08-23-2002, 07:27 AM
|
#7
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Oh and a 3rd possibility (looks like the one you might want), to use your CDROM as a rom, your CDRW as a burner, and as a rom. This assumes CDROM as slave and CDRW master.
ln -sf /dev/hdc /dev/cdrom
ln -sf /dev/hdd /dev/cdrom2
ln -sf /dev/scd0 /dev/cdburner
ln -sf /dev/scd0 /dev/cdrw
and add this to fstab:
/dev/cdrom /mnt/cdrw noauto,users,ro 0 0
/dev/cdrom2 /mnt/cdrom noauto,users,ro 0 0
Ok, think that's about it.
Cool
|
|
|
08-23-2002, 07:45 AM
|
#8
|
Member
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139
Original Poster
Rep:
|
Many thanks to all. I'll give it another try. I assume my kernel has scsi support, as the burner worked perfectly before I disconnected it and tried the old cdrom by itself.
I guess I'll still run into permissions issues, but I should be able to get that fixed on my own.
wrc1944
|
|
|
08-23-2002, 10:48 AM
|
#9
|
Member
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139
Original Poster
Rep:
|
OK- rehooked up only the cd-rw, and did lilo edit again (hdc=ide-scsi), and got the burner (xcdroast) back working after a little trouble.
Do I do the symlink stuff as root, or user?
Also, when I try to use the cdrom icon on the Mandrake desktop, it still says access denied- no matter what I do doesn't seem to unlock it. Do I need to figure that out before I do the symlinks? I thought I understood chmod and chown, but apparently I'm doing something wrong.
wrc1944
|
|
|
08-23-2002, 12:39 PM
|
#10
|
Member
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139
Original Poster
Rep:
|
Did all the items for just the cd-rw hookup as you advised above. CD burner
works, but no cdrom function. Cdrom icon on desktop opens a konqueror window,
but always with 0 files and 0 directories with any cd I try. I just added the line to fstab- should I have edited a line already existing?
I did chown and /mnt/cdrom is owned by user and group wrc1944. Permissions are read for all, write for user and group. Should that be root, or what should the syntax be? I thought desktop cdrom access was best left at user only.Apparently it's no longer locked (as user wrc1944), but never opens showing anything on the cds.I've looked everywhere in the forums for similar posts, but no luck. Below are some errors I get when trying from konsole.
[wrc1944@localhost wrc1944]$ mount /dev/cdrom
mount: special device /dev/cdrom does not exist
[wrc1944@localhost wrc1944]$ mount /dev/hdc
mount: can't find /dev/hdc in /etc/fstab or /etc/mtab
[wrc1944@localhost wrc1944]$ mount dev/cdrom
mount: can't find dev/cdrom in /etc/fstab or /etc/mtab
[wrc1944@localhost wrc1944]$
--------------------------------------------------------------------
MY FSTAB:
/dev/hda11 / ext3 defaults 1 1
/dev/hda10 /boot ext3 defaults 1 2
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda14 /home ext3 defaults 1 2
/mnt/cdrom /mnt/cdrom supermount
dev=/dev/hdc,fs=iso9660,ro,--,iocharset=iso8859-1 0 0
/mnt/floppy /mnt/floppy supermount
dev=/dev/fd0,fs=vfat,--,iocharset=iso8859-1,umask=0,sync,codepage=850 0 0
/dev/hda1 /mnt/win_c vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda5 /mnt/win_d vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda6 /mnt/win_e vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda7 /mnt/win_f vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda8 /mnt/win_g vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda9 /mnt/win_h vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hda13 /usr ext3 defaults 1 2
/dev/hda15 /var ext3 defaults 1 2
/dev/hda12 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 users,noauto,ro 0 0
------------------------------------------------------------------------------
MY MTAB:
/dev/hda11 / ext3 rw 0 0
none /proc proc rw 0 0
none /dev devfs rw 0 0
/dev/hda10 /boot ext3 rw 0 0
none /dev/pts devpts rw,mode=0620 0 0
none /dev/shm tmpfs rw 0 0
/dev/hda14 /home ext3 rw 0 0
/mnt/floppy /mnt/floppy supermount
rw,sync,dev=/dev/fd0,fs=vfat,--,iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda1 /mnt/win_c vfat rw,iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda5 /mnt/win_d vfat rw,iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda6 /mnt/win_e vfat rw,iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda7 /mnt/win_f vfat rw,iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda8 /mnt/win_g vfat rw,iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda9 /mnt/win_h vfat rw,iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda13 /usr ext3 rw 0 0
/dev/hda15 /var ext3 rw 0 0
--------------------------------------------------------------------------
MY LILO:
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
vga=normal
default=linux
keytable=/boot/us.klt
lba32
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
ignore-table
image=/boot/vmlinuz
label=linux
root=/dev/hda11
initrd=/boot/initrd.img
append="quiet devfs=mount hdc=ide-scsi"
vga=788
read-only
image=/boot/vmlinuz
label=linux-nonfb
root=/dev/hda11
initrd=/boot/initrd.img
append="devfs=mount"
read-only
image=/boot/vmlinuz
label=failsafe
root=/dev/hda11
initrd=/boot/initrd.img
append="failsafe devfs=nomount"
read-only
other=/dev/hda1
label=windows
table=/dev/hda
other=/dev/fd0
label=floppy
unsafe
image=/boot/vmlinuz-2.4.18-21mdk
label=2418-21
root=/dev/hda11
read-only
optional
vga=normal
append="quiet devfs=mount hdc=ide-scsi"
initrd=/boot/initrd-2.4.18-21mdk.img
|
|
|
08-23-2002, 12:45 PM
|
#11
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
You have to mount the drive first with CD in it
mount /dev/cdrom /mnt/cdrom
|
|
|
08-23-2002, 12:59 PM
|
#12
|
Member
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139
Original Poster
Rep:
|
Doesn't work, user, or root. I put in a cd with known files and directories on it. Here's the result:
[wrc1944@localhost wrc1944]$ mount /dev/cdrom /mnt/cdrom
mount: only root can do that
[wrc1944@localhost wrc1944]$ su
Password:
[root@localhost wrc1944]# mount /dev/cdrom /mnt/cdrom
mount: special device /dev/cdrom does not exist
[root@localhost wrc1944]#
I used to just click the cdrom icon as user, and it opened fine. I guess that was supermount working, in Mandrake 8.2.
|
|
|
08-23-2002, 04:00 PM
|
#13
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
so yuo are positive that hdc is your CD-R/RW, by doing
cdrecord -scanbus
you get something similar to
Code:
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
truncated for clarity ...
scsibus2:
2,0,0 200) 'RICOH ' 'CD-R/RW MP7120A ' '1.10' Removable CD-ROM
2,1,0 201) *
2,2,0 202) *
2,3,0 203) *
2,4,0 204) *
2,5,0 205) *
2,6,0 206) *
2,7,0 207) *
and
dmesg reports something similar to
Code:
Aug 21 16:13:29 matrix kernel: Vendor: RICOH Model: CD-R/RW MP7120A Rev: 1.10
Aug 21 16:13:29 matrix kernel: Type: CD-ROM ANSI SCSI revision: 02
then you checked that /dev/scd0 exists
ls -l /dev/scd0
brw------- 1 root disk 11, 0 Apr 11 10:25 /dev/scd0
And if you followed MasterC's instructions you should be able to mount
mount /dev/cdburner /mnt/cdrom
You just need to adjust the fstab file, you cd-burner is no longer known as /dev/hdc
That symlink
ln -sf /dev/hdc /dev/cdrom is irrelevant, sorry Chad.
so if you don't want to touch your /etc/fstab file any longer
just do
ln -sf /dev/scd0 /dev/cdrom
you might want to double check that /dev/scd0 exists if it is not then check if /dev/sr0 exist
and make a symlink appropriately
ln -sf /dev/sr0 /dev/cdrom
|
|
|
08-24-2002, 12:46 AM
|
#14
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Hey no problem Boris, I was just going away, figured I was bound to make a mistake or 2, and was very happy to see someone found one. So that's cool that you found at least 1, thanks.
Cool
|
|
|
08-24-2002, 01:12 AM
|
#15
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
It is OK, we are all learning by mistakes  without them there is no fan - linux becomes uninteresting, I am afraid to comapare it to that other OS (should I call it just a junk of purely written code based mostly on open source contributions) 
|
|
|
All times are GMT -5. The time now is 08:54 PM.
|
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
|
|