This contains links to information used in the lectures.
Filesystems are unmounted using the umount command. Normally you cannot unmount a busy filesystem, that is there must be no open files and no processes executing in a directory there. BSD and OSF/1 allow forcing unmounting of busy filesystem using umount -f - this is a bad idea.
Finding the processes that are preventing unmounting is a pain. There is a program lsof - list of open files - by Victor Abell of Purdue which lists them. Click here to obtain by ftp.
dr-xr-xr-x 12 bin bin 4096 Jan 25 14:37 /dev/ -rwxr-xr-x 1 farrell faculty 16384 Sep 28 1994 access* -rw-r-xr-x 1 farrell faculty 542 Sep 26 1994 access.c* prw-r-xr-x 1 farrell faculty 0 Sep 26 1994 anamedpipe* -rw-r-xr-x 2 farrell faculty 50 Sep 26 1994 bar* lrwxr-xr-x 1 farrell faculty 2 Sep 22 01:04 here@ -> .. lrwxr-xr-x 1 farrell faculty 3 Sep 22 01:04 new@ -> bar crw-rw-rw- 2 root other 17 0x000020 Apr 2 1993 /dev/ttyr0 crw-rw-rw- 2 root other 17 0x000021 Apr 2 1993 /dev/ttyr1 crw-r----- 1 root sys 47 0x201000 Dec 1 1993 /dev/rdsk/c201d0s0 crw-r----- 1 root sys 47 0x201100 Apr 2 1993 /dev/rdsk/c201d1s0 brw-r----- 1 root sys 7 0x201000 Dec 1 1993 /dev/dsk/c201d0s0 brw-r----- 1 root sys 7 0x201100 Apr 2 1993 /dev/dsk/c201d1s0