Re: [CentOS] umount problem

2014-10-08 Thread Fred Smith
On Tue, Oct 07, 2014 at 08:09:14PM -0700, John R Pierce wrote:
 On 10/7/2014 5:54 PM, Fred Smith wrote:
 ...probably left some jbd2 thread hanging loose...
 
 one of the googled articles on jdb2 errors that I read suggested
 there have been kernel bugs which caused the journal writer to go
 nuts and constantly write stuff.   that article was on an archlinux
 forum, and I didn't bother to read up on what kernel versions were
 affected.

thanks, John!

saw that one, but didn't read it, AFAICT it wasn't doing that, but merely
wouldn't let go of the drive

-- 
 Fred Smith -- fre...@fcshome.stoneham.ma.us -
The Lord detests the way of the wicked 
  but he loves those who pursue righteousness.
- Proverbs 15:9 (niv) -
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] umount problem

2014-10-07 Thread John R Pierce

On 10/7/2014 3:13 PM, Fred Smith wrote:

I've got a usb HD mounted, and it has been mounted since the weekend, and
has been kept busy during that period.

now Im done with it an want to umount it, but neither umount nor the
on-screen icon (when right-clicked) will let me do it:

it is /dev/sdd1, mounted as /media/seagateusb. when root tries to
umount it we get this:

# umount /media/seagateusb
umount: /media/seagateusb: device is busy.
 (In some cases useful info about processes that use
  the device is found by lsof(8) or fuser(1))

lsof | grep sdd1 gives this:

$ lsof | grep sdd1

jbd2/sdd1 26358  root  cwd   DIR  253,1 4096  2 
/
jbd2/sdd1 26358  root  rtd   DIR  253,1 4096  2 
/
jbd2/sdd1 26358  root  txt   unknown
/proc/26358/exe



whats process  26358?

ps -fwp 26358

will show you this...



--
john r pierce  37N 122W
somewhere on the middle of the left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] umount problem

2014-10-07 Thread m . roth
Fred Smith wrote:
 I've got a usb HD mounted, and it has been mounted since the weekend, and
 has been kept busy during that period.

 now Im done with it an want to umount it, but neither umount nor the
 on-screen icon (when right-clicked) will let me do it:

 it is /dev/sdd1, mounted as /media/seagateusb. when root tries to
 umount it we get this:
snip
It's under control of autofs. You can open the GUI file manager, and do a
safely remove/eject.

Or you can stop autofs for a minute, and then umount it.

  mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] umount problem

2014-10-07 Thread Fred Smith
On Tue, Oct 07, 2014 at 03:18:37PM -0700, John R Pierce wrote:
 On 10/7/2014 3:13 PM, Fred Smith wrote:
 I've got a usb HD mounted, and it has been mounted since the weekend, and
 has been kept busy during that period.
 
 now Im done with it an want to umount it, but neither umount nor the
 on-screen icon (when right-clicked) will let me do it:
 
 it is /dev/sdd1, mounted as /media/seagateusb. when root tries to
 umount it we get this:
 
 # umount /media/seagateusb
 umount: /media/seagateusb: device is busy.
  (In some cases useful info about processes that use
   the device is found by lsof(8) or fuser(1))
 
 lsof | grep sdd1 gives this:
 
 $ lsof | grep sdd1
 
 jbd2/sdd1 26358  root  cwd   DIR  253,1 4096 
  2 /
 jbd2/sdd1 26358  root  rtd   DIR  253,1 4096 
  2 /
 jbd2/sdd1 26358  root  txt   unknown 
/proc/26358/exe
 
 
 whats process  26358?
 
 ps -fwp 26358
 
 will show you this...

here's the result of your PS command, but I personally do not find it
to be the least bit enlightening. perhaps you will...:

# ps -fwp 26358
UIDPID  PPID  C STIME TTY  TIME CMD
root 26358 2  0 Oct04 ?00:01:14 [jbd2/sdd1-8]

-- 
 Fred Smith -- fre...@fcshome.stoneham.ma.us -
   I can do all things through Christ 
  who strengthens me.
-- Philippians 4:13 ---
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] umount problem

2014-10-07 Thread Fred Smith
On Tue, Oct 07, 2014 at 06:19:00PM -0400, m.r...@5-cent.us wrote:
 Fred Smith wrote:
  I've got a usb HD mounted, and it has been mounted since the weekend, and
  has been kept busy during that period.
 
  now Im done with it an want to umount it, but neither umount nor the
  on-screen icon (when right-clicked) will let me do it:
 
  it is /dev/sdd1, mounted as /media/seagateusb. when root tries to
  umount it we get this:
 snip
 It's under control of autofs. You can open the GUI file manager, and do a
 safely remove/eject.
 
 Or you can stop autofs for a minute, and then umount it.

actually, no I can't. if I right-click on seagateusb and click unmount, I 
get an error box saying Unable to unmount seagateusb. Cannot unmount
because file system on device is busy.

OTOH, if I choose safely remove drive instad, I get Unable to stop 
drive. This file cannot be stopped.

I've killed all the shells and in fact all the interactive processes
then logged off and on, so I'm pretty sure it's nothing I ran that
is got a hold on the device. I hate to use the three-finger-salue from
Windows, just to fix a piddly little problem like this :)

-- 
 Fred Smith -- fre...@fcshome.stoneham.ma.us -
The Lord is like a strong tower. 
 Those who do what is right can run to him for safety.
--- Proverbs 18:10 (niv) -
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] umount problem

