Bug 51885 - can't mount cdrom devices
Summary: can't mount cdrom devices
Status: RESOLVED WORKSFORME
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: devices (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Joseph Wenninger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-14 06:08 UTC by Braden MacDonald
Modified: 2005-02-05 19:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Braden MacDonald 2002-12-14 06:08:29 UTC
Version:            (using KDE KDE 3.0.99)
Installed from:    Compiled From Sources
Compiler:          GCC 3.2 Mandrake 9.0 defaults
OS:          Linux

When I try to mount either my cdrom or my cd burner with devices:/ or on the desktop, I get an error saying "Mount: Only root can do that." On the command line, "mount /mnt/cdrom" and "mount /dev/hdc" work fine. So does unmounting from devices:/

Here is my fstab:
/dev/hda5 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda8 /home ext3 defaults 1 2
/dev/hdc /mnt/cdrom iso9660 users,iocharset=iso8859-1,codepage=850,noauto,ro,umask=0 0 0
/dev/scd0 /mnt/cdrom2 auto users,iocharset=iso8859-1,codepage=850,noauto,ro,umask=0 0 0
/dev/hda1 /mnt/windows vfat iocharset=iso8859-1,codepage=850,umask=0 0 0
none /proc proc defaults 0 0
none /tmp tmpfs defaults 0 0
/dev/hda7 /usr ext3 defaults 1 2
/dev/hda6 swap swap defaults 0 0
Comment 1 Joseph Wenninger 2002-12-14 09:12:24 UTC
Subject: Re:  New: can't mount cdrom devices

Hi

> 
> When I try to mount either my cdrom or my cd burner with devices:/ or on the desktop, I get an error saying "Mount: Only root can do that." On the command line, "mount /mnt/cdrom" and "mount /dev/hdc" work fine. So does unmounting from devices:/
> 
> Here is my fstab:
> /dev/hda5 / ext3 defaults 1 1
> none /dev/pts devpts mode=0620 0 0
> /dev/hda8 /home ext3 defaults 1 2
> /dev/hdc /mnt/cdrom iso9660 users,iocharset=iso8859-1,codepage=850,noauto,ro,umask=0 0 0
> /dev/scd0 /mnt/cdrom2 auto users,iocharset=iso8859-1,codepage=850,noauto,ro,umask=0 0 0
> /dev/hda1 /mnt/windows vfat iocharset=iso8859-1,codepage=850,umask=0 0 0
> none /proc proc defaults 0 0
> none /tmp tmpfs defaults 0 0
> /dev/hda7 /usr ext3 defaults 1 2
> /dev/hda6 swap swap defaults 0 0
> 

That's strange.

Under certain circumstances "mount /dev/hdc /mnt/cdrom" seems not to
work as a user, although both are correctly in the fstab. The bad thing
is if a user has more then one device pointing to one mount point and
the other way round :( I'll try to only specify the mountpoint. Do you
use RCx, CVS HEAD or CVS BRANCH_3_1 ?

Kind regards
Joseph Wenninger

Comment 2 Braden MacDonald 2002-12-15 03:02:13 UTC
I'm using qt from qt-copy HEAD about five days ago, and KDE 3.1RC5 from 
ftp.kde.org. 
 
You are right, on the command line "mount /dev/hdc /mnt/cdrom" generates this 
error message. I'm not sure why. 
 
Maybe you could check if you need to specify both the device and the mountpoint? 
Comment 3 Lucas Moreno Encabo 2002-12-30 00:35:24 UTC
I know what's the problem: 
 
Mounting a device with this syntax: 
 
	mount <device> <mntpoint>  
 
is only permited to the root user, because mount doesn't read de fstab config, 
just mount whatever device in <device> in <mntpoint> 
 
When doing like this: 
 
	mount <mntpoint> 
 
Mount parses the fstab looking for an entry for that mount point, and, if you have 
enough permissions it's mounted. 
 
In devices:/ every device should be mounted like in the second way, reading 
fstab. 
 
 
Another thing. When using supermount, it also trys to mount the device. And that 
should't be done, because a supermounted device is always mounted. Should i 
report this in another bug also? 
 
Bye 
Comment 4 Martin Koller 2005-02-05 19:33:06 UTC
In 3.4 devices:/ ioslave was replaced with media:/ which doesn't show the problem reported.