Click to See Complete Forum and Search --> : CD-ROM & Floppy wont work!


Trigger-X
06-15-2001, 06:02 PM
Hello, I have Linux-Mandrake 7.2 and I just installed it on a seperate machine and when I try to access my CD-ROM and Floppy drives it gives me this:
-------
Error-KDesktop
'Unable to enter file:/mnt/cdrom.
'You do not have access rights to this location.'
--------
It does this for the floppy too. I also went into root and tryed it and it gives me the same message. How do I fix this?! Thanks for your time.

Craig McPherson
06-15-2001, 07:05 PM
I've never really used graphical icons or anything like this.

This is the real way to mount a floppy:

1. If the floppy is listed in /etc/fstab, and the mount point exists:

mount /mnt/floppy

2. If the floppy isn't listed in /etc/fstab

mount -t auto /dev/fd0 /mnt/floppy

The mount point "/mnt/floppy" must exist.

A CD-ROM is the same, except instead of /dev/fd0, it's an IDE device name for an IDE CD-ROM, or a SCSI device name for a SCSI CD-ROM. IE /dev/hdc, etc. Often, /dev/cdrom is a symlink to the CD-ROM device.

bdl
06-15-2001, 07:37 PM
Check the permissions on your /mnt, /mnt/cdrom & /mnt/floppy dirs, if they exist. Perhaps the directories had the execute bit removed for some reason.

nuisance
06-15-2001, 09:29 PM
Could you also post your /etc/fstab file?

Trigger-X
06-15-2001, 10:50 PM
Alright I'm in file:/etc/fstab and this is what it states:
----------------------
/dev/hda1 / ext2 defaulte 1 1
none /dev/pte devpte mode=0620 0 0
/dev/hda6 /home ext2 defaulte 1 2
/mnt/cdrom /mnt/cdrom supermount fe=iso9660,
dev=/dev/cdrom 0 0
/mnt/floppy /mnt/floppy supermount fe=vfat,dev=/dev/fd0 0 0
none /proc proc defaulte 0 0
/dev/hda5 swap swap defaulte 0 0
-----------------------------------
I also check permissions and it has read,write,executable checked.
Hope this imformation helps!

royce
06-15-2001, 11:11 PM
supermount in mdk7.2 has problems
reinstall/custom/no supermount.
or
right click /mnt and make new dir's
floppy1 and cdrom1 and add to fstab

Linuxcool
06-15-2001, 11:21 PM
You could try editing your fstab file. From this:

/dev/hda1 / ext2 defaulte 1 1
none /dev/pte devpte mode=0620 0 0
/dev/hda6 /home ext2 defaulte 1 2
/mnt/cdrom /mnt/cdrom supermount fe=iso9660,
dev=/dev/cdrom 0 0
/mnt/floppy /mnt/floppy supermount fe=vfat,dev=/dev/fd0 0 0
none /proc proc defaulte 0 0
/dev/hda5 swap swap defaulte 0 0

To this:

/dev/hda1 / ext2 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda6 /home ext2 defaults 1 2
/mnt/cdrom /mnt/cdrom iso9660 noauto,user,ro,dev=/dev/cdrom 0 0
/mnt/floppy /mnt/floppy vfat noauto,user,rw,dev=/dev/fd0 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0

Roy Smith
06-15-2001, 11:34 PM
the icons created during install are nfg. just delete them and create new floppy device and create new cd-rom device by right-clicking on the desktop. AFTER choosing icons (if you do that) and selecting the mount point, close the properties box THEN re-open it and set permissions. for some reason it can't be done in a single step.

Trigger-X
06-16-2001, 10:20 AM
Alright,
I tryed to edit fstab but it woudlent let me for some reason I didnt understand that mabey I'm doing something wrong. Whenever I right click the CD-ROM/Floppy icon on the desktop and check exec then click ok and enter again it is still checked I try to open it gives me that message when I go to file:/mnt there are 3 folders there:
CD-ROM (Locked)
Disk (Unlocked)
Floppy (Locked)
it gives me the same message when trying to access the CD-ROM and Floppy, when I right click on it, it give me this message:
'Could not enter /mnt/cdrom'
I think I remeber it once saying this directory does not exist but it didnt do that this time for some odd reason. Does the same in root. Should I just delete the icon on the desktop and in file:/mnt/cdrom and floppy and do that? I dont exactly know how to make a cdrom is /mnt I do know how on the desktop though... What do I do? Thanks.

