root@bsd:~ # mount
/dev/ada0p2 on / (ufs, NFS exported, local, journaled soft-updates)
devfs on /dev (devfs)
/dev/ada0p3 on /usr/ports (ufs, NFS exported, local, journaled soft-updates)
root@bsd:~ # df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 9.7G 1.6G 7.3G 18% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ada0p3 4.7G 1.0G 3.3G 23% /usr/ports
root@bsd:~ # du -sh /tmp
20K /tmp
root@bsd:~ # sh
# for i in $(seq 1 3);
> do
> dd if=/dev/random of=/tmp/file$i bs=1M count=500
> done500+0 records in
500+0 records out
524288000 bytes transferred in 2.502629 secs (209494913 bytes/sec)
500+0 records in
500+0 records out
524288000 bytes transferred in 2.560358 secs (204771360 bytes/sec)
500+0 records in
500+0 records out
524288000 bytes transferred in 3.240919 secs (161771396 bytes/sec)
# du -sh /tmp
1.5G /tmp
# ls -la /tmp
total 1536504
drwxrwxrwt 6 root wheel 512 Oct 29 14:15 .
drwxr-xr-x 19 root wheel 1024 Oct 29 13:55 ..
drwxrwxrwt 2 root wheel 512 Oct 29 13:55 .ICE-unix
drwxrwxrwt 2 root wheel 512 Oct 29 13:55 .X11-unix
drwxrwxrwt 2 root wheel 512 Oct 29 13:55 .XIM-unix
drwxrwxrwt 2 root wheel 512 Oct 29 13:55 .font-unix
-rw-r--r-- 1 root wheel 524288000 Oct 29 14:14 file1
-rw-r--r-- 1 root wheel 524288000 Oct 29 14:15 file2
-rw-r--r-- 1 root wheel 524288000 Oct 29 14:15 file3
# fsck_ffs -y /dev/ada1p1
** /dev/ada1p1
** Last Mounted on /tmp
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
2 files, 2 used, 507803 free (27 frags, 63472 blocks, 0.0% fragmentation)
***** FILE SYSTEM IS CLEAN *****
# mount /dev/ada1p1 /tmp
# ls -la /tmp
total 12
drwxr-xr-x 3 root wheel 512 Oct 28 20:27 .
drwxr-xr-x 19 root wheel 1024 Oct 29 13:55 ..
drwxrwxr-x 2 root operator 512 Oct 28 20:20 .snap
# du -sh /tmp
8.0K /tmp
# mount_nullfs / /mnt
# du -sh /mnt/tmp
1.5G /mnt/tmp
# ls -la /mnt/tmp
total 1536504
drwxrwxrwt 6 root wheel 512 Oct 29 14:15 .
drwxr-xr-x 19 root wheel 1024 Oct 29 13:55 ..
drwxrwxrwt 2 root wheel 512 Oct 29 13:55 .ICE-unix
drwxrwxrwt 2 root wheel 512 Oct 29 13:55 .X11-unix
drwxrwxrwt 2 root wheel 512 Oct 29 13:55 .XIM-unix
drwxrwxrwt 2 root wheel 512 Oct 29 13:55 .font-unix
-rw-r--r-- 1 root wheel 524288000 Oct 29 14:14 file1
-rw-r--r-- 1 root wheel 524288000 Oct 29 14:15 file2
-rw-r--r-- 1 root wheel 524288000 Oct 29 14:15 file3
# rm -f /mnt/tmp/f*
# du -sh /mnt/tmp
20K /mnt/tmp
# umount /mnt
как бы и все