LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-18-2006, 02:51 PM   #1
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
umount problems in KDE with R/O root partition


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.

Any suggestions? Thanks.
ta0kira
 
Old 02-18-2006, 03:37 PM   #2
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Make your mount in /mnt or ~/
Add an entry to /etc/fstab as example;
/dev/hda3 /mnt/data ext3 noauto,user 0 0

$ mount /mnt/data
 
Old 02-18-2006, 05:59 PM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
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:

/dev/sr0 /media/cdwriter iso9660 noauto,users,rw,unhide 0 0
/dev/fd0 /media/floppy auto noauto,users,rw 0 0


Notice the users parameter.
 
Old 02-19-2006, 11:34 AM   #4
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Woodsman
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...
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to umount partition sgfx Linux - Newbie 3 07-10-2004 10:42 AM
root can only mount/umount snocked Linux - Newbie 9 04-22-2004 02:52 PM
umount a hd swap partition? GoinEasy9 Linux - General 6 04-09-2004 11:34 PM
Can't unmount partition with DiskDrak, or umount bcmoney82 Mandriva 3 11-16-2003 05:15 AM
Partition umount on Mac PowerPC stomcavage Linux - Hardware 0 08-02-2002 02:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:58 AM.

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