Reply
 
Thread Tools Display Modes
  #1  
Old 03-10-2010, 01:11 PM
bjs bjs is offline
Member
 
Join Date: Dec 2009
Location: Bloxom, Virginia
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default Only root can mount floppy drive in Hubble
Okay, I know the floppy drive is all but dead with the advent of removable usb storage and cheap cd/dvd burners, but they are included in the base system so you'd think one would be able to get them to work.

First let me start of with:

sysctl vfs.usermount=1 has been set (was set by default)
/dev/fd0 /media msdosfs rw,noauto 0 0 has been added to /etc/fstab
perm /dev/fd0 0666 has been added to /etc/devfs.conf
user is in both the wheel & operator groups

However both dolphin and command line attempts as user to mount drive return:

Code:
mount_msdosfs: /dev/fd0: Operation not permitted.
Yet if I su to root I can mount the drive on the command line without a problem. I have also tried different mount points in /etc/fstab, ie: /mnt and creating /floppy without any luck.

Anyone have any ideas?
__________________
Experience is simply the name we give our mistakes - Oscar Wilde

All I ask is a chance to prove that money can't make me happy - Spike Milligan
Reply With Quote
  #2  
Old 03-11-2010, 07:11 AM
Fatmice Fatmice is offline
Senior Member
 
Join Date: Feb 2008
Location: US
Posts: 888
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: Only root can mount floppy drive in Hubble
Well of course. /media is root write only directory.

Try this instead.

mkdir ~/floppy

mount_msdosfs /dev/fd0 ~/floppy
__________________
|================================================= =====|
|Please search the forum prior to posting. Intellectual laziness is not nice. | (Does not apply to non-offenders =))
|================================================= =====|
Reply With Quote
  #3  
Old 03-12-2010, 12:51 AM
bjs bjs is offline
Member
 
Join Date: Dec 2009
Location: Bloxom, Virginia
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Only root can mount floppy drive in Hubble
Well, that sort of works. A user can mount a floppy from the command line but it doesn't work for dolphin. For me I can deal, however, the misses and son are not so command line savvy.

In 7.1 I was able to:
Code:
mkdir /floppy
chown root:operator /floppy
chmod 774 /floppy
cat perm /dev/fd0 0666 >> /etc/devfs.conf
cat /dev/fd0 /floppy msdosfs rw,noauto 0 0 >> /dev/fstab
Then in everyone's home directory:
Code:
ln -s /floppy
That was it, eveyone had access to the floppy drive with easy mounting and umount. No Problems!!

But something changed in either dolphin, hal, or PolicyKit that won't allow this kind of setup in 8.0. I really would love to find the proper way to set it up so it works the way it's supposed to.

Quote:
Well of course. /media is root write only directory.
Btw, I just figured I'd try /media since I know that's where usb storage devices get mounted. I also tried /mnt and /floppy as well. I tried just about everything I could think of without any success. So I'm still open to suggestions....
__________________
Experience is simply the name we give our mistakes - Oscar Wilde

All I ask is a chance to prove that money can't make me happy - Spike Milligan
Reply With Quote
  #4  
Old 03-12-2010, 08:14 AM
Fatmice Fatmice is offline
Senior Member
 
Join Date: Feb 2008
Location: US
Posts: 888
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: Only root can mount floppy drive in Hubble
What does your /etc/devfs.rules look like?
__________________
|================================================= =====|
|Please search the forum prior to posting. Intellectual laziness is not nice. | (Does not apply to non-offenders =))
|================================================= =====|
Reply With Quote
  #5  
Old 03-12-2010, 01:29 PM
bjs bjs is offline
Member
 
Join Date: Dec 2009
Location: Bloxom, Virginia
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Only root can mount floppy drive in Hubble
This is /etc/devfs.rules as installed. I have not made any changes here are I believe they are correct.

