submountd continuously accessing usb floppy -- or how do floppies work???
I copied a few files to a usb floppy drive and the drive continued to make noises and flash it lights. The ps command showed the following: /sbin/submountd /dev/sdb /media/floppy1 floppyfss 4000001e uid=1000,gid=100 This was a different PID each time I looked. Removing and reinserting the floppy stopped the weirdness. Perhaps this is my fault: I changed fstab to look like this (I added "user"): /dev/sdb /media/floppy1 subfs fs=floppyfss,procuid,nodev,nosuid,sync,user 0 0 I had to do that or I couldn't use the floppy as a regular user. When I clicked on the drive's icon I got an error message saying only root could mount it. I think I am misunderstanding how to use floppies with the new subfs filesystem. I looked at the index for both the User Guide and the Administration Guide and found no entry for either floppy ue subfs. Can anyone explain this to me? -- Robert C. Paulsen, Jr. robert@paulsenonline.net
<snip>
Perhaps this is my fault: I changed fstab to look like this (I added "user"):
/dev/sdb /media/floppy1 subfs fs=floppyfss,procuid,nodev,nosuid,sync,user 0 0
You will need to remove the word user here. See the man page for submount.
I had to do that or I couldn't use the floppy as a regular user. When I clicked on the drive's icon I got an error message saying only root could mount it.
Hmmmm..... Submount should mount the media as user. I am not using anything USB at the moment but it works with other media.
I think I am misunderstanding how to use floppies with the new subfs filesystem. I looked at the index for both the User Guide and the Administration Guide and found no entry for either floppy ue subfs.
Submount will try and mount the media if it believes that you are requiring the device. It will scan when you bring up konqueror because there is a module that allows you to access your media using konqueror. I have found that having another instance of konqueror running while using submount has caused me some issues here. I usually tell KDE not to preload an instance of konqueror at startup.
Can anyone explain this to me?
Maybe some of the above will help? Marshall
On Sunday 23 May 2004 02:05 pm, Marshall Heartley wrote:
<snip>
Perhaps this is my fault: I changed fstab to look like this (I added "user"):
/dev/sdb /media/floppy1 subfs fs=floppyfss,procuid,nodev,nosuid,sync,user 0 0
You will need to remove the word user here. See the man page for submount.
OK, did that. (And rebooted just to be sure.)
I had to do that or I couldn't use the floppy as a regular user. When I clicked on the drive's icon I got an error message saying only root could mount it.
Hmmmm..... Submount should mount the media as user. I am not using anything USB at the moment but it works with other media.
Well I have two floppies -- USB and good old fashioned kind. I get the same error trying to mount either: mount /media/floppy mount: only root can mount /dev/fd0 on /media/floppy mount /media/floppy1 mount: only root can mount /dev/sdb on /media/floppy1
Submount will try and mount the media if it believes that you are requiring the device.
According to the man page for submount ... Submount is a program that automatically mounts removable media devices or other filesystems when the mount direc tory is accessed, and unmounts them when they are no longer in use. That doesn't happen for me. If I try to access /media/floppy (or /media/floppy1) nothing happens. I just see an empty directory. Same thing if I open "My Computer" and click on floppy or floppy1.
It will scan when you bring up konqueror because there is a module that allows you to access your media using konqueror.
I have found that having another instance of konqueror running while using submount has caused me some issues here. I usually tell KDE not to preload an instance of konqueror at startup.
Can anyone explain this to me?
Maybe some of the above will help?
Perhaps if I get a few more clues it will come together! -- Robert C. Paulsen, Jr. robert@paulsenonline.net
<snip>
Well I have two floppies -- USB and good old fashioned kind. I get the same error trying to mount either:
mount /media/floppy mount: only root can mount /dev/fd0 on /media/floppy
mount /media/floppy1 mount: only root can mount /dev/sdb on /media/floppy1
If you are using submount, it should mount automatically. <snip>
That doesn't happen for me. If I try to access /media/floppy (or /media/floppy1) nothing happens. I just see an empty directory. Same thing if I open "My Computer" and click on floppy or floppy1.
Could you post the /etc/fstab please?
Perhaps if I get a few more clues it will come together!
Well hang in there. I will help the best that I can. I am sure that others may help us out too. Marshall
On Sunday 23 May 2004 03:51 pm, Marshall Heartley wrote:
<snip>
Well I have two floppies -- USB and good old fashioned kind. I get the same error trying to mount either:
mount /media/floppy mount: only root can mount /dev/fd0 on /media/floppy
mount /media/floppy1 mount: only root can mount /dev/sdb on /media/floppy1
If you are using submount, it should mount automatically.
<snip>
That doesn't happen for me. If I try to access /media/floppy (or /media/floppy1) nothing happens. I just see an empty directory. Same thing if I open "My Computer" and click on floppy or floppy1.
Could you post the /etc/fstab please?
Here it is... /dev/sda2 / ext3 acl,user_xattr 1 1 /dev/sda1 swap swap pri=42 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 proc /proc proc defaults 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 sysfs /sys sysfs noauto 0 0 /dev/cdrecorder /media/cdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 /dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 /dev/sdb /media/floppy1 subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 -- Robert C. Paulsen, Jr. robert@paulsenonline.net
On Sunday 23 May 2004 03:41 pm, Robert Paulsen wrote:
On Sunday 23 May 2004 02:05 pm, Marshall Heartley wrote:
<snip>
Perhaps this is my fault: I changed fstab to look like this (I added "user"):
/dev/sdb /media/floppy1 subfs fs=floppyfss,procuid,nodev,nosuid,sync,user 0 0
You will need to remove the word user here. See the man page for submount.
OK, did that. (And rebooted just to be sure.)
Well, things have gone from bad to worse! I removed one floppy, inserted another, clicked on its icon and got three pop-up messages from "SuSE Hardware Detection" saying: A new hard disc was detected Open with: kfmclient openURL file:/media/usb-storage-odd-YEDATA-USBFloppyDrive:0:0:0p1 ? The mount command now shows: /dev/fd0 on /media/floppy type subfs (rw,nosuid,nodev,sync,fs=floppyfss,procuid) /dev/sdb on /media/floppy1 type subfs (rw,nosuid,nodev,sync,fs=floppyfss,procuid) usbfs on /proc/bus/usb type usbfs (rw) /dev/sdb1 on /media/usb-storage-odd-YEDATA-USBFloppyDrive:0:0:0p1 type subfs (rw,noexec,nosuid,nodev,sync,fs=floppyfss,procuid) /dev/sdb2 on /media/usb-storage-odd-YEDATA-USBFloppyDrive:0:0:0p2 type subfs (rw,noexec,nosuid,nodev,sync,fs=floppyfss,procuid) /dev/sdb4 on /media/usb-storage-odd-YEDATA-USBFloppyDrive:0:0:0p4 type subfs (rw,noexec,nosuid,nodev,sync,fs=floppyfss,procuid) /dev/sdb3 on /media/usb-storage-odd-YEDATA-USBFloppyDrive:0:0:0p3 type subfs (rw,noexec,nosuid,nodev,sync,fs=floppyfss,procuid) And I can't unmount any of it as a regular user! Per the fuser command I am not referencing /media/floppy or /media/floppy1 anywhere so, if I understand the submount man page, the submount system should have unmounted things automatically. If this subfs stuff is supposed to make things easier, it has a long way to go to do so for me! -- Robert C. Paulsen, Jr. robert@paulsenonline.net
Well, things have gone from bad to worse! I removed one floppy, inserted another, clicked on its icon and got three pop-up messages from "SuSE Hardware Detection" saying:
A new hard disc was detected Open with: kfmclient openURL file:/media/usb-storage-odd-YEDATA-USBFloppyDrive:0:0:0p1 ?
The mount command now shows:
/dev/fd0 on /media/floppy type subfs (rw,nosuid,nodev,sync,fs=floppyfss,procuid) /dev/sdb on /media/floppy1 type subfs (rw,nosuid,nodev,sync,fs=floppyfss,procuid) usbfs on /proc/bus/usb type usbfs (rw) /dev/sdb1 on /media/usb-storage-odd-YEDATA-USBFloppyDrive:0:0:0p1 type subfs (rw,noexec,nosuid,nodev,sync,fs=floppyfss,procuid) /dev/sdb2 on /media/usb-storage-odd-YEDATA-USBFloppyDrive:0:0:0p2 type subfs (rw,noexec,nosuid,nodev,sync,fs=floppyfss,procuid) /dev/sdb4 on /media/usb-storage-odd-YEDATA-USBFloppyDrive:0:0:0p4 type subfs (rw,noexec,nosuid,nodev,sync,fs=floppyfss,procuid) /dev/sdb3 on /media/usb-storage-odd-YEDATA-USBFloppyDrive:0:0:0p3 type subfs (rw,noexec,nosuid,nodev,sync,fs=floppyfss,procuid)
Hmmmm this is not good!
And I can't unmount any of it as a regular user!
I have a idea here but it might not be the correct answer.
Per the fuser command I am not referencing /media/floppy or /media/floppy1 anywhere so, if I understand the submount man page, the submount system should have unmounted things automatically.
Look and see if Konqueror has more than one window open. If so, get rid of all instances of Konqueror and try to access the floppies again. This time, you may be able to umount them as user. If for some miracle works, then tell KDE not to start up a instance of Konqueror at startup.
If this subfs stuff is supposed to make things easier, it has a long way to go to do so for me!
Well I am learning as well. Let us keep plugging away at it. Marshall
On Sunday 23 May 2004 04:12 pm, Marshall Heartley wrote:
Look and see if Konqueror has more than one window open. If so, get rid of all instances of Konqueror and try to access the floppies again. This time, you may be able to umount them as user.
If for some miracle works, then tell KDE not to start up a instance of Konqueror at startup.
Well, I didn't think I had *any* instances of Konqueror running. But one thing I did do was to configure the desktop to show device icons. Apparently that really confuses matters! I got rid of all the weird mounts by turning off the device icons and things seem better. Apparently with subfs "mounting" is a transient thing -- it least the mount command (no options) never seems to list the floppies as mounted even though I can read and write them. If I write to a floppy in one drive then move it to the other drive the data I wrote shows up so I guess things are working mostly OK. I say "Mostly" because there are still some weird things happening, like sometimes a floppy is claimed to be read-only, or one file out of several refuses to copy (with a strange message about it being ignored since it had changed). My problems started because of several things: 1. I turned on "device icons" on the desktop. This apparently causes the removable media to look like it is *always* being referenced, causing various strange behaviors that confused me. 2. I was under the misconception that I couldn't remove a floppy until I unmounted it. Which, as a regular user, I was not allowed to do. 3. In an attempt to deal with the above I dug myself deeper. BOTTOM LINE: I think things are "fixed" but there are still a few strange things I'm seeing. -- Robert C. Paulsen, Jr. robert@paulsenonline.net
<snip>
Well, I didn't think I had *any* instances of Konqueror running. But one thing I did do was to configure the desktop to show device icons. Apparently that really confuses matters! I got rid of all the weird mounts by turning off the device icons and things seem better.
I will have to keep that in mind. I have not done that yet but like I stated before, I had issues with submount when KDE preloaded an instance of Konqueror at startup.
Apparently with subfs "mounting" is a transient thing -- it least the mount command (no options) never seems to list the floppies as mounted even though I can read and write them.
Correct
If I write to a floppy in one drive then move it to the other drive the data I wrote shows up so I guess things are working mostly OK. I say "Mostly" because there are still some weird things happening, like sometimes a floppy is claimed to be read-only, or one file out of several refuses to copy (with a strange message about it being ignored since it had changed).
I am not sure about the read only issue. I will need to do a bit more research on that one. Now the copy files message intrigues me. I wonder why it is stating that?
My problems started because of several things:
1. I turned on "device icons" on the desktop. This apparently causes the removable media to look like it is *always* being referenced, causing various strange behaviors that confused me.
I will note your experiences with this option so I will not do the same myself. This may help answer why Gnome locks down tight when I try and access my data disk.
2. I was under the misconception that I couldn't remove a floppy until I unmounted it. Which, as a regular user, I was not allowed to do.
Submount will "mount" the drives under it's control. All you have to do is wait and the drive will umount on it's own. Basically after you cd out of the drives mount directory, submount will see that you are no longer interested in the drive and will "unmount" the drive so you can eject the media.
3. In an attempt to deal with the above I dug myself deeper.
We all do that from time to time. :)
BOTTOM LINE: I think things are "fixed" but there are still a few strange things I'm seeing.
Maybe one of the weird behaviors is answered above. At least the mount one anyway. I am not sure on the others though as I am still learning more abut submount myself ;) Marshall
On Monday 24 May 2004 12:08, Marshall Heartley wrote:
<snip>
Well, I didn't think I had *any* instances of Konqueror running. But one thing I did do was to configure the desktop to show device icons. Apparently that really confuses matters! I got rid of all the weird mounts by turning off the device icons and things seem better.
I will have to keep that in mind. I have not done that yet but like I stated before, I had issues with submount when KDE preloaded an instance of Konqueror at startup.
From reading your posts, you seem to think that this submount is a good thing. At least you are trying to get folks to get it working. I've got real issues with it. In 9.0, if I plug in my usb flash disk, an icon pops up on the desktop, and I can use it. That means I can drag file to it to copy or move, click on it to see what is there, and then umount it. Now with this sorry concoction of submount, I can't do that. Yes, it pops up, but not on the desktop. It's in that My computer folder on the desktop. If I'd wanted that, I'd create it. <snip>
Maybe one of the weird behaviors is answered above. At least the mount one anyway. I am not sure on the others though as I am still learning more abut submount myself ;)
My main problem is that I can turn it off. Yes, there is the change to the fstab, but that only takes care of the hard mounted drives like cd's and writers. Doesn't help the usb stuff. I'd like to have the option to turn the darn thing off and use the system as it was. Guess that isn't an option though.. Mike -- Powered by SuSE 9.1 Kernel 2.6.4 KDE 3.2.1 Kmail 1.6.2 For SuSE Mondo/Mindi backup support go to http://www.mikenjane.net/~mike 4:18pm up 20:25, 3 users, load average: 1.18, 1.11, 1.09
From reading your posts, you seem to think that this submount is a good thing. At least you are trying to get folks to get it working. I've got real issues with it. In 9.0, if I plug in my usb flash disk, an icon pops up on the desktop, and I can use it. That means I can drag file to it to copy or move, click on it to see what is there, and then umount it. Now with this sorry concoction of submount, I can't do that. Yes, it pops up, but not on the desktop. It's in that My computer folder on the desktop. If I'd wanted that, I'd create it.
First off, I do not appreciate you putting words into my mouth! That I find VERY disrespectful! I was trying to help those who were having issues with it because maybe some people want to use submount? <snip>
My main problem is that I can turn it off. Yes, there is the change to the fstab, but that only takes care of the hard mounted drives like cd's and writers. Doesn't help the usb stuff. I'd like to have the option to turn the darn thing off and use the system as it was. Guess that isn't an option though..
Didn't do your research????? There is a article in the SuSE Portal that will tell you how to do it. If you are having a bad day, please vent it elsewhere. All I was trying to do is help a few people with this issue. If they felt the same way as you, then all they would have to do is tell me to back off and I will respectfully do so. I DID NOT create submount nor do I work for SuSE! If you are so bent out of shape about this, please send them the nasty email! If I misinformed someone and need to be corrected, then correct me. But this type of a response is neither productive or useful! Marshall
participants (3)
-
Marshall Heartley
-
Mike
-
Robert Paulsen