[opensuse] umount automounted media
Hello everybody, I have a little problem dismounting automounted media (CDROM). If a device is automounted within a user account I want to dismount it in the same useraccount. If I try to dismount the device I get the message "The device /dev/hdc is not in fstab and You are not root". Checking the properties of this device learns that the user is correct. Checking the umount command tells that the set uid property is set. What else can be wrong ??? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 10 February 2007 11:54, Hans de Faber wrote:
Hello everybody,
I have a little problem dismounting automounted media (CDROM). If a device is automounted within a user account I want to dismount it in the same useraccount. If I try to dismount the device I get the message "The device /dev/hdc is not in fstab and You are not root".
Checking the properties of this device learns that the user is correct. Checking the umount command tells that the set uid property is set.
What else can be wrong ???
I don't think there is anything wrong. The automounter does not use the traditional method with fstab, so umount does not work (my poor understanding of it). Go to the System tab in the left-hand panel of Konqueror and find your mounted device under Storage Media. Right-click and choose "Safely Remove" for the automounter to unmount the device. Carlos FL -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Thanks Carlos, for the moment this a good solution. I think the problem is in the umount facility, it do's some checks for uid and fstab first, this is not relevant for usermounted devices. Carlos F Lange wrote:
On Saturday 10 February 2007 11:54, Hans de Faber wrote:
Hello everybody,
I have a little problem dismounting automounted media (CDROM). If a device is automounted within a user account I want to dismount it in the same useraccount. If I try to dismount the device I get the message "The device /dev/hdc is not in fstab and You are not root".
Checking the properties of this device learns that the user is correct. Checking the umount command tells that the set uid property is set.
What else can be wrong ???
I don't think there is anything wrong. The automounter does not use the traditional method with fstab, so umount does not work (my poor understanding of it).
Go to the System tab in the left-hand panel of Konqueror and find your mounted device under Storage Media. Right-click and choose "Safely Remove" for the automounter to unmount the device.
Carlos FL -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi,
I don't think there is anything wrong. The automounter does not use the traditional method with fstab, so umount does not work (my poor understanding of it).
Go to the System tab in the left-hand panel of Konqueror and find your mounted device under Storage Media. Right-click and choose "Safely Remove" for the automounter to unmount the device.
Carlos FL --
Is there a cli way of doing the same thing if you are not running konq or kde ? Cheers F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Francesco Scaglioni wrote:
Go to the System tab in the left-hand panel of Konqueror and find your mounted device under Storage Media. Right-click and choose "Safely Remove" for the automounter to unmount the device.
Is there a cli way of doing the same thing if you are not running konq or kde ?
Try eject instead of umount Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi, ,------ | > >>> Go to the System tab in the left-hand panel of Konqueror and find your | > >>> mounted device under Storage Media. Right-click and choose "Safely | > >>> Remove" for the automounter to unmount the device. | > > | > > Is there a cli way of doing the same thing if you are not | > > running konq or kde ? | > | > Try eject instead of umount | > | > Cheers, Dave `------ Thanks. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Dave Howorth wrote:
Try eject instead of umount
Cheers, Dave
Neither of these will work for mine but if I kill all instances of Konqueror even though none are open to the media I can then eject the disk. -- roger 607.330.2797 rogerd@terra2tarmac.com http://www.terra2tarmac.com where do you ride? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2007-02-12 at 11:13 -0500, Roger Dedrick wrote:
Dave Howorth wrote:
Try eject instead of umount
Cheers, Dave
Neither of these will work for mine but if I kill all instances of Konqueror even though none are open to the media I can then eject the disk.
I have gotten into the habit of making sure that konqueror is not in the removable media path when I close the window. Don't know why it makes a difference but it does. Perhaps a bug the needs reporting. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2007-02-12 at 11:53 +0000, Francesco Scaglioni wrote:
Is there a cli way of doing the same thing if you are not running konq or kde ?
Yes (you might have to be root to do this): umount /mnt/thumbdrive (where /mnt/thumbdrive represents whatever mount point you are using) Bryan -- *************************************** Powered by Fedora Linux 6 Gnome 2.16.0 Evolution 2.8.0 This is a Microsoft-free computer Bryan S. Tyson bryantyson@earthlink.net *************************************** -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi,
On Mon, 2007-02-12 at 11:53 +0000, Francesco Scaglioni wrote:
Is there a cli way of doing the same thing if you are not running konq or kde ?
Yes (you might have to be root to do this): umount /mnt/thumbdrive (where /mnt/thumbdrive represents whatever mount point you are using)
Bryan
The reason that I asked was because an earlier poster stated that hal mounted devices ignored the umount command. (I prefer to manually mount my mediaplayer because of the increased transfer speed but it gets automounted by hal). Are you saying that automounted devices _can_ be umounted ? Cheers F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 13 February 2007 09:39:43 Francesco Scaglioni wrote:
Hi,
On Mon, 2007-02-12 at 11:53 +0000, Francesco Scaglioni wrote:
Is there a cli way of doing the same thing if you are not running konq or kde ?
Yes (you might have to be root to do this): umount /mnt/thumbdrive (where /mnt/thumbdrive represents whatever mount point you are using)
Bryan
The reason that I asked was because an earlier poster stated that hal mounted devices ignored the umount command. (I prefer to manually mount my mediaplayer because of the increased transfer speed but it gets automounted by hal). Are you saying that automounted devices _can_ be umounted ?
And a very related question: How can one get automounted devices to show up in the df command? Many of my users complain about no longer being able to tell the status of removable media storage, especially from the command line. -- Roger Oberholtzer OPQ Systems AB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 13 February 2007 03:04, Roger Oberholtzer wrote:
And a very related question: How can one get automounted devices to show up in the df command? Many of my users complain about no longer being able to tell the status of removable media storage, especially from the command line.
Interesting question. I found that even Konqueror's Properties are less reliable than what you get from the My Computer icon on the desktop, which runs "sysinfo:/" in Konqueror. It would have to be a command line version of sysinfo:/ . Anyone knows? Carlos FL -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Roger Oberholtzer wrote:
On Tuesday 13 February 2007 09:39:43 Francesco Scaglioni wrote:
Hi,
On Mon, 2007-02-12 at 11:53 +0000, Francesco Scaglioni wrote:
Is there a cli way of doing the same thing if you are not running konq or kde ?
Yes (you might have to be root to do this): umount /mnt/thumbdrive (where /mnt/thumbdrive represents whatever mount point you are using)
Bryan
The reason that I asked was because an earlier poster stated that hal mounted devices ignored the umount command. (I prefer to manually mount my mediaplayer because of the increased transfer speed but it gets automounted by hal). Are you saying that automounted devices _can_ be umounted ?
And a very related question: How can one get automounted devices to show up in the df command? Many of my users complain about no longer being able to tell the status of removable media storage, especially from the command line.
Have you tried "more /proc/mounts". It list all the mounted devices. The alternative is to do a "df -a" -- Joseph Loo jloo@acm.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 14 February 2007 04:09:48 Joseph Loo wrote:
Roger Oberholtzer wrote:
On Tuesday 13 February 2007 09:39:43 Francesco Scaglioni wrote:
Hi,
On Mon, 2007-02-12 at 11:53 +0000, Francesco Scaglioni wrote:
Is there a cli way of doing the same thing if you are not running konq or kde ?
Yes (you might have to be root to do this): umount /mnt/thumbdrive (where /mnt/thumbdrive represents whatever mount point you are using)
Bryan
The reason that I asked was because an earlier poster stated that hal mounted devices ignored the umount command. (I prefer to manually mount my mediaplayer because of the increased transfer speed but it gets automounted by hal). Are you saying that automounted devices _can_ be umounted ?
And a very related question: How can one get automounted devices to show up in the df command? Many of my users complain about no longer being able to tell the status of removable media storage, especially from the command line.
Have you tried "more /proc/mounts". It list all the mounted devices. The alternative is to do a "df -a"
Thanks for the tip on the -a option. At least I now see the devices. On SUSE 10.0 here are still issues. The command does not list complete info for the device unless it is currently being accessed. That is, if it is mounted, and there is even a file manager in the root directory of the device (in this case in KDE) the command shows: /dev/sdb1 0.0K 0.0K 0.0K - /media/usbdisk If, in a shell, I cd to /media/usbdisk, then I get size info: /dev/sdb1 977M 264M 713M 28% /media/usbdisk If I just leave the directory, the size info goes back to being zero. I think SUSE 10.2 does not require that you cd to a directory on the media. Just add the -a option. Anyone else think the default df behavior is odd? I would think all devices would be shown be default. Any -a option would mean do not show automount devices. There is no accounting for preference... -- Roger Oberholtzer OPQ Systems AB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (9)
-
Bryan Tyson
-
Carlos F Lange
-
Dave Howorth
-
Francesco Scaglioni
-
Hans de Faber
-
Joseph Loo
-
Kenneth Schneider
-
Roger Dedrick
-
Roger Oberholtzer