remount Read-Only = Device busy
Miroslav Lachman
000.fbsd at quip.cz
Sun Dec 6 20:18:51 CET 2009
Dan Lukes wrote:
> Miroslav Lachman napsal/wrote, On 09/16/09 15:56:
[...]
> Pripada mi, ze fstat ma v patem sloupci uvedeny mountpoint a v poslednim
> typ otevreni - takze ty hledas radky, ktere konci 'rw' a maji zkoumany
> mountpoint.
>
> Mimochodem, manualova stranka od fstat, pasaz tykajici se popisu R/W
> sloupce jako by z oka vypadla odpovedi na tvuj dotaz ;-)
Tak jsem tu opet se stejnym problemem na stejnem stroji - po remountu
root oddilu pro zapis a provedeni aktualizace systemu a portu se mi
nedari remount zpet na Read-Only. Pritom fstat ani lsof nevypisuje zadny
otevreny soubor pro zapis z tohoto oddilu.
Root lezi na USB flashdisku a bootuje se z neho system FreeBSD 7.2 amd64
v rezimu pouze pro cteni, ostatni oddily jsou na ZFS ze 4 HDD.
# mount -t ufs
/dev/ufs/2gLive on / (ufs, local)
# mount -r /
mount: : Device busy
# mount -u -o current,ro /
mount: /dev/ufs/2gLive : Device busy
Kompletni seznam otevrenych souboru z root oddilu - "/" (nevidim tam
zadny otevreny pro zapis)
# fstat | awk '$5 == "/" { print $0 }'
root awk 65418 root / 2 drwxr-xr-x 512 r
root awk 65418 wd / 47105 drwxr-xr-x 1024 r
root awk 65418 text / 145867 -r-xr-xr-x 136360 r
root fstat 65417 root / 2 drwxr-xr-x 512 r
root fstat 65417 wd / 47105 drwxr-xr-x 1024 r
root fstat 65417 text / 146160 -r-xr-sr-x 20448 r
root fstat 65417 5 / 47174 -rw------- 40960 r
root tcsh 30297 root / 2 drwxr-xr-x 512 r
root tcsh 30297 wd / 47105 drwxr-xr-x 1024 r
root tcsh 30297 text / 188419 -r-xr-xr-x 354664 r
root screen 30295 root / 2 drwxr-xr-x 512 r
root screen 30295 wd / 47105 drwxr-xr-x 1024 r
root screen 30295 text / 188624 -rwsr-xr-x 329808 r
root screen 30295 6 / 47471 -rw-r--r-- 13043 r
root screen 30294 root / 2 drwxr-xr-x 512 r
root screen 30294 wd / 47105 drwxr-xr-x 1024 r
root screen 30294 text / 188624 -rwsr-xr-x 329808 r
root tcsh 30271 root / 2 drwxr-xr-x 512 r
root tcsh 30271 wd / 47105 drwxr-xr-x 1024 r
root tcsh 30271 text / 188419 -r-xr-xr-x 354664 r
root su 30270 root / 2 drwxr-xr-x 512 r
root su 30270 wd / 188456 drwx------ 512 r
root su 30270 text / 145888 -r-sr-xr-x 16936 r
quip tcsh 30264 root / 2 drwxr-xr-x 512 r
quip tcsh 30264 wd / 188456 drwx------ 512 r
quip tcsh 30264 text / 188419 -r-xr-xr-x 354664 r
quip sshd 30262 root / 2 drwxr-xr-x 512 r
quip sshd 30262 wd / 2 drwxr-xr-x 512 r
quip sshd 30262 text / 145093 -r-xr-xr-x 243248 r
root sshd 30260 root / 2 drwxr-xr-x 512 r
root sshd 30260 wd / 2 drwxr-xr-x 512 r
root sshd 30260 text / 145093 -r-xr-xr-x 243248 r
root getty 44523 root / 2 drwxr-xr-x 512 r
root getty 44523 wd / 2 drwxr-xr-x 512 r
root getty 44523 text / 145147 -r-xr-xr-x 27752 r
root getty 754 root / 2 drwxr-xr-x 512 r
root getty 754 wd / 2 drwxr-xr-x 512 r
root getty 754 text / 145147 -r-xr-xr-x 27752 r
root getty 753 root / 2 drwxr-xr-x 512 r
root getty 753 wd / 2 drwxr-xr-x 512 r
root getty 753 text / 145147 -r-xr-xr-x 27752 r
root getty 752 root / 2 drwxr-xr-x 512 r
root getty 752 wd / 2 drwxr-xr-x 512 r
root getty 752 text / 145147 -r-xr-xr-x 27752 r
root getty 751 root / 2 drwxr-xr-x 512 r
root getty 751 wd / 2 drwxr-xr-x 512 r
root getty 751 text / 145147 -r-xr-xr-x 27752 r
root getty 750 root / 2 drwxr-xr-x 512 r
root getty 750 wd / 2 drwxr-xr-x 512 r
root getty 750 text / 145147 -r-xr-xr-x 27752 r
root getty 749 root / 2 drwxr-xr-x 512 r
root getty 749 wd / 2 drwxr-xr-x 512 r
root getty 749 text / 145147 -r-xr-xr-x 27752 r
root getty 748 root / 2 drwxr-xr-x 512 r
root getty 748 wd / 2 drwxr-xr-x 512 r
root getty 748 text / 145147 -r-xr-xr-x 27752 r
root cron 707 root / 2 drwxr-xr-x 512 r
root cron 707 text / 144953 -r-xr-xr-x 39176 r
smmsp sendmail 700 root / 2 drwxr-xr-x 512 r
smmsp sendmail 700 text / 145163 -r-xr-sr-x 685440 r
root sendmail 696 root / 2 drwxr-xr-x 512 r
root sendmail 696 text / 145163 -r-xr-sr-x 685440 r
root sshd 690 root / 2 drwxr-xr-x 512 r
root sshd 690 wd / 2 drwxr-xr-x 512 r
root sshd 690 text / 145093 -r-xr-xr-x 243248 r
root ntpd 652 root / 2 drwxr-xr-x 512 r
root ntpd 652 wd / 2 drwxr-xr-x 512 r
root ntpd 652 text / 145038 -r-xr-xr-x 377328 r
root smartd 621 root / 2 drwxr-xr-x 512 r
root smartd 621 wd / 2 drwxr-xr-x 512 r
root smartd 621 text / 190426 -r-xr-xr-x 248784 r
root syslogd 541 root / 2 drwxr-xr-x 512 r
root syslogd 541 wd / 2 drwxr-xr-x 512 r
root syslogd 541 text / 145068 -r-xr-xr-x 39080 r
root devd 485 root / 2 drwxr-xr-x 512 r
root devd 485 wd / 2 drwxr-xr-x 512 r
root devd 485 text / 70668 -r-xr-xr-x 403368 r
root moused 437 root / 2 drwxr-xr-x 512 r
root moused 437 wd / 2 drwxr-xr-x 512 r
root moused 437 text / 145024 -r-xr-xr-x 39792 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 / 70687 -r-xr-xr-x 710168 r
Co tedy jeste muze zpusobovat nemoznost remountu Read-Only?
Mirek
More information about the Users-l
mailing list