From: jeremy jozwik on
On Mon, Apr 5, 2010 at 11:20 AM, Camaleón <noelamac(a)gmail.com> wrote:
> - On standard hard drives this should not happen. Try to debug "umount -
> v /mnt/device" using the console. Also, check "dmesg" for additional
> information.

$ umount -v /dev/sdb1
could not umount /media/video - trying /dev/sdb1 instead
umount: /dev/sdb1: not mounted
umount: /media/video: must be superuser to umount
could not umount /media/video - trying /dev/sdb1 instead
umount: /dev/sdb1: not mounted
umount: /media/video: must be superuser to umount

$ su
Password:

# umount -v /dev/sdb1
/dev/sdb1 umounted

> - "lsof" lists the opened files, you could also check that...
im not using the drives through any applications other then terminal.
and before unmounting i exit the directory or close the terminal
window.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/u2nf8d5d4f31004051955z717e21f5p493c336f7775eb25(a)mail.gmail.com
From: Camaleón on
On Mon, 05 Apr 2010 19:55:00 -0700, jeremy jozwik wrote:

> On Mon, Apr 5, 2010 at 11:20 AM, Camaleón wrote:
>> - On standard hard drives this should not happen. Try to debug "umount
>> - v /mnt/device" using the console. Also, check "dmesg" for additional
>> information.
>
> $ umount -v /dev/sdb1
> could not umount /media/video - trying /dev/sdb1 instead umount:
> /dev/sdb1: not mounted
> umount: /media/video: must be superuser to umount could not umount
> /media/video - trying /dev/sdb1 instead umount: /dev/sdb1: not mounted
> umount: /media/video: must be superuser to umount

Were you running that command as "root" (or sudo) user?

> $ su
> Password:
>
> # umount -v /dev/sdb1
> /dev/sdb1 umounted

Uh? So it works fine for root user...

O.K., Let me check with my USB flash drive. After I plugg it:

***
sm01(a)stt008:~$ mount | grep fat
/dev/sdc1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=1000)
***

I try to umount it:

***
sm01(a)stt008:~$ umount /media/disk
***

And now I verify it has been "really" umounted:

***
sm01(a)stt008:~$ mount | grep fat
***

Seems to be working here for my plain user.

You can check 2 more things:

- Permissions of the mounted device ("mount" will tell)

- Does this happen whith any kind of media you connect in USB ports (USB
flash drives, media devices, etc...) or just happens with a concrete
device?

>> - "lsof" lists the opened files, you could also check that...

> im not using the drives through any applications other then terminal.
> and before unmounting i exit the directory or close the terminal window.

There can be operations left in background that may prevent umounting the
device... "lsof" will tell.

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/pan.2010.04.06.14.23.13(a)gmail.com
From: jeremy jozwik on
On Tue, Apr 6, 2010 at 7:23 AM, Camaleón <noelamac(a)gmail.com> wrote:
> Were you running that command as "root" (or sudo) user?

does not work in regular user mode. which is what i think causes the
issue in GNOME right click.

> Uh? So it works fine for root user...

yes

> - Does this happen whith any kind of media you connect in USB ports (USB
> flash drives, media devices, etc...) or just happens with a concrete
> device?

external harddrives, flash usb pen drives, microSD carrying video
camera... seem just about everything will generate the issue. all via
the different usb ports on my x61 tablet.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/u2wf8d5d4f31004060742pedea073y8cfa2be0097494(a)mail.gmail.com
From: Sjoerd Hardeman on
jeremy jozwik schreef:
> On Tue, Apr 6, 2010 at 7:23 AM, Camaleón <noelamac(a)gmail.com> wrote:
>> Were you running that command as "root" (or sudo) user?
>
> does not work in regular user mode. which is what i think causes the
> issue in GNOME right click.
>
>> Uh? So it works fine for root user...
For a regular user, you need to be in the plugdev group to mount and
unmount. I believe the mounting is done via dbus, which checks for this
group (or any other group you have configured it for). So, first check
if your user is a member of the plugdev group.

Sjoerd

From: jeremy jozwik on
On Tue, Apr 6, 2010 at 7:51 AM, Sjoerd Hardeman
<sjoerd(a)lorentz.leidenuniv.nl> wrote:
> For a regular user, you need to be in the plugdev group to mount and
> unmount.

i am not familiar with those settings in linux. so i did some searching.
http://wiki.debian.org/DebianDesktopHowTo

which says:
"This is a problem with the way D-Bus figures out what groups you are
a member of. All users should be added to plugdev, netdev, and
optionally powerdev, in /etc/groups. Any way of automating this in
Debian?"

i look around in /etc/ and find there are 2 group files.

mobildebian:/etc# nano group
group group-

im guessing i need to remove group [ which is empty ] and rename
group- to be the group file.

correct?


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/j2xf8d5d4f31004060808se4b0fb28te15a1c3657fd9b5a(a)mail.gmail.com