Click to See Complete Forum and Search --> : CD-Rom setup


Anjo
09-24-2002, 12:59 PM
I'm currently using Mandrake 8.2, I've got everything setup pretty good except I can't figure out cd-rom setup. Can anyone tell me how to remove a CD-ROM (I had two when I installed Linux, and removed the second on a WIN2K hard drive but forgot to on the Linux drive, oops) and also how to access files, say if I wanted to browse the files on the disc from Konqueror or another file manager. Or at least point me in the direction of a good tutorial....
Thanks for any help

JP83
09-24-2002, 01:07 PM
Editing /etc/fstab file is way to go...
it looks like this (this is my file)

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda4 / reiserfs defaults 0 0
/dev/hda6 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto user,noauto 0 0
/dev/hda2 /mnt/win_c vfat 0 0
/dev/hda5 /mnt/win_e vfat 0 0
/dev/hdb1 /mnt/win_d vfat 0 0
/dev/hdc /cdrom iso9660 user,noauto 0 0
/dev/hdd /cdrom1 iso9660 user,noauto 0 0
/dev/hda1 /boot reiserfs defaults 0 0

You have to remove one cdrom line (but the correct one) and this is the place that at leest needs editing what comes to ntfs partions.

mdwatts
09-24-2002, 05:06 PM
Mandrake has supermount, so you should only need to browse to the /mnt/cdrom directory using Konqueror.

Good tutorial? Have you tried Mandrake user and system admin guides available on their website?

I've viewed them from time to time and I don't even use Mandrake.

Anjo
09-24-2002, 06:23 PM
Yes I have looked at their documentation and have a hard copy of both the Reference Manual and User Guide. But I have found difficulty finding the topics I'm looking for as I haven't found a way to search the entire document so I was looking for an alternative.

I found the /etc/fstab file, but I still cant browse the cd contents from /mnt/cdrom. I thought maybe logging in as root and changing the permissions of the directory was all that was needed but it didn't work. Any suggestions? I appreciate the help

JP83
09-24-2002, 06:50 PM
Have you tried to mount that manually using mount command? If you have not, try this mount /dev/your cdrom device (spot it from fstab file).

Anjo
09-24-2002, 08:43 PM
I removed the line in the fstab relating to cdrom2 since I have removed that drive...but when I go to /mnt I still see both cdrom and cdrom2, and both say locked directory and I can't access the files on whatever cd is in the drive that way. I edited the file as root, then tried to access the cdrom as a basic user. My fstab is as follows:

/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda6 /home ext3 defaults 1 2
/mnt/cdrom /mnt/cdrom supermount dev=/dev/scd0,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/hdb1 /mnt/windows vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0

I'm a little puzzled about the scd0 in the /mnt/cdrom line, besides what I read about Linux emulating ide/atapi as scsi to use those drivers

Anjo
09-24-2002, 08:45 PM
Forgot to mention, that fstab, besides the removed cdrom2 line is the same as it was after installation

JP83
09-25-2002, 01:41 AM
Use this mount command mount /dev/scd0 and see what happens.

Anjo
09-25-2002, 09:10 AM
Well /dev/scd0 unlocked /mnt/cdrom2, which puzzles me since I deleted the reference to that in the fstab in the first place. So cdrom is definitely the one I wanted, which I guess was the one I deleted. Oops :o

JP83
09-25-2002, 09:46 AM
Yes that mount command that i send was wrong i was lookin that (scsi emulation part?). Is that cdrom device that you want to use cd writer? Try this mount /dev/cdrom

Anjo
09-25-2002, 03:02 PM
When you say try mount /dev/cdrom...do you mean putting that in the fstab or trying that command at the console in /mnt? Running the command it says it cant find /dev/cdrom in /etc/fstab or /etc/mtab, and if I do mount /dev/scd0 since my /etc/fstab still has /dev/scd0 for the cdrom, it appears to work but when I change to that directory and try to ls the files, I get Input/Output Error and when I try to access /mnt/cdrom from say Konqueror file browser, its locked and says I dont have permission. This is what I've got now

/dev/scd0 /mnt/cdrom supermount dev=/dev/scd0,fs=iso9660,ro,--,iocharset=iso8859-1 0 0

should I change it to....
/dev/scrom /mnt/cdrom supermount dev=/dev/scd0,fs=iso9660,ro,--,iocharset=iso8859-1 0 0
?

Anjo
09-25-2002, 04:27 PM
that should say should i change it to:

/dev/cdrom /mnt/cdrom supermount dev=/dev/cdrom,fs=iso9660,ro,--,iocharset=iso8859-1 0 0

JP83
09-25-2002, 05:35 PM
Try edit fstab replace your cdrom line or add this line:

/dev/hdc /cdrom iso9660 user,noauto 0 0

This is my fstab file hdc is secondary master and hdd is secondary slave (you may try both thise device's). Then use in console mount /dev/hdc (or hdd). Note make sure that mount point is directory, this try is risk free.

Anjo
09-25-2002, 07:43 PM
[root@UDRH etc]# mount /dev/hdc
mount: special device /dev/hdc does not exist

Thats after I replaced the line I had for the cdrom with yours

JP83
09-26-2002, 12:29 AM
Try this
/dev/hdd /cdrom iso9660 user,noauto 0 0
and then the mount command mount /dev/hdd

or if that is not working try add this
/dev/cdrom /cdrom iso9660 user,noauto 0 0
and use mount /dev/cdrom

If nothing works you can try adding device+number
like /dev/hdc1/cdrom iso9660 user,noauto 0 0
or /dev/hdd1 /cdrom iso9660 user,noauto 0 0
then try to mount /dev/hdc1 or mount /dev/hdd1

Anjo
09-26-2002, 01:50 AM
No luck, with /dev/hdd, /dev/hdc1, and /dev/hdd1, I got a special device does not exist

with /dev/cdrom I got
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: No medium found

garthm
09-26-2002, 06:19 AM
Originally posted by Anjo
This is what I've got now

/dev/scd0 /mnt/cdrom supermount dev=/dev/scd0,fs=iso9660,ro,--,iocharset=iso8859-1 0 0

should I change it to....
/dev/scrom /mnt/cdrom supermount dev=/dev/scd0,fs=iso9660,ro,--,iocharset=iso8859-1 0 0
?

The first two items in the list should be the same if you're using supermount -- and they should be the mountpoint. So, this should be the one:

/mnt/cdrom /mnt/cdrom supermount dev=/dev/scd0,fs=iso9660,ro,--,iocharset=iso8859-1 0 0

Unfortunately, looking at your earlier posts, this is what you started with. Are you sure the CD-ROM that remains is /dev/scd0? Try "ls -l /dev/scd0" and see if it exists or points to some other file. Are you using devfsd (look in /etc/lilo.conf)? Also check /etc/lilo.conf to make sure that your existing CD-Rom is using SCSI emulation (should have something like hdc=ide-scsi or something of that sorts).

G

JP83
09-26-2002, 09:17 AM
Originally posted by Anjo
No luck, with /dev/hdd, /dev/hdc1, and /dev/hdd1, I got a special device does not exist

with /dev/cdrom I got
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: No medium found

You are close to get it working is there a cd in the drive if not put the (data) cd there and retry. Then if that works you need some other options to enable burning.

JP83
09-26-2002, 12:40 PM
I have to change my configuration too now it's lookin like this
/dev/scd0 /cdrom iso9660 user,noauto 0 0
/dev/scd1 /cdrom1 iso9660 user,noauto 0 0

But if nothing works maybe it's easier to do a reinstallation.

Anjo
09-26-2002, 09:14 PM
The first two items in the list should be the same if you're using supermount -- and they should be the mountpoint. So, this should be the one:

/mnt/cdrom /mnt/cdrom supermount dev=/dev/scd0,fs=iso9660,ro,--,iocharset=iso8859-1 0 0

Unfortunately, looking at your earlier posts, this is what you started with. Are you sure the CD-ROM that remains is /dev/scd0? Try "ls -l /dev/scd0" and see if it exists or points to some other file. Are you using devfsd (look in /etc/lilo.conf)? Also check /etc/lilo.conf to make sure that your existing CD-Rom is using SCSI emulation (should have something like hdc=ide-scsi or something of that sorts).

G

I checked /etc/lilo.conf and saw nothing about devfsd, hdc=ide-scsi, or anything related to hdc. My CD-RW is secondary master, so does that mean I have to add that to the /etc/lilo.conf and then use the supermount command you gave earlier in /etc/fstab? Feels like I'm getting close, just not quite there yet.

Anjo
09-26-2002, 09:21 PM
actually, I did spot devfs=mount and hdc=ide-scsi, i was only looking down towards the bottom where my other hard drive info was

here's the /etc/lilo.conf

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
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/hda1
initrd=/boot/initrd.img
append="devfs=mount hdc=ide-scsi"
read-only
image=/boot/vmlinuz
label=failsafe
root=/dev/hda1
initrd=/boot/initrd.img
append="devfs=nomount hdc=ide-scsi failsafe"
read-only
other=/dev/hdb1
label=windows
table=/dev/hdb
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80
other=/dev/fd0
label=floppy
unsafe

Anjo
09-26-2002, 10:35 PM
One step closer, I edited the fstab so it now looks like this

/mnt/cdrom /mnt/cdrom supermount dev=/dev/scd0,fs=iso9660,ro,--,iocharset=iso8859-1 0 0

mount /mnt/cdrom in the console didnt bring up any errors so I assume it worked. So now with a disc in the drive, if i try to access /mnt/cdrom I get activity on the cd drive, but i get an Input/Output error. thats in the console, in Konqueror there is a lock over the cdrom directory and trying to access it I get a message that I dont have enough permissions to read file:/mnt/cdrom

garthm
09-27-2002, 06:16 AM
With supermount, there should be no need to issue the mount command. You should be able to just insert a CD and navigate to it (may need to be in X-Windows, but I'm not sure).

Be sure to "ls -l /dev/scd0" to see if it's a symlink to some other file (which it most likely is with that distro). Once you figure out where it's symlinked to, run "cdrecord --scanbus" to see where your CD-R is being found on the SCSI bus -- make sure the two jive. You also may need to symlink /dev/cdrom to /dev/scd0 for some software.

I've got the same version on my machine at home. When I get there, I'll try to capture some of this so you can compare your system with mine.

Incidentally, are you sure the CD you're trying to view is okay? Not corrupted somehow?

G

Anjo
09-28-2002, 10:29 PM
SUCCESS! ls -l /dev/scd0 and cdrecord --scanbus both showed the cdrom on scsi bus 0 so I tried accessing it with the linux installation cd and it worked. For some reason I get the Input/Output error on some music cds but at least I know it works now. Thanks to everyone for the help....now all I have to do is get the printer working, but that will be a different topic =)

garthm
09-29-2002, 01:09 AM
Originally posted by Anjo
For somer eason I get the Input/Output error on some music cds but at least I know it works now.

That could have been part of the problem. It's unneccesary to "mount" music CD's. I don't think their filesystem is iso9660. If you were able to mount SOME music CD's, but not others, it's probably because they were "enhanced" CD's -- they probably had data, along with the music.

G