SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been running into problems with umount when trying to unmount when in KDE. First off, my root partition is read-only, therefore the mounts are only written to /proc/mounts. I can umount using the mount point, but not the device name.
The second problem is when I perform any write operation as any user on the mounted fs using KDE ("drag-and-drop", etc.) I can't umount without closing the Konqueror window which performed the operation, regardless of if any pane or emulator are currently using the fs.
The third problem is that with certain media I cannot umount period with a non-root user because the mount isn't written to mtab.
I can umount using the mount point, but not the device name.
Just a guess, but could this be related to not being able to create an mtab file?
Quote:
The second problem is when I perform any write operation as any user on the mounted fs using KDE ("drag-and-drop", etc.) I can't umount without closing the Konqueror window which performed the operation, regardless of if any pane or emulator are currently using the fs.
Firstly, although not always intuitively obvious to all people, Konqueror cannot have any focus on a file system that you want to unmount. You need to change the Konqueror directory focus to unmount that file system. With that said, however, I have noticed that Konqueror does not always release its grasp and prevents unmounting file systems even after changing the directory focus. I always have to close Konqueror in those situations. I never have tried to figure out any patterns.
Quote:
The third problem is that with certain media I cannot umount period with a non-root user because the mount isn't written to mtab.
Users need read-write access to the device. Here is my fstab entry for my cd-writer and floppy drive:
Just a guess, but could this be related to not being able to create an mtab file?
Not being able to update it is part of the problem (/ isn't R/O until right before login), however umount is smart enough to go by /proc/mounts when it's root calling it (and even then it only goes by the mount point); as a regular user, umount doesn't look past /etc/mtab.
Quote:
Originally Posted by Woodsman
I never have tried to figure out any patterns.
Well, I happen to have the pattern figured out on my machine; if I write more than about 500KB. Usually write operations less than that won't lock up the mount. This is after changing the focus in every sense of the word without closing Konqueror, by the way. I've even tried mounting sync to prevent caching. Even if the write is cached, umount will wait for the write to finish under normal circumstances, as opposed to exiting with an error.
I don't mind all that much closing Konqueror, however a lot of times I am su in the terminal emulator doing something important, and I have to re- su and cd, and my command history usually changes because the tty changes when I reopen.
Quote:
Originally Posted by Woodsman
Users need read-write access to the device.
This isn't the problem; I can mount as a regular user (user/users is necessary to mount in the first place as non-su.) I use the same option. Also, users shouldn't have write access to the device; not even to the mount point (they don't even need +x to the mount point.) All they need is a line in fstab to use.
Thanks for your reply.
ta0kira
PS We were tied for number of posts until I put this one up...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.