mount -o remount,ro cause error "device is busy"

mount -o remount,ro cause error "device is busy"

Post by Michael Cheun » Thu, 07 Mar 2002 16:50:09



hi, all;
        I have upgraded my kernel to version 2.4.
And i have tested 2.4.16 and 2.4.18. Both of these
two version have the same problem when system reboot.
"/: device is busy";
in shutdown script:
umount -a
mount -n -o ro,remount /
these two line result error: device is busy.

I switch to init 1, and all user process go away.
except the following:
root         1  0.1  0.7  1056  484 ?        S    15:46   0:04 init [S]
root         2  0.0  0.0     0    0 ?        SW   15:46   0:00 [keventd]
root         3  0.0  0.0     0    0 ?        SWN  15:46   0:00 [ksoftirqd_CPU0]
root         4  0.0  0.0     0    0 ?        SW   15:46   0:00 [kswapd]
root         5  0.0  0.0     0    0 ?        SW   15:46   0:00 [bdflush]
root         6  0.0  0.0     0    0 ?        SW   15:46   0:00 [kupdated]
root      1042  0.0  0.7  1056  484 tty1     S    16:33   0:00 init [S]
root      1043  0.6  1.5  1840 1004 tty1     S    16:33   0:00 /bin/sh
root      1045  0.0  1.0  2260  680 tty1     R    16:33   0:00 ps aux

then i try
mount -o ro,remount /
error occurs: device is busy.

and i try
mount -o ro,remount /usr
(another partition)
also error occurs: device is busy.

but when i try umount /usr,
it works.

certainly, there is error
device is busy for command umount /.

How can i resolve this problem?

Regards;
Michael

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

mount -o remount,ro cause error "device is busy"

Post by Mike Fedy » Thu, 07 Mar 2002 17:00:10



> hi, all;
>    I have upgraded my kernel to version 2.4.
> And i have tested 2.4.16 and 2.4.18. Both of these
> two version have the same problem when system reboot.
> "/: device is busy";
> in shutdown script:
> umount -a
> mount -n -o ro,remount /
> these two line result error: device is busy.

We need more info about your config.  Do you have any patches in this
kernel?  What modules have been loaded?  Highmem?  x86?  drive controller?
drive? ram size? lspci output, etc...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

mount -o remount,ro cause error "device is busy"

Post by Andreas Dilge » Thu, 07 Mar 2002 17:20:08




> >       I have upgraded my kernel to version 2.4.
> > And i have tested 2.4.16 and 2.4.18. Both of these
> > two version have the same problem when system reboot.
> > "/: device is busy";
> > in shutdown script:
> > umount -a
> > mount -n -o ro,remount /
> > these two line result error: device is busy.

> We need more info about your config.  Do you have any patches in this
> kernel?  What modules have been loaded?  Highmem?  x86?  drive controller?
> drive? ram size? lspci output, etc...

Please don't send that.  It clearly appears to be a user problem.
Order of operations, as I read in the original email:
1) "/" and "/usr" are busy
2) shut down to single user mode
3) "/" still busy
4) "/usr" can be unmounted
5) didn't check that root can be remounted after umounting "/usr"

Clearly, some program is keeping "/usr" busy (which is keeping "/" busy)
before the change to single user mode.  Just a bit of "lsof" needed to
find such things.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

mount -o remount,ro cause error "device is busy"

Post by Michael Cheun » Thu, 07 Mar 2002 17:40:07


hi,

maybe i am wrong, but I really can't find any other process runing.

my step is:
1) "/" and "/usr" are busy
2) shut down to single user mode
3) "/" still busy
4) "/usr" can be unmounted, but can't mount -o ro,remount /usr, show busy error.
5) umount -a, after this, only /proc and / exist.
6) mount -o ro,remount /, show busy error.

I have mentioned I have used "ps aux" to check the process list,
there are no user process left. except the following: (repost)
root         1  0.1  0.7  1056  484 ?        S    15:46   0:04 init [S]
root         2  0.0  0.0     0    0 ?        SW   15:46   0:00 [keventd]
root         3  0.0  0.0     0    0 ?        SWN  15:46   0:00 [ksoftirqd_CPU0]
root         4  0.0  0.0     0    0 ?        SW   15:46   0:00 [kswapd]
root         5  0.0  0.0     0    0 ?        SW   15:46   0:00 [bdflush]
root         6  0.0  0.0     0    0 ?        SW   15:46   0:00 [kupdated]
root      1042  0.0  0.7  1056  484 tty1     S    16:33   0:00 init [S]
root      1043  0.6  1.5  1840 1004 tty1     S    16:33   0:00 /bin/sh
root      1045  0.0  1.0  2260  680 tty1     R    16:33   0:00 ps aux

and I also checked by fuser -v /usr,
only used by kernel.
and fuser -c /, show many process list above.

If i have a mistake, would you like to tell me where is the mistake?

thanks.

Regards;
Michael

On Wed, 6 Mar 2002 01:15:19 -0700




