LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-25-2002, 06:52 PM   #1
TlitJ
Member
 
Registered: Mar 2002
Location: Montana
Distribution: Mandrake 9.1
Posts: 40

Rep: Reputation: 15
Cannot mount cdrom as user or root in Mandrake 8.2


I cannot mount the cdrom or floppy after upgrading (clean install) of Mandrake 8.2. In KDE the CDROM and Floppy icons are locked. I also get an error that cdrom cannot be found in fstab when I try to mount it in a terminal. I only have 1 CD-ROM and 1 floppy drive. Here are 3 items that may help:

[root@localhost etc]# ls -la /dev | grep cdrom
lr-xr-xr-x 1 root root 13 Jun 25 07:16 cdrom -> cdroms/cdrom0
lr-xr-xr-x 1 root root 13 Jun 25 07:16 cdrom0 -> cdroms/cdrom0
drwxr-xr-x 1 root root 0 Dec 31 1969 cdroms/

[root@localhost etc]# ls -l /dev/cdrom
lr-xr-xr-x 1 root root 13 Jun 25 07:16 /dev/cdrom -> cdroms/cdrom0

Contents of fstab:
/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 /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
none /proc proc defaults 0 0
/dev/hda2 swap swap defaults 0 0

The fstab shows dev=/dev/hdc, but I'm linking to cdroms/cdrom0. Do I need to relink it to hdc? What's all this cdroms/cdrom0 output anyway? Any ideas?

Whoops - this probably should have went in Hardware forum.

Last edited by TlitJ; 06-25-2002 at 06:54 PM.
 
Old 06-25-2002, 06:59 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58


I'm not sure about the supermount line but it don't look like you need it to me

/dev/hdc /mnt/cdrom


the /dev/hdc is the master secondary, is that your cdrom

Last edited by DavidPhillips; 06-25-2002 at 07:14 PM.
 
Old 06-25-2002, 07:05 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
here is mine




[david@Micro lun0]$ ls -l /dev/hdc
lr-xr-xr-x 1 root root 30 Jun 25 13:51 /dev/hdc -> ide/host0/bus1/target0/lun0/cd
[david@Micro lun0]$ ls -l /dev/ide/host0/bus1/target0/lun0/cd
brw------- 1 david cdrom 22, 0 May 23 17:02 /dev/ide/host0/bus1/target0/lun0/cd



mount /dev/hdc /mnt/cdrom
 
Old 06-25-2002, 07:10 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
to use /etc/fstab

default mandrake:

/etc/fstab file entry

/dev/hdc /mnt/cdrom auto user,iocharset=iso8859-1,umask=0,exec,codepage=850,ro,noauto 0 0

[david@Micro david]$ mount /dev/hdc
 
Old 06-25-2002, 10:06 PM   #5
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
As root run mount /mnt/cdrom and see if it mounts. If it does, then try logging in as a user and run the same command. If it doesn't mount, then add user to the cdrom line in the fstab file and try mounting again.

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

Last edited by linuxcool; 06-25-2002 at 10:08 PM.
 
Old 06-25-2002, 11:37 PM   #6
TlitJ
Member
 
Registered: Mar 2002
Location: Montana
Distribution: Mandrake 9.1
Posts: 40

Original Poster
Rep: Reputation: 15
Well, I swear I'm not crazy - the CD I couldn't access was a bunch of rpms I downloaded off of my WinXP box and burned to CD (it has cable modem and is much faster to download stuff). I thought maybe there was a compatablity problem, so I took that out and put in CD#2 of the Mandrake install and in KDE it allowed me to mount and read the contents. So I put back in the rpms CD and I can read that one in KDE now. I no longer have the locked CDROM icon. And this was without editing the fstab, or setting new permissions! Thanks for the help anyway.

Really, I'm not crazy! Plus I've got KDE 3.0.1 now, sweet!

Last edited by TlitJ; 06-25-2002 at 11:39 PM.
 
Old 06-25-2002, 11:53 PM   #7
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Maybe there was some dirt on it. Glad it's working now.
 
Old 08-12-2002, 02:28 PM   #8
snowbaby
LQ Newbie
 
Registered: Dec 2001
Location: NorCal
Distribution: Mandrake 8.1
Posts: 18

Rep: Reputation: 0
Same problem-

I, too, am having the same problem using Mandrake 8.2: I can't mount the cdrom or floppy. I added the cdrom and floppy to my user using 'userdrake', but that didn't work. Also, when I try to access /etc/fstab (as root) I get: 'Permission denied'. I even tried what worked for TlitJ: I put in the Mandrake 8.2 CD 2 (which I could access) but once I put in another CD it was 'no access rights' again.

I tried '/mnt/cdrom' as root and I got: 'bash: /mnt/cdrom: is a directory'

Any ideas?

Thanks,
Sam
 
Old 08-12-2002, 04:18 PM   #9
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 18.04, Bodhi 5.0
Posts: 691

Rep: Reputation: 45
Umm, "supermount" works fine in my Mandrake 8.2, that was one of the fixes in the relase in fact. All you do is pop in a floppy (or CD) and it's mounted and available for use -- immediately. No need to specifically enter "mount" or "umount" commands anywhere.

I would not recommend removing supermount from the fstab entry for either the floppy or the CDROM devices, unless you can absolutely prove that they are not working.
 
Old 08-14-2002, 12:45 AM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Something is very bad wrong if you can't edit fstab as root

quote:

when I try to access /etc/fstab (as root) I get: 'Permission denied'.




what do you mean by access?

are you using vi or something like it.

Last edited by DavidPhillips; 08-14-2002 at 12:46 AM.
 
Old 09-09-2003, 12:53 PM   #11
WJWhite
LQ Newbie
 
Registered: Sep 2003
Location: Texas
Distribution: Small Linux 7.5
Posts: 9

Rep: Reputation: 0
Exclamation newbie cant access floppy or cd as root

please help!
After celebrating a successfull installation of ManDrake, i am now faced with this. When i click the cdrom, or the floppy icon on the KDE DE, i get an error message saying i dont have permission. I tryed this as user, and root. Then to my horror i noticed when i clicked the cdrom icon, the floppy drive light went on. Im not sure where to begin, any help will be greatly appreciated!!!
 
Old 09-09-2003, 03:51 PM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
show us the output of the following commands

cat /etc/fstab

cat ~/Desktop/<name of floppy file>
cat ~/Desktop/<name of cdrom file>


ls -l /dev/cdrom
ls -l /dev/fd0
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
mount cdrom as non-root user derfaust Slackware 31 07-30-2004 05:57 PM
Why can't a non-root user mount a cdrom? dokterneo Slackware 8 12-21-2003 07:01 PM
cdrom mount not by root eg72 Linux - General 1 12-05-2003 05:15 AM
Unresolved : Cannot access cdrom mount from any user except root??? acadcworks Linux - General 5 10-18-2002 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration