Mailinglist Archive: opensuse (2800 mails)

< Previous Next >
Re: [opensuse] umount automounted media
  • From: Roger Oberholtzer <roger@xxxxxx>
  • Date: Wed, 14 Feb 2007 09:18:40 +0100
  • Message-id: <200702140918.40235.roger@xxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >