Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2012 20:47:50 +0100
From:      David Demelier <demelier.david@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Can't figure out why my / is busy
Message-ID:  <50B518E6.6060506@gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
Hello,

I have an old Alix appliance on a CompactFlash, usually I keep / mounted 
read-only to preserve the flash device as longer as possible.

I have installed some packages today, and now I can't mount / read-only 
again, usually it was working.

markand@Ananas ~ $ sudo mount -u -r /
mount: /dev/ad0s1a : Device busy

But fstat does not show any file opened for writing in / or else (note 
that /var /tmp are memory file systems)

USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W
root     fstat      27734 root /             2 drwxr-xr-x     512  r
root     fstat      27734   wd /        141635 drwxr-xr-x     512  r
root     fstat      27734 text /         95191 -r-xr-sr-x   16644  r
root     fstat      27734    0 /dev         55 crw--w----   pts/0 rw
root     fstat      27734    1 /dev         55 crw--w----   pts/0 rw
root     fstat      27734    2 /dev         55 crw--w----   pts/0 rw
root     fstat      27734    3 /dev         11 crw-r-----     mem  r
root     fstat      27734    4 /dev         12 crw-r-----    kmem  r
root     fstat      27734    5 /        191672 -rw-------   40960  r
root     sudo       27733 root /             2 drwxr-xr-x     512  r
root     sudo       27733   wd /        141635 drwxr-xr-x     512  r
root     sudo       27733 text /        123603 ---s--x--x  146416  r
root     sudo       27733    0 /dev         55 crw--w----   pts/0 rw
root     sudo       27733    1 /dev         55 crw--w----   pts/0 rw
root     sudo       27733    2 /dev         55 crw--w----   pts/0 rw
root     sudo       27733    3* local dgram c22de158
root     sudo       27732 root /             2 drwxr-xr-x     512  r
root     sudo       27732   wd /        141635 drwxr-xr-x     512  r
root     sudo       27732 text /        123603 ---s--x--x  146416  r
root     sudo       27732    0 /dev         55 crw--w----   pts/0 rw
root     sudo       27732    1 /dev         55 crw--w----   pts/0 rw
root     sudo       27732    2 /dev         55 crw--w----   pts/0 rw
root     sudo       27732    3* local dgram c22ddd70
root     cupsd      27621 root /             2 drwxr-xr-x     512  r
root     cupsd      27621   wd /             2 drwxr-xr-x     512  r
root     cupsd      27621 text /        167335 -r-x------  425764  r
root     cupsd      27621    0 /dev         23 crw-rw-rw-    null  r
root     cupsd      27621    1 /dev         23 crw-rw-rw-    null  w
root     cupsd      27621    2 /dev         23 crw-rw-rw-    null  w
root     cupsd      27621    4 /var        112 -rw-r--r--    8657 rw
root     cupsd      27621    5 /var         26 -rw-r--r--    4457 rw
root     cupsd      27621    6 /var        113 -rw-r--r--      78 rw
root     cupsd      27621    7* internet stream tcp c239f000
root     cupsd      27621    8* local stream c22de764
root     cupsd      27621    9* internet dgram udp c222f44c
root     cupsd      27621   10* pipe c21c4930 <-> c21c49e8      0 rw
root     cupsd      27621   11* pipe c21c49e8 <-> c21c4930      0 rw
markand  zsh        27552 root /             2 drwxr-xr-x     512  r
markand  zsh        27552   wd /        141635 drwxr-xr-x     512  r
markand  zsh        27552 text /        120676 -r-xr-xr-x  539936  r
markand  zsh        27552    0 /dev         55 crw--w----   pts/0 rw
markand  zsh        27552    1 /dev         55 crw--w----   pts/0 rw
markand  zsh        27552    2 /dev         55 crw--w----   pts/0 rw
markand  zsh        27552   10 /dev         55 crw--w----   pts/0 rw
markand  zsh        27552   12 /        120733 -rw-r--r--  175256  r
markand  zsh        27552   13 /        121399 -rw-r--r--  127840  r
markand  zsh        27552   14 /        120765 -rw-r--r--  246128  r
markand  zsh        27552   15 /        121300 -rw-r--r--  186416  r
markand  zsh        27552   16 /        120959 -rw-r--r--  2424816  r
markand  zsh        27552   17 /        120748 -rw-r--r--   46888  r
markand  sshd       27551 root /             2 drwxr-xr-x     512  r
markand  sshd       27551   wd /             2 drwxr-xr-x     512  r
markand  sshd       27551 text /         95137 -r-xr-xr-x  228188  r
markand  sshd       27551    0 /dev         23 crw-rw-rw-    null rw
markand  sshd       27551    1 /dev         23 crw-rw-rw-    null rw
markand  sshd       27551    2 /dev         23 crw-rw-rw-    null rw
markand  sshd       27551    3* internet stream tcp c239f768
markand  sshd       27551    4* local stream c22dee1c <-> c24bf000
markand  sshd       27551    5* pipe c21c47a8 <-> c21c4860      0 rw
markand  sshd       27551    6* pipe c21c4860 <-> c21c47a8      0 rw
markand  sshd       27551    7* pseudo-terminal master      pts/0 rw
markand  sshd       27551    9* pseudo-terminal master      pts/0 rw
markand  sshd       27551   10* pseudo-terminal master      pts/0 rw
root     sshd       27549 root /             2 drwxr-xr-x     512  r
root     sshd       27549   wd /             2 drwxr-xr-x     512  r
root     sshd       27549 text /         95137 -r-xr-xr-x  228188  r
root     sshd       27549    0 /dev         23 crw-rw-rw-    null  r
root     sshd       27549    1 /dev         23 crw-rw-rw-    null rw
root     sshd       27549    2 /dev         23 crw-rw-rw-    null rw
root     sshd       27549    3* internet stream tcp c239f768
root     sshd       27549    4* pseudo-terminal master      pts/0 rw
root     sshd       27549    5* local stream c24bf000 <-> c22dee1c
root     zsh        14180 root /             2 drwxr-xr-x     512  r
root     zsh        14180   wd /        164865 drwxr-xr-x     512  r
root     zsh        14180 text /        120676 -r-xr-xr-x  539936  r
root     zsh        14180    0 /dev         28 crw-------   ttyu0 rw
root     zsh        14180    1 /dev         28 crw-------   ttyu0 rw
root     zsh        14180    2 /dev         28 crw-------   ttyu0 rw
root     zsh        14180   10 /dev         28 crw-------   ttyu0 rw
root     zsh        14180   12 /        120733 -rw-r--r--  175256  r
root     zsh        14180   13 /        121399 -rw-r--r--  127840  r
root     zsh        14180   14 /        120765 -rw-r--r--  246128  r
root     login      14179 root /             2 drwxr-xr-x     512  r
root     login      14179   wd /        164865 drwxr-xr-x     512  r
root     login      14179 text /         95243 -r-sr-xr-x   19116  r
root     login      14179    0 /dev         28 crw-------   ttyu0 rw
root     login      14179    1 /dev         28 crw-------   ttyu0 rw
root     login      14179    2 /dev         28 crw-------   ttyu0 rw
root     login      14179    3* local dgram c22dd560 <-> c22dd2b0
nobody   dnsmasq    37448 root /             2 drwxr-xr-x     512  r
nobody   dnsmasq    37448   wd /             2 drwxr-xr-x     512  r
nobody   dnsmasq    37448 text /        121623 -r-xr-xr-x  148684  r
nobody   dnsmasq    37448    0 /dev         23 crw-rw-rw-    null rw
nobody   dnsmasq    37448    1 /dev         23 crw-rw-rw-    null rw
nobody   dnsmasq    37448    2 /dev         23 crw-rw-rw-    null rw
nobody   dnsmasq    37448    3 /var       1109 -rw-r--r--      69 rw
nobody   dnsmasq    37448    4* internet dgram udp c222fe9c
nobody   dnsmasq    37448    5* internet raw icmp c23997bc
nobody   dnsmasq    37448    6 /dev         25 crw-------     bpf rw
nobody   dnsmasq    37448    7* internet dgram udp c222f528
nobody   dnsmasq    37448    8* internet stream tcp c239e9e0
nobody   dnsmasq    37448    9* pipe c21c4ab8 <-> c21c4b70      0 rw
nobody   dnsmasq    37448   10* pipe c21c4b70 <-> c21c4ab8      0 rw
nobody   dnsmasq    37448   11* local dgram c22dda14 <-> c22dd35c
root     ntpd       54580 root /             2 drwxr-xr-x     512  r
root     ntpd       54580   wd /             2 drwxr-xr-x     512  r
root     ntpd       54580 text /         95480 -r-xr-xr-x  345040  r
root     ntpd       54580    0 /dev         23 crw-rw-rw-    null rw
root     ntpd       54580    1 /dev         23 crw-rw-rw-    null rw
root     ntpd       54580    2 /dev         23 crw-rw-rw-    null rw
root     ntpd       54580    3* local dgram c22dd158 <-> c22dd2b0
root     ntpd       54580   20* internet dgram udp c222fa50
root     ntpd       54580   21* internet dgram udp c222f294
root     ntpd       54580   22* internet dgram udp c222fc08
root     ntpd       54580   23* internet dgram udp c222fce4
root     ntpd       54580   24* route raw 0 c222e9a8
root     hostapd     1330 root /             2 drwxr-xr-x     512  r
root     hostapd     1330   wd /             2 drwxr-xr-x     512  r
root     hostapd     1330 text /         95555 -r-xr-xr-x  241828  r
root     hostapd     1330    0 /dev         23 crw-rw-rw-    null rw
root     hostapd     1330    1 /dev         23 crw-rw-rw-    null rw
root     hostapd     1330    2 /dev         23 crw-rw-rw-    null rw
root     hostapd     1330    3* internet dgram udp c222f370
root     hostapd     1330    4 /dev         25 crw-------     bpf rw
root     hostapd     1330    5* route raw 0 c23a0b44
root     hostapd     1330    6* local dgram c22dd60c <-> c22dd2b0
root     hostapd     1330    7* local dgram c22dd6b8
root     cron        1286 root /             2 drwxr-xr-x     512  r
root     cron        1286   wd /var       2178 drwxr-x---     512  r
root     cron        1286 text /         95401 -r-xr-xr-x   34276  r
root     cron        1286    0 /dev         23 crw-rw-rw-    null rw
root     cron        1286    1 /dev         23 crw-rw-rw-    null rw
root     cron        1286    2 /dev         23 crw-rw-rw-    null rw
root     cron        1286    3 /var       1117 -rw-------       4  w
root     sshd        1275 root /             2 drwxr-xr-x     512  r
root     sshd        1275   wd /             2 drwxr-xr-x     512  r
root     sshd        1275 text /         95137 -r-xr-xr-x  228188  r
root     sshd        1275    0 /dev         23 crw-rw-rw-    null rw
root     sshd        1275    1 /dev         23 crw-rw-rw-    null rw
root     sshd        1275    2 /dev         23 crw-rw-rw-    null rw
root     sshd        1275    3* internet stream tcp c239e278
nobody   darkstat    1245 root /             2 drwxr-xr-x     512  r
nobody   darkstat    1245   wd /var       1113 drwxr-xr-x     512  r
nobody   darkstat    1245 text /        121785 -r-xr-xr-x   94785  r
nobody   darkstat    1245    0 /dev         23 crw-rw-rw-    null rw
nobody   darkstat    1245    1 /dev         23 crw-rw-rw-    null rw
nobody   darkstat    1245    2 /dev         23 crw-rw-rw-    null rw
nobody   darkstat    1245    3* local stream c22dd000 <-> c22dd408
nobody   darkstat    1244 root /var       1113 drwxr-xr-x     512  r
nobody   darkstat    1244   wd /var       1113 drwxr-xr-x     512  r
nobody   darkstat    1244 jail /var       1113 drwxr-xr-x     512  r
nobody   darkstat    1244 text /        121785 -r-xr-xr-x   94785  r
nobody   darkstat    1244    0 /dev         23 crw-rw-rw-    null rw
nobody   darkstat    1244    1 /dev         23 crw-rw-rw-    null rw
nobody   darkstat    1244    2 /dev         23 crw-rw-rw-    null rw
nobody   darkstat    1244    3 /dev         25 crw-------     bpf rw
nobody   darkstat    1244    7* local stream c22dd408 <-> c22dd000
nobody   darkstat    1244    8* internet stream tcp c239e768
root     syslogd      959 root /             2 drwxr-xr-x     512  r
root     syslogd      959   wd /             2 drwxr-xr-x     512  r
root     syslogd      959 text /         95529 -r-xr-xr-x   35916  r
root     syslogd      959    0 /dev         23 crw-rw-rw-    null rw
root     syslogd      959    1 /dev         23 crw-rw-rw-    null rw
root     syslogd      959    2 /dev         23 crw-rw-rw-    null rw
root     syslogd      959    3 /var       1104 -rw-------       3  w
root     syslogd      959    4* local dgram c22dd35c
root     syslogd      959    5* local dgram c22dd2b0
root     syslogd      959    6* internet dgram udp c222f604
root     syslogd      959    7 /dev         10 crw-------    klog  r
root     syslogd      959    9 /dev          5 crw-------  console  w
root     syslogd      959   10 /var         19 -rw-r--r--   80408  w
root     syslogd      959   11 /var         21 -rw-------      61  w
root     syslogd      959   12 /var         13 -rw-------   15574  w
root     syslogd      959   13 /var        141 -rw-r-----     225  w
root     syslogd      959   14 /var         17 -rw-r--r--     119  w
root     syslogd      959   15 /var         22 -rw-------      61  w
root     syslogd      959   16 /var         12 -rw-------   78785  w
root     syslogd      959   17 /var         49 -rw-------   81367  w
root     syslogd      959   18 /var         20 -rw-r-----      61  w
root     devd         704 root /             2 drwxr-xr-x     512  r
root     devd         704   wd /             2 drwxr-xr-x     512  r
root     devd         704 text /         47150 -r-xr-xr-x  379540  r
root     devd         704    0 /dev         23 crw-rw-rw-    null rw
root     devd         704    1 /dev         23 crw-rw-rw-    null rw
root     devd         704    2 /dev         23 crw-rw-rw-    null rw
root     devd         704    3 /        188420 drwxr-xr-x     512  r
root     devd         704    4 /dev          4 crw-------  devctl  r
root     devd         704    5* local stream c22dd968
root     devd         704    6 /var       1103 -rw-------       3  w
_pflogd  pflogd       576 root /var          4 dr-xr-xr-x     512  r
_pflogd  pflogd       576   wd /var          4 dr-xr-xr-x     512  r
_pflogd  pflogd       576 jail /var          4 dr-xr-xr-x     512  r
_pflogd  pflogd       576 text /         47238 -r-xr-xr-x   18812  r
_pflogd  pflogd       576    0 /dev         23 crw-rw-rw-    null rw
_pflogd  pflogd       576    1 /dev         23 crw-rw-rw-    null rw
_pflogd  pflogd       576    2 /dev         23 crw-rw-rw-    null rw
_pflogd  pflogd       576    3 /dev         25 crw-------     bpf rw
_pflogd  pflogd       576    4 /var         32 -rw-------   14006 rw
_pflogd  pflogd       576    5* local stream c22ddb6c <-> c22ddc18
root     pflogd       573 root /             2 drwxr-xr-x     512  r
root     pflogd       573   wd /             2 drwxr-xr-x     512  r
root     pflogd       573 text /         47238 -r-xr-xr-x   18812  r
root     pflogd       573    0 /dev         23 crw-rw-rw-    null rw
root     pflogd       573    1 /dev         23 crw-rw-rw-    null rw
root     pflogd       573    2 /dev         23 crw-rw-rw-    null rw
root     pflogd       573    3 /dev         25 crw-------     bpf rw
root     pflogd       573    4* local stream c22ddc18 <-> c22ddb6c
root     pflogd       573    5* local dgram c22dd0ac <-> c22dd2b0
root     md1           87 root /             2 drwxr-xr-x     512  r
root     md1           87   wd /             2 drwxr-xr-x     512  r
root     md0           82 root /             2 drwxr-xr-x     512  r
root     md0           82   wd /             2 drwxr-xr-x     512  r
root     init           1 root /             2 drwxr-xr-x     512  r
root     init           1   wd /             2 drwxr-xr-x     512  r
root     init           1 text /         47225 -r-xr-xr-x  534608  r
root     kernel         0 root /             2 drwxr-xr-x     512  r
root     kernel         0   wd /             2 drwxr-xr-x     512  r

Do you have any ideas?

Cheers,

-- 
David Demelier



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?50B518E6.6060506>