2014-10-07 Thread m . roth
Fred Smith wrote:
 On Tue, Oct 07, 2014 at 06:19:00PM -0400, m.r...@5-cent.us wrote:
 Fred Smith wrote:
  I've got a usb HD mounted, and it has been mounted since the weekend,
 and has been kept busy during that period.
 
  now Im done with it an want to umount it, but neither umount nor the
  on-screen icon (when right-clicked) will let me do it:
 
  it is /dev/sdd1, mounted as /media/seagateusb. when root tries to
  umount it we get this:
 snip
 It's under control of autofs. You can open the GUI file manager, and do
 a safely remove/eject.

 Or you can stop autofs for a minute, and then umount it.

 actually, no I can't. if I right-click on seagateusb and click unmount, I
 get an error box saying Unable to unmount seagateusb. Cannot unmount
 because file system on device is busy.
snip
Ok, try lsof /media/seagateusb - that may tell you what's holding it.

Did you try service autofs stop?

  mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] umount problem

2014-10-07 Thread John R Pierce

On 10/7/2014 3:29 PM, Fred Smith wrote:

here's the result of your PS command, but I personally do not find it
to be the least bit enlightening. perhaps you will...:

# ps -fwp 26358
UIDPID  PPID  C STIME TTY  TIME CMD
root 26358 2  0 Oct04 ?00:01:14 [jbd2/sdd1-8]


processes in [] are system processes or kernel threads, I believe. not 
sure what the significance of jbd2 is hmm, google suggests its the 
journaling block device, used for journaled versions of extfs (ext3, ext4) ?

http://en.wikipedia.org/wiki/Journaling_block_device


--
john r pierce  37N 122W
somewhere on the middle of the left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] umount problem

2014-10-07 Thread Fred Smith
On Tue, Oct 07, 2014 at 06:46:17PM -0400, m.r...@5-cent.us wrote:
 Fred Smith wrote:
  On Tue, Oct 07, 2014 at 06:19:00PM -0400, m.r...@5-cent.us wrote:
  Fred Smith wrote:
   I've got a usb HD mounted, and it has been mounted since the weekend,
  and has been kept busy during that period.
  
   now Im done with it an want to umount it, but neither umount nor the
   on-screen icon (when right-clicked) will let me do it:
  
   it is /dev/sdd1, mounted as /media/seagateusb. when root tries to
   umount it we get this:
  snip
  It's under control of autofs. You can open the GUI file manager, and do
  a safely remove/eject.
 
  Or you can stop autofs for a minute, and then umount it.
 
  actually, no I can't. if I right-click on seagateusb and click unmount, I
  get an error box saying Unable to unmount seagateusb. Cannot unmount
  because file system on device is busy.
 snip
 Ok, try lsof /media/seagateusb - that may tell you what's holding it.
 
 Did you try service autofs stop?

yes, made no difference.

another responder suggests it is journalling block device daemon/
thread/whatever holding the device. looking into that as we speak

Fred

-- 
 Fred Smith -- fre...@fcshome.stoneham.ma.us -
  And he will be called Wonderful Counselor, Mighty God, Everlasting Father,
  Prince of Peace. Of the increase of his government there will be no end. He 
 will reign on David's throne and over his kingdom, establishing and upholding
  it with justice and righteousness from that time on and forever.
--- Isaiah 9:7 (niv) --
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] umount problem

2014-10-07 Thread Fred Smith
On Tue, Oct 07, 2014 at 07:37:25PM -0400, Fred Smith wrote:
 On Tue, Oct 07, 2014 at 06:46:17PM -0400, m.r...@5-cent.us wrote:
  Fred Smith wrote:
   On Tue, Oct 07, 2014 at 06:19:00PM -0400, m.r...@5-cent.us wrote:
   Fred Smith wrote:
I've got a usb HD mounted, and it has been mounted since the weekend,
   and has been kept busy during that period.
   
now Im done with it an want to umount it, but neither umount nor the
on-screen icon (when right-clicked) will let me do it:
   
it is /dev/sdd1, mounted as /media/seagateusb. when root tries to
umount it we get this:
   snip
   It's under control of autofs. You can open the GUI file manager, and do
   a safely remove/eject.
  
   Or you can stop autofs for a minute, and then umount it.
  
   actually, no I can't. if I right-click on seagateusb and click unmount, I
   get an error box saying Unable to unmount seagateusb. Cannot unmount
   because file system on device is busy.
  snip
  Ok, try lsof /media/seagateusb - that may tell you what's holding it.
  
  Did you try service autofs stop?
 
 yes, made no difference.
 
 another responder suggests it is journalling block device daemon/
 thread/whatever holding the device. looking into that as we speak

Got tired of fooling with it and did a umount -l which immediately
released the drive. probably left some jbd2 thread hanging loose, but
at this point Im not too concerned.

thanks for the suggestions!

-- 
 Fred Smith -- fre...@fcshome.stoneham.ma.us -
   But God demonstrates his own love for us in this: 
 While we were still sinners, 
  Christ died for us.
--- Romans 5:8 (niv) --
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] umount problem

2014-10-07 Thread John R Pierce

On 10/7/2014 5:54 PM, Fred Smith wrote:

...probably left some jbd2 thread hanging loose...


one of the googled articles on jdb2 errors that I read suggested there 
have been kernel bugs which caused the journal writer to go nuts and 
constantly write stuff.   that article was on an archlinux forum, and I 
didn't bother to read up on what kernel versions were affected.





--
john r pierce  37N 122W
somewhere on the middle of the left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos