Re: Removing USB memory

2006-07-18 Thread Magnus Therning
On Mon, Jul 17, 2006 at 15:37:37 -0600, John W. M. Stevens wrote:
[..]
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.

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)
[EMAIL PROTECTED] Jabber: [EMAIL PROTECTED]
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)


pgpnMvaCXZq8G.pgp
Description: PGP signature


Re: Removing USB memory

2006-07-18 Thread Magnus Therning
On Thu, Jul 13, 2006 at 12:36:51 -0400, H.S. wrote:
[..]
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 :-)

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)
[EMAIL PROTECTED] Jabber: [EMAIL PROTECTED]
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


pgpQdNsu88sXR.pgp
Description: PGP signature


Re: Removing USB memory

2006-07-18 Thread Magnus Therning
On Sun, Jul 16, 2006 at 13:57:42 -0600, John W. M. Stevens wrote:
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?

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)
[EMAIL PROTECTED] Jabber: [EMAIL PROTECTED]
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


pgpfz40BUpu77.pgp
Description: PGP signature


Re: Removing USB memory

2006-07-18 Thread H.S.

Magnus Therning wrote:


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.



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 [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Removing USB memory

2006-07-17 Thread H.S.

John W. M. Stevens wrote:

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.






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).




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 [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Removing USB memory

2006-07-16 Thread John W. M. Stevens
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.

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

 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 [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Removing USB memory

2006-07-14 Thread Magnus Therning
On Thu, Jul 13, 2006 at 09:38:12 -0500, John Hasler wrote:
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)
[EMAIL PROTECTED] Jabber: [EMAIL PROTECTED]
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


pgpTWg0Ci1imw.pgp
Description: PGP signature


Re: Removing USB memory

2006-07-14 Thread Magnus Therning
On Thu, Jul 13, 2006 at 12:36:51 -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. 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)
[EMAIL PROTECTED] Jabber: [EMAIL PROTECTED]
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


pgpmtkdtFw2Hi.pgp
Description: PGP signature


Removing USB memory

2006-07-13 Thread Magnus Therning
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)
[EMAIL PROTECTED] Jabber: [EMAIL PROTECTED]
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


pgphPZdz2ae6C.pgp
Description: PGP signature


Re: Removing USB memory

2006-07-13 Thread John Hasler
Issue a 'sync' command just before unmounting.
-- 
John Hasler


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Removing USB memory

2006-07-13 Thread H.S.

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 [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Removing USB memory

2006-07-13 Thread Margiolas Christos
mayby kde now is better than gnome better technology more usability..XristosOn 7/13/06, H.S. [EMAIL PROTECTED]
 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.
 /MI usually use KDE and I see that by unmounting a USB device from itsicon on the desktop, the icon seems to stay as long as the USB stick'sactivity LED keeps blinking. For large files (images), I have noticed
that the icon stays on the desktop for quite a few seconds. Never hadcorruption on the USB stick. So it appears KDE removes the icon of a USBdevice only when the sync is complete. I am surprised Gnome doesn't do
so. BTW, I let udev mount the pluggable devices automatically. If youare using fstab to do so, you can fix the mount options to set sync tohappen every time the USB device is accessed.-HS
--To UNSUBSCRIBE, email to [EMAIL PROTECTED]with a subject of unsubscribe. Trouble? Contact 
[EMAIL PROTECTED]