> > >  I have upgraded my kernel to version 2.4.
> > > And i have tested 2.4.16 and 2.4.18. Both of these
> > > two version have the same problem when system reboot.
> > > "/: device is busy";
> > > in shutdown script:
> > > umount -a
> > > mount -n -o ro,remount /
> > > these two line result error: device is busy.

> > We need more info about your config.  Do you have any patches in this
> > kernel?  What modules have been loaded?  Highmem?  x86?  drive controller?
> > drive? ram size? lspci output, etc...

> Please don't send that.  It clearly appears to be a user problem.
> Order of operations, as I read in the original email:
> 1) "/" and "/usr" are busy
> 2) shut down to single user mode
> 3) "/" still busy
> 4) "/usr" can be unmounted
> 5) didn't check that root can be remounted after umounting "/usr"

> Clearly, some program is keeping "/usr" busy (which is keeping "/" busy)
> before the change to single user mode.  Just a bit of "lsof" needed to
> find such things.

> Cheers, Andreas
> --
> Andreas Dilger
> http://sourceforge.net/projects/ext2resize/
> http://www-mddsp.enel.ucalgary.ca/People/adilger/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
 
 
 

mount -o remount,ro cause error "device is busy"

Post by Andreas Schwa » Thu, 07 Mar 2002 19:00:08


|> hi,
|>
|> maybe i am wrong, but I really can't find any other process runing.
|>
|> my step is:
|> 1) "/" and "/usr" are busy
|> 2) shut down to single user mode
|> 3) "/" still busy
|> 4) "/usr" can be unmounted, but can't mount -o ro,remount /usr, show busy error.
|> 5) umount -a, after this, only /proc and / exist.
|> 6) mount -o ro,remount /, show busy error.
|>
|> I have mentioned I have used "ps aux" to check the process list,
|> there are no user process left. except the following: (repost)
|> root         1  0.1  0.7  1056  484 ?        S    15:46   0:04 init [S]
|> root         2  0.0  0.0     0    0 ?        SW   15:46   0:00 [keventd]
|> root         3  0.0  0.0     0    0 ?        SWN  15:46   0:00 [ksoftirqd_CPU0]
|> root         4  0.0  0.0     0    0 ?        SW   15:46   0:00 [kswapd]
|> root         5  0.0  0.0     0    0 ?        SW   15:46   0:00 [bdflush]
|> root         6  0.0  0.0     0    0 ?        SW   15:46   0:00 [kupdated]
|> root      1042  0.0  0.7  1056  484 tty1     S    16:33   0:00 init [S]
|> root      1043  0.6  1.5  1840 1004 tty1     S    16:33   0:00 /bin/sh
|> root      1045  0.0  1.0  2260  680 tty1     R    16:33   0:00 ps aux
|>
|> and I also checked by fuser -v /usr,
|> only used by kernel.
|> and fuser -c /, show many process list above.
|>
|> If i have a mistake, would you like to tell me where is the mistake?

Check for references to deleted files (/proc/*/fd).  "init u" should help.

Andreas.

--

SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nrnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

mount -o remount,ro cause error "device is busy"

Post by Petr » Fri, 08 Mar 2002 11:40:07



> hi,

> maybe i am wrong, but I really can't find any other process runing.

> my step is:
> 1) "/" and "/usr" are busy
> 2) shut down to single user mode
> 3) "/" still busy
> 4) "/usr" can be unmounted, but can't mount -o ro,remount /usr, show busy error.
> 5) umount -a, after this, only /proc and / exist.
> 6) mount -o ro,remount /, show busy error.
> On Wed, 6 Mar 2002 01:15:19 -0700

> > Clearly, some program is keeping "/usr" busy (which is keeping "/" busy)
> > before the change to single user mode.  Just a bit of "lsof" needed to
> > find such things.                                      ||||

                                                           ^^^^
    Best bet is to man lsof.

    lsof's your buddy.

--
Share and Enjoy.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. mount giving "device busy" error

Hi,

I'm having a problem with NetBSD1.3 running on an AlphaStation 200.  I have
two external SCSI hard drives (attached to the built-in controller) that are
refusing to mount.  mount -A gives the following:

mount_ffs: /dev/sd1c on /drive1: Device busy
mount_ffs: /dev/sd2c on /drive2: Device busy

Any ideas why this might be happening and how to fix it?

Thanks,
--Philip.

2. Web Based Chat

3. how to kill "mt" or make "/dev/rmt/..." device NOT BUSY?

4. Swap space not being used

5. GETSERVBYNAME()????????????????????"""""""""""""

6. tcpdump doesn't work under RH 6.1?

7. Can't mount CD: "cd9660: device busy"

8. DNS / router problem

9. SB Live on Asus A7V , Red Hat 7.0 error "device or resource busy"

10. eth0: "device busy" error on new (2.3.33) kernel

11. SB Live on Asus A7V , Red Hat 7.0 error "device or resource busy"

12. "mouse/device busy" error

13. Install probs (old BIOS, large HD, error message: "device is busy")