Roy Smith
06-16-2001, 12:11 PM
i don't believe you mentioned it (but i may have overlooked it) but i expect that your floppy and cd-rom icons point to URLs - that's why they're nfg. when you right-click on the desktop, you should see the word "Create New" in the menu that pops up. When you put your mouse pointer on "Create New", you get an additional menu of various new items you can create. of those items, you will want to left-click on "Floppy Device". left-click on the third tab ("Device") and left-click on the triangle beside the *empty* device-name space. you should get a small drop-down list of devices - left-click on the one that contains the word "floppy". Both the device and mount-point spaces will be filled-in by doing this. left click on "OK" and you'll see a new "Floppy device" icon on your desktop. right-click on this new icon, left-click on "Properties", set the permissions you want it to have, and left-click "OK". now, when you left-click on the new icon (with a floppy disk in the drive), you should get listing of files on the floppy disk. assuming this works ok for you, you can/should delete the original floppy icon.
repeat the procedure for cdrom device.

almost forgot - if you change anything, such as the name of the device or the icon graphic, then you'll have to re-do the permissions. just don't try to make such a change AND set permissions at the same time, make it a two-step process.

[ 16 June 2001: Message edited by: Roy Smith ]

Trigger-X
06-16-2001, 04:18 PM
Alright here are the results of what happened I did everything you told me Roy and when I clicked the new icon (after modifying) I got this:
---------
Unable to enter file:/mnt/cdrom
You do not have access rights to this location.
---------
The new icon brang up Konquer and gave me that message. Do I delete cdrom in file:/mnt/cdrom ? would that fix it or what am I doing wrong now? :confused:Thanks.

Roy Smith
06-16-2001, 05:50 PM
Linuxcool made a good suggestion, i think. just change your fstab per his specification.
you should be able to edit fstab (or anything else! so be careful with this...) if you do it as root. if you want to stay within the gui, then it's easiest to just login as root. if you're ok at the command line, then you can "su" to root within a terminal (or use kde's "terminal (SU)"; same thing but it automatically calls su for you). either way, as root you are indeed lord of the manor, so to speak; what you say, goes...for good or ill. just double-check for accuracy before you exit the editor, and you should be fine.

Linuxcool
06-16-2001, 06:55 PM
Trigger-X, it's possible you don't have permission to write the edited file. First, you have to be root to edit and save the fstab file. So, run this command ' chmod u+rw /etc/fstab ' then try to edit again.

If you are successful, then try to mount the floppy and cdrom using the mount command from a command line. Try running the command ' mount /mnt/floppy '. If that doesn't work, try ' mount /dev/fd0 /mnt/floppy '. Don't forget to have a disk in the drive when you run the mount command.
If it works, then try the cdrom with the command ' mount /mnt/cdrom ' or ' mount /dev/cdrom /mnt/cdrom '. Don't forget to insert disk first.
Also, when you are done, unmount the drives. All you have to do is run the same commands with a ' u ' added to the begining like this ' umount /mnt/floppy '.

One other thing, in one of your posts you said that you had directories named ' CD-ROM ' and ' Floppy '. If these are the names of your /mnt directories, then the mount commands won't work because of the case of the names. You'll have to create them if they don't exist. Just use the ' mkdir ' command.

[ 16 June 2001: Message edited by: Linuxcool ]

Trigger-X
06-17-2001, 06:39 PM
I ran the command in terminal chmod u+rw /etc/fstab and went to the directory in konquer and tryed to edit it and still wouldent let me... I was in root like you said also...

Linuxcool
06-17-2001, 11:57 PM
When you logged into kde, did you log in as a normal user? After you logged in, did you open up a terminal window and run ' su ' then run the ' chmod u+rw /etc/fstab ' command? Next, did you run konqueror?

If you did all that, then you weren't root when you tried to edit the file. ' su ' only made you root in the terminal window. When went outside the terminal window, you were just a normal user. So, when you started up konqueror, you were starting it up as a normal user and wouldn't have the necessary permission to edit the file.

So, if that's true, log into kde as root then run ' chmod u+rw /etc/fstab ' again. Then try to edit fstab again. One other thing, run this command ' ls -l /etc/fstab ' and post the output of it.

royce
06-18-2001, 08:06 AM
Doh.

You were warned half a page back.

Trigger-X
06-18-2001, 04:20 PM
I did everything you told me too Linuxcool, I was in root and did the chmod u+rw /etc/fstab in the terminal and went to konquer in root and went to the fstab and tyred to edit it and it will not let me backspace a part of the fstab or change it. This is what is shows when I 'ls -l /etc/fstab' this is what it shows:

-rw-r--r-- 1 root root 284 Jun 14 15:33 /etc/fstab

Hope some of this info helps to solve this problem.

Linuxcool
06-19-2001, 12:23 AM
OK. Try ' chmod u+rw /etc '. Then try editing. If that doesn't work, try a different editor. I'm running out of ideas.

Just a wild thought, I wonder if Konqueror is purposely blocking you from editing the file. After all, it's an important file and editing it can mess things up. Are you able to edit any other files using Konqueror.

[ 19 June 2001: Message edited by: Linuxcool ]

slapNUT
06-19-2001, 01:06 AM
When you are in Konqueror and you click on the /etc/fstab file it puts you into a text viewer not a text editor.

You need to right click on the file and select open with then type in kedit in the command box. Or in your terminal type pico /etc/fstab.

[ 19 June 2001: Message edited by: slapNUT ]

Craig McPherson
06-19-2001, 02:07 AM
Originally posted by Roy Smith:
<STRONG>IPChains - and it hurts! </STRONG>

That's nothing. IPTables.

Trigger-X
06-19-2001, 11:34 AM
Alright, I succesfully edited the fstab in kedit with no problems, I rebooted and when I click floppy it goes to the location file:/mnt/floppy and both the icons, cdrom and floppy are unlocked in the file:/mnt/ when I click the cdrom link on the desktop I get:
Could not mount device
The reported error was:

mount: /mnt/cdrom is not a block device

I can enter it though the file agent but when I put a disc in nothing shows up, do I need to mount it? and if so how? Thanks

slapNUT
06-19-2001, 09:36 PM
You should have a cd in the drive before you click on (mount) it.

Linuxcool
06-19-2001, 11:43 PM
When you click on the floppy icon, do you get a file manager window that shows you what is in the root directory of the floppy? If so, then you have successfully mounted the floppy.

Let's edit your fstab file again. I'm going to have you change it to a form I used to. Just change your floppy and cdrom lines to:

/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/fd0 /mnt/floppy vfat noauto,user,rw 0 0


Try it and let me know how it works. Make sure that the symbolic link ' /dev/cdrom ' points to the correct device. If your cdrom is connected as secondary master, then it should be pointing to ' /dev/hdc '. If it's not, you'll have to edit the symbolic link or just edit the fstab line for the cdrom to look like this:

/dev/hdX /mnt/cdrom iso9660 noauto,user,ro 0 0

Replace the ' X ' with the correct drive letter.

[ 19 June 2001: Message edited by: Linuxcool ]

Trigger-X
06-25-2001, 05:55 PM
Yes, a file manager comes up when I go to the floppy dive. I'm not sure if the cdrom is connected as secondary master... is there a way to find out? I'm not exactly sure what I would fill it for the hdX I think my main drive is hda ... Would I fill that in there?
Thanks.

Linuxcool
06-26-2001, 12:20 AM
OK. You inserted a floppy disk and clicked on the icon and a file manager window came up. Did you see the files that were on the floppy in the file manager window? If you did, then the floppy is mounted.

About the cdrom drive, did you edit the file like I showed you (/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0 ) then put a cdrom disk in it and then click on it's icon? Did a file manager pop up? If it did, then it's mounted.
As for determining what letter your cdrom drive is, I believe you'll have to open up your computer and see how it's connected. If it's secondary master, then it would be hdc. Try running ' ls -l /dev/cdrom ' to see what this symbolic link points to. You'll see what it points to on the right hand side of the screen.
As for your main drive, your fstab file indicates that it is hda.

[ 26 June 2001: Message edited by: Linuxcool ]

Trigger-X
06-27-2001, 11:01 PM
Alright, When I click on the Floppy Link it brings up a file manager, I dont have a floppy in though because I cant seem to get it in there... that is a diffrent problem, but the CD-ROM is the main thing I want to fix. When I click the CD-ROM link the with a CD in it, the file manager comes up but does not show any items on the CD. I did edit the fstab like you said:

/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0

and that what I said, above is what it does. When I run a ls -l /dev/cdrom it gives me this:

lrwxrwxrwx 3 Jun 25 18:39 /dev/cdrom -&gt; hdc

So it is saying it is hdc, does that mean I have to edit my fstab like this?
/dev/hdc /mnt/cdrom iso9660 noauto,user,ro 0 0

Thanks for your time.

Linuxcool
06-28-2001, 01:12 AM
The output of the ls command is fine. /dev/cdrom is a symbolic link to hdc. If your cdrom drive is connected as secondary master, then hdc is correct.

Now, something is bothering me about the fact you get no error messages when you mount the floppy with no floppy in it. On my system, I get an error. So should you.

When you mount your cdrom drive with a disk in it, a file manager should come up and display the contents of its root directory, but in your case it's not. Are you inserting a disk that can be read?

Try this, at next boot up run the command mount . This will print out the devices that are mounted. Your floppy and cdrom should not be mounted. If they are, it might have something to do with supermount. Post a copy.

[ 28 June 2001: Message edited by: Linuxcool ]

royce
06-28-2001, 07:29 PM
royce
Grasshopper
Member # 6058
Member Rated:

posted 15 June 2001 11:11 PM
--------------------------------------------------------------------------------
supermount in mdk7.2 has problems
reinstall/custom/no supermount.
or
right click /mnt and make new dir's
floppy1 and cdrom1 and add to fstab


=========================

june 29

supermount has mount your removable media as scsi