Code:
[devfsrules_common=7]
add path 'ad[0-9]*' mode 666 group operator
add path 'acd[0-9]*' mode 666 group operator
add path 'cd[0-9]*' mode 666 group operator
add path 'pass[0-9]*' mode 666 group operator
add path 'xpt[0-9]*'    mode 666 group operator
add path 'ugen[0-9]*' mode 666 group operator
add path 'usbctl' mode 666 group operator
add path 'usb/*' mode 666 group operator
add path 'lpt[0-9]*' mode 666 group cups
add path 'ulpt[0-9]*' mode 666 group cups
add path 'unlpt[0-9]*' mode 666 group cups
add path 'fd[0-9]*' mode 666 group operator
add path 'uscan[0-9]*' mode 666 group operator
Along with the correct entry in /etc/rc.conf:
Code:
devfs_system_ruleset="devfsrules_common"
__________________
Experience is simply the name we give our mistakes - Oscar Wilde

All I ask is a chance to prove that money can't make me happy - Spike Milligan
Reply With Quote
  #6  
Old 03-14-2010, 01:05 PM
Fatmice Fatmice is offline
Senior Member
 
Join Date: Feb 2008
Location: US
Posts: 888
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: Only root can mount floppy drive in Hubble
Your rules are strange. Mine doesn't have the [0-9]

Code:
[quyen@pcbsd /etc]$ less devfs.rules
[devfsrules_common=7]
add path 'ad*' mode 666 group operator
add path 'acd*' mode 666 group operator
add path 'cd*' mode 666 group operator
add path 'pass*' mode 666 group operator
add path 'xpt*' mode 666 group operator
add path 'ugen*' mode 666 group operator
add path 'usb*' mode 666 group operator
add path 'lpt*' mode 666 group cups
add path 'ulpt*' mode 666 group cups
add path 'unlpt*' mode 666 group cups
add path 'fd*' mode 666 group operator
add path 'uscan*' mode 666 group operator
__________________
|================================================= =====|
|Please search the forum prior to posting. Intellectual laziness is not nice. | (Does not apply to non-offenders =))
|================================================= =====|
Reply With Quote
  #7  
Old 03-14-2010, 01:15 PM
bjs bjs is offline
Member
 
Join Date: Dec 2009
Location: Bloxom, Virginia
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Only root can mount floppy drive in Hubble
I have not modified them, that was from straight from the install.
__________________
Experience is simply the name we give our mistakes - Oscar Wilde

All I ask is a chance to prove that money can't make me happy - Spike Milligan
Reply With Quote
  #8  
Old 03-16-2010, 01:09 AM
Fatmice Fatmice is offline
Senior Member
 
Join Date: Feb 2008
Location: US
Posts: 888
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: Only root can mount floppy drive in Hubble
Well...then this can only mean that the kernel was changed to allow only root mounting of floppy device.

The last bet is to look at disable hal and dbus and see if they are having an effect.
__________________
|================================================= =====|
|Please search the forum prior to posting. Intellectual laziness is not nice. | (Does not apply to non-offenders =))
|================================================= =====|
Reply With Quote
  #9  
Old 03-16-2010, 06:58 PM
bjs bjs is offline
Member
 
Join Date: Dec 2009
Location: Bloxom, Virginia
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Only root can mount floppy drive in Hubble
Okay after playing around with this a little bit more I have found that I put the following line in /etc/fstab:
Code:
/dev/fd0 floppy msdosfs rw,noauto 0 0
and do mkdir ./Documents/floppy in each users home directory then it works, but it's still not exactly right but at least it's workable.

For whatever reason, whatever program is doing the mounting in kde for /dev/fd0 it is prefixing it with ~/Documents/. So if I use ~/floppy as suggested earlier in /etc/fstab that program is trying to mount the drive to ~/Documents/~/floppy.

Hope that made sense.
__________________
Experience is simply the name we give our mistakes - Oscar Wilde

All I ask is a chance to prove that money can't make me happy - Spike Milligan
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
floppy drive cackerso Drives 5 05-30-2009 04:48 AM
floppy mount/unmount jlyman Drives 1 10-22-2007 04:04 PM
no floppy drive? gill General Questions 0 10-06-2007 08:38 AM
Floppy drive delay Clayton General Questions 2 03-25-2007 10:06 AM
how to mount floppy disk as ordinary user thuffy General Questions 4 03-13-2006 07:46 PM


All times are GMT. The time now is 12:24 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.