[BUGA] df(1) && vnconfig(8) hanging ....

Daniel O'Connor doconnor at gsoft.com.au
Mon Aug 23 17:19:49 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 24 Aug 2004 09:24, Wilkinson, Alex wrote:
> This morning I wanted to edit an ISO to instruct the kernel to redirect its
> output to serial.
>
> i.e
>
> # sudo vnconfig -v -c /dev/vn0 5.3-BETA1-i386-miniinst.iso
> # sudo mount -t cd9660 -o rw /dev/vn0 /mnt

You can't write to a ISO9660 image [with the freebsd driver]

The only way you're going to be able to edit it is to copy it somewhere and 
edit that (alternatively you could merge in a new boot.config file using 
mkisofs)

> # sudo tcsh
> # echo "/boot/loader -h" > boot.config
> boot.config: Read-only file system.
>
> Forget the afforementioned error.
>
> The problem that I have is now when I issue a df(1) my shell hangs:
>
> e.g.
>
> # df -h
> ^C^C^D
> ^C^C^D

Try ctrl-t

it gives you useful into about where things are bunged up.

> # ps -aux | grep df
> username 3333  0.0  0.0   212   96  p2  D+    9:04AM   0:00.00 df -h
> username 3332  0.0  0.0   212   96  p1  D+    9:04AM   0:00.00 df -h
>
> # kill -9 3333 3332
>
> # ps -aux | grep df
> username 3333  0.0  0.0   212   96  p2  D+    9:04AM   0:00.00 df -h
> username 3332  0.0  0.0   212   96  p1  D+    9:04AM   0:00.00 df -h
>
> No change.
>
> I'm not sure what has hung here, nor am I sure how to 'un-hang' my shell.
>
> Any thoughts anyone ?

Press ctrl-t or use the -l option to ps to find the wait channel (that will 
tell you where in the kernel it's blocked)

- -- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFBKomS5ZPcIHs/zowRAjziAJ93mT6IIyQVrw6eRV1ytPG9IDuvrACfTeSH
l8d5m82knRLXnbcsz9LoDsQ=
=ZyX3
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list