niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » Distributions » Debian
Removing USB memory
Post new topic   Reply to topic Page 1 of 1 [12 Posts] View previous topic :: View next topic
Author Message
Magnus Therning
*nix forums Guru Wannabe


Joined: 23 Jul 2005
Posts: 192

PostPosted: Thu Jul 13, 2006 8:40 am    Post subject: Removing USB memory Reply with quote

I'm running a GNOME desktop on a Debian Sid system.

I've noticed that if I right-click a USB memory stick icon on the
desktop and choose "Unmount Volume" the icon disappears immediately.
However the device may be busy in the background, and if I remove the
stick too early files copied to the stick may not "have arrived yet"
(the sync isn't done yet).

I've found two ways around it:

1. Unmount in a shell using `pumount'.
2. Keep a system monitor in the panel and have it show disk activity.

Is there any other way?
I'd kind of like a brief notification at the end informing me that the
device is fully unmounted.

/M

--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus.therning@gmail.com
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

For a successful technology, reality must take precedence over public
relations, for nature cannot be fooled.
-- R.P. Feynman
Back to top
John Hasler
*nix forums Guru


Joined: 20 Feb 2005
Posts: 687

PostPosted: Thu Jul 13, 2006 3:10 pm    Post subject: Re: Removing USB memory Reply with quote

Issue a 'sync' command just before unmounting.
--
John Hasler


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
H.S.
*nix forums Guru Wannabe


Joined: 21 Aug 2005
Posts: 179

PostPosted: Thu Jul 13, 2006 4:40 pm    Post subject: Re: Removing USB memory Reply with quote

Magnus Therning wrote:
Quote:
I'm running a GNOME desktop on a Debian Sid system.

I've noticed that if I right-click a USB memory stick icon on the
desktop and choose "Unmount Volume" the icon disappears immediately.
However the device may be busy in the background, and if I remove the
stick too early files copied to the stick may not "have arrived yet"
(the sync isn't done yet).

I've found two ways around it:

1. Unmount in a shell using `pumount'.
2. Keep a system monitor in the panel and have it show disk activity.

Is there any other way?
I'd kind of like a brief notification at the end informing me that the
device is fully unmounted.

/M


I usually use KDE and I see that by unmounting a USB device from its
icon on the desktop, the icon seems to stay as long as the USB stick's
activity LED keeps blinking. For large files (images), I have noticed
that the icon stays on the desktop for quite a few seconds. Never had
corruption on the USB stick. So it appears KDE removes the icon of a USB
device only when the sync is complete. I am surprised Gnome doesn't do
so. BTW, I let udev mount the pluggable devices automatically. If you
are using fstab to do so, you can fix the mount options to set sync to
happen every time the USB device is accessed.

->HS



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
Margiolas Christos
*nix forums beginner


Joined: 13 Jul 2006
Posts: 3

PostPosted: Thu Jul 13, 2006 9:40 pm    Post subject: Re: Removing USB memory Reply with quote

mayby kde now is better than gnome better technology more usability......
Xristos

On 7/13/06, H.S. <hs.samix@gmail.com> wrote:
Quote:

Magnus Therning wrote:
I'm running a GNOME desktop on a Debian Sid system.

I've noticed that if I right-click a USB memory stick icon on the
desktop and choose "Unmount Volume" the icon disappears immediately.
However the device may be busy in the background, and if I remove the
stick too early files copied to the stick may not "have arrived yet"
(the sync isn't done yet).

I've found two ways around it:

1. Unmount in a shell using `pumount'.
2. Keep a system monitor in the panel and have it show disk activity.

Is there any other way?
I'd kind of like a brief notification at the end informing me that the
device is fully unmounted.

/M


I usually use KDE and I see that by unmounting a USB device from its
icon on the desktop, the icon seems to stay as long as the USB stick's
activity LED keeps blinking. For large files (images), I have noticed
that the icon stays on the desktop for quite a few seconds. Never had
corruption on the USB stick. So it appears KDE removes the icon of a USB
device only when the sync is complete. I am surprised Gnome doesn't do
so. BTW, I let udev mount the pluggable devices automatically. If you
are using fstab to do so, you can fix the mount options to set sync to
happen every time the USB device is accessed.

->HS



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org

Back to top
Magnus Therning
*nix forums Guru Wannabe


Joined: 23 Jul 2005
Posts: 192

PostPosted: Fri Jul 14, 2006 11:10 am    Post subject: Re: Removing USB memory Reply with quote

On Thu, Jul 13, 2006 at 09:38:12 -0500, John Hasler wrote:
Quote:
Issue a 'sync' command just before unmounting.

Not a very good answer!
If I'm in a terminal to issue a 'sync' command I might as well issue a
'pumount' command (which will trigger a sync as well). :-)

/M

--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus.therning@gmail.com
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

You do not examine legislation in the light of the benefits it will
convey if properly administered, but in the light of the wrongs it
would do and the harms it would cause if improperly administered.
-- Lyndon Johnson
Back to top
Magnus Therning
*nix forums Guru Wannabe


Joined: 23 Jul 2005
Posts: 192

PostPosted: Fri Jul 14, 2006 12:30 pm    Post subject: Re: Removing USB memory Reply with quote

On Thu, Jul 13, 2006 at 12:36:51 -0400, H.S. wrote:
Quote:
Magnus Therning wrote:
I'm running a GNOME desktop on a Debian Sid system.
I've noticed that if I right-click a USB memory stick icon on the
desktop and choose "Unmount Volume" the icon disappears immediately.
However the device may be busy in the background, and if I remove the
stick too early files copied to the stick may not "have arrived yet"
(the sync isn't done yet).
I've found two ways around it:
1. Unmount in a shell using `pumount'.
2. Keep a system monitor in the panel and have it show disk activity.
Is there any other way?
I'd kind of like a brief notification at the end informing me that the
device is fully unmounted.
/M

I usually use KDE and I see that by unmounting a USB device from its
icon on the desktop, the icon seems to stay as long as the USB stick's
activity LED keeps blinking. For large files (images), I have noticed
that the icon stays on the desktop for quite a few seconds. Never had
corruption on the USB stick. So it appears KDE removes the icon of a
USB device only when the sync is complete. I am surprised Gnome
doesn't do so. BTW, I let udev mount the pluggable devices
automatically. If you are using fstab to do so, you can fix the mount
options to set sync to happen every time the USB device is accessed.

I let udev/hotplug/gnome-volume-manager do the mounting, that's a lot
easier then fstab.

Yes, it would be better if GNOME left the icon on the desktop until the
device is fully unmounted, however it doesn't :(

/M

--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus.therning@gmail.com
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

Never be afraid to try something new. Remember, amateurs built the
ark; professionals built the Titanic.
-- Anonymous
Back to top
John W. M. Stevens
*nix forums beginner


Joined: 02 Feb 2006
Posts: 15

PostPosted: Sun Jul 16, 2006 8:00 pm    Post subject: Re: Removing USB memory Reply with quote

On Thu, Jul 13, 2006 at 12:36:51PM -0400, H.S. wrote:
Quote:
Magnus Therning wrote:
I'm running a GNOME desktop on a Debian Sid system.

I've noticed that if I right-click a USB memory stick icon on the
desktop and choose "Unmount Volume" the icon disappears immediately.
However the device may be busy in the background, and if I remove the
stick too early files copied to the stick may not "have arrived yet"
(the sync isn't done yet).

I've found two ways around it:

1. Unmount in a shell using `pumount'.
2. Keep a system monitor in the panel and have it show disk activity.

Is there any other way?
I'd kind of like a brief notification at the end informing me that the
device is fully unmounted.

/M


I usually use KDE and I see that by unmounting a USB device from its
icon on the desktop, the icon seems to stay as long as the USB stick's
activity LED keeps blinking. For large files (images), I have noticed
that the icon stays on the desktop for quite a few seconds. Never had
corruption on the USB stick. So it appears KDE removes the icon of a USB
device only when the sync is complete. I am surprised Gnome doesn't do
so.

It does on my system. The icon will not be removed from the Gnome
destop until umount completes.

In other words, this is not a Gnome vs. KDE issue. It appears to be
a configuration issue.

Quote:
BTW, I let udev mount the pluggable devices automatically. If you
are using fstab to do so, you can fix the mount options to set sync to
happen every time the USB device is accessed.

This, however, may be the issue: your system may be misconfigured, or
this undesirable behaviour may be a result of the file system you
are using on your USB device.

So the question is: what file system do you have on the device that
disappears immediately when you umount it, and if applicable, what
are your fstab options for this device?

Finally, how do you have your system configured to automount hot
attached mass storage devices?

John S.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
H.S.
*nix forums Guru Wannabe


Joined: 21 Aug 2005
Posts: 179

PostPosted: Mon Jul 17, 2006 6:30 am    Post subject: Re: Removing USB memory Reply with quote

John W. M. Stevens wrote:

Quote:
device only when the sync is complete. I am surprised Gnome doesn't do
so.

Sorry, the above sentence was supposed to be: "I am surprised OP's Gnome
doesn't do so."


Quote:


This, however, may be the issue: your system may be misconfigured, or
this undesirable behaviour may be a result of the file system you
are using on your USB device.

I suppose the above sentences are aimed at the OP and not me. I have no
issues with the icons of automounted devices on my desktop (both KDE and
gnome).


Quote:
So the question is: what file system do you have on the device that
disappears immediately when you umount it, and if applicable, what
are your fstab options for this device?

Finally, how do you have your system configured to automount hot
attached mass storage devices?

John S.




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
Magnus Therning
*nix forums Guru Wannabe


Joined: 23 Jul 2005
Posts: 192

PostPosted: Tue Jul 18, 2006 11:30 am    Post subject: Re: Removing USB memory Reply with quote

On Mon, Jul 17, 2006 at 15:37:37 -0600, John W. M. Stevens wrote:
[..]
Quote:
If pmount and pumount are handling the actual mount and unmount
operations for you, then you could try manually mounting and unmounting
your devices from a virtual terminal (no gnome running), and see if the
behaviour is different.

If the behaviour *is* different (if pmount does properly wait for sync
to complete before it returns), then you almost certainly have a
configuration issue. If not, then you might be looking at either a
kernel/pmount mismatch issue, or more likely, a bug.

I'm quoting from my original email:

I've noticed that if I right-click a USB memory stick icon on the
desktop and choose "Unmount Volume" the icon disappears immediately.
However the device may be busy in the background, and if I remove the
stick too early files copied to the stick may not "have arrived yet"
(the sync isn't done yet).

So, there's no problem with pumount, it does its thing. The problem is
that there is no feedback to me, the user, of when it's done since the
icon disappears immediately.

Quote:
Try logging out of any gnome sessions, then make doubly sure that no
gnome daemons are running, then switch to a virtual terminal, login,
and try pmount, write large file, pumount, and see what happens.

That gets any Gnome config out of the way.

As you see, GNOME _is_ the problem, getting it out of the way won't
solve anything :-)

/M

--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus.therning@gmail.com
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

I have steadily endeavored to keep my mind free, so as to give up any
hypothesis, however much beloved -- and I cannot resist forming one
on every subject -- as soon as facts are shown to be opposed to it.
-- Charles Darwin (1809-1882)
Back to top
Magnus Therning
*nix forums Guru Wannabe


Joined: 23 Jul 2005
Posts: 192

PostPosted: Tue Jul 18, 2006 11:30 am    Post subject: Re: Removing USB memory Reply with quote

On Thu, Jul 13, 2006 at 12:36:51 -0400, H.S. wrote:
[..]
Quote:
I usually use KDE and I see that by unmounting a USB device from its
icon on the desktop, the icon seems to stay as long as the USB stick's
activity LED keeps blinking. For large files (images), I have noticed
that the icon stays on the desktop for quite a few seconds. Never had
corruption on the USB stick. So it appears KDE removes the icon of a
USB device only when the sync is complete. I am surprised Gnome
doesn't do so.

I am surprised too :-)

Quote:
BTW, I let udev mount the pluggable devices automatically.

I doubt udev is the party that mounts it. udev creates the device in
/dev, I don't think it can mount things.

AFAIU on GNOME this is what happens when a storage device is plugged in:

1. udev creates a device node in /dev
2. hal is informed about the new device
3. gnome-volume-manager gets informed by hal and calls pmount to mount
the device

/M

--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus.therning@gmail.com
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

For a successful technology, reality must take precedence over public
relations, for nature cannot be fooled.
-- R.P. Feynman
Back to top
Magnus Therning
*nix forums Guru Wannabe


Joined: 23 Jul 2005
Posts: 192

PostPosted: Tue Jul 18, 2006 11:40 am    Post subject: Re: Removing USB memory Reply with quote

On Sun, Jul 16, 2006 at 13:57:42 -0600, John W. M. Stevens wrote:
Quote:
On Thu, Jul 13, 2006 at 12:36:51PM -0400, H.S. wrote:
Magnus Therning wrote:
I'm running a GNOME desktop on a Debian Sid system.

I've noticed that if I right-click a USB memory stick icon on the
desktop and choose "Unmount Volume" the icon disappears immediately.
However the device may be busy in the background, and if I remove the
stick too early files copied to the stick may not "have arrived yet"
(the sync isn't done yet).

I've found two ways around it:

1. Unmount in a shell using `pumount'.
2. Keep a system monitor in the panel and have it show disk activity.

Is there any other way?
I'd kind of like a brief notification at the end informing me that the
device is fully unmounted.

/M


I usually use KDE and I see that by unmounting a USB device from its
icon on the desktop, the icon seems to stay as long as the USB stick's
activity LED keeps blinking. For large files (images), I have noticed
that the icon stays on the desktop for quite a few seconds. Never had
corruption on the USB stick. So it appears KDE removes the icon of a USB
device only when the sync is complete. I am surprised Gnome doesn't do
so.

It does on my system. The icon will not be removed from the Gnome
destop until umount completes.

Hmmm, what system is that?
Mine is a Debian Sid.

How do you unmount your device? In terminal or by right-clicking the
icon on the desktop?

Quote:
This, however, may be the issue: your system may be misconfigured, or
this undesirable behaviour may be a result of the file system you are
using on your USB device.

So the question is: what file system do you have on the device that
disappears immediately when you umount it, and if applicable, what are
your fstab options for this device?

Finally, how do you have your system configured to automount hot
attached mass storage devices?

Two partitions on the USB stick. One with vfat, one with ext2.

No entry in fstab, udev/hal/g-v-m/pmount does the mounting when I plug
in the device.

/M

--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus.therning@gmail.com
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

Do not meddle in the affairs of Wizards, for they are subtle and quick
to anger.
-- J.R.R Tolkien
Back to top
H.S.
*nix forums Guru Wannabe


Joined: 21 Aug 2005
Posts: 179

PostPosted: Tue Jul 18, 2006 3:50 pm    Post subject: Re: Removing USB memory Reply with quote

Magnus Therning wrote:

Quote:
BTW, I let udev mount the pluggable devices automatically.


I doubt udev is the party that mounts it. udev creates the device in
/dev, I don't think it can mount things.

Yes, you are correct.


Quote:
AFAIU on GNOME this is what happens when a storage device is plugged in:

1. udev creates a device node in /dev
2. hal is informed about the new device
3. gnome-volume-manager gets informed by hal and calls pmount to mount
the device

Yes, that is what happens. Nice explanation. I was being sloppy with my
one liner which was more or less meant to a 'slang' for the above steps.
My bad.

->HS




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [12 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 6:48 am | All times are GMT
navigation Forum index » *nix » Linux » Distributions » Debian
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts postfix out of memory error - please help metind Postfix 0 Mon Sep 11, 2006 1:54 am
No new posts Non IBM memory in p630 Ron AIX 0 Fri Jul 21, 2006 2:05 pm
No new posts database Share Memory Limit (2 GB ) in a Instance is tota... sadanjan@gmail.com IBM DB2 0 Fri Jul 21, 2006 12:57 pm
No new posts Where is this code not freeing memory ? jithoosin C++ 2 Fri Jul 21, 2006 9:39 am
No new posts Where is this code not freeing memory ? jithoosin C++ 1 Fri Jul 21, 2006 9:27 am

Debt Consolidation | Loans and Credit Cards | Credit Counseling | Biker shirts shop | Debt Consolidation
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.4047s ][ Queries: 16 (0.2608s) ][ GZIP on - Debug on ]