W dniu 16.02.2022 o 10:01, Lourens pisze:
Hello to Everyone,
Thank you for your time and expertise.
This is my first OpenBSD installation**so I am an obsd greenhorn, this
is 7.0 that has been kept up to date
*
*
My / has run out of disk space and I cannot see any perculiar content in
it and I am a little nervous to
mess with anything in /.
puffy7# sysctl hw.disknames
hw.disknames=sd0:51e8581cb33ae259,sd1:fe144bc22452a8e3
puffy7# disklabel -h sd0
# /dev/rsd0c:
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 1.0G 256 4.2BSD 2048 16384 12960 # /
b: 16.1G 2097408 swap # none
c: 3726.0G 0 unused
d: 4.0G 35862752 4.2BSD 2048 16384 12960 # /tmp
e: 35.7G 44251328 4.2BSD 2048 16384 12960 # /var
f: 6.0G 119122016 4.2BSD 2048 16384 12960 # /usr
g: 1.0G 131704928 4.2BSD 2048 16384 12960 #
/usr/X11R6
h: 20.0G 133802080 4.2BSD 2048 16384 12960 #
/usr/local
i: 2.0G 175745120 4.2BSD 2048 16384 12960 #
/usr/src
j: 6.0G 179939424 4.2BSD 2048 16384 12960 #
/usr/obj
k: 300.0G 192522368 4.2BSD 4096 32768 26062 # /home
puffy7# cat /etc/fstab
51e8581cb33ae259.b none swap sw
51e8581cb33ae259.a / ffs rw 1 1
51e8581cb33ae259.k /home ffs rw,nodev,nosuid 1 2
51e8581cb33ae259.d /tmp ffs rw,nodev,nosuid 1 2
51e8581cb33ae259.f /usr ffs rw,nodev 1 2
51e8581cb33ae259.g /usr/X11R6 ffs rw,nodev 1 2
51e8581cb33ae259.h /usr/local ffs rw,wxallowed,nodev 1 2
51e8581cb33ae259.j /usr/obj ffs rw,nodev,nosuid 1 2
51e8581cb33ae259.i /usr/src ffs rw,nodev,nosuid 1 2
51e8581cb33ae259.e /var ffs rw,nodev,nosuid 1 2
fe144bc22452a8e3.c /home/lourens/mnt/t1 ffs rw,nodev,nosuid 1 2
puffy7# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/sd0a 986M 985M -48.2M 105% /
/dev/sd0k 295G 274G 6.4G 98% /home
/dev/sd0d 3.9G 8.3M 3.7G 0% /tmp
/dev/sd0f 5.8G 1.1G 4.4G 20% /usr
/dev/sd0g 986M 295M 642M 31% /usr/X11R6
/dev/sd0h 19.4G 6.3G 12.1G 34% /usr/local
/dev/sd0j 5.8G 2.0K 5.5G 0% /usr/obj
/dev/sd0i 1.9G 2.0K 1.8G 0% /usr/src
/dev/sd0e 34.6G 64.2M 32.8G 0% /var
/dev/sd1c 902G 507G 350G 59% /home/lourens/mnt/t1
puffy7# ls -lh
total 135564
-rw-r--r-- 1 root wheel 578B Sep 30 22:00 .cshrc
-rw-r--r-- 1 root wheel 468B Sep 30 22:00 .profile
drwxr-xr-x 2 root wheel 512B Sep 30 22:00 altroot
drwxr-xr-x 2 root wheel 1.0K Sep 30 22:01 bin
-rw-r--r-- 1 root wheel 86.3K Dec 26 16:59 boot
-rwx------ 1 root wheel 20.7M Feb 16 05:40 bsd
-rwx------ 1 root wheel 20.7M Feb 15 06:19 bsd.booted
-rw------- 1 root wheel 4.0M Dec 26 16:58 bsd.rd
-rw------- 1 root wheel 20.6M Dec 26 16:58 bsd.sp
drwxr-xr-x 6 root wheel 19.5K Feb 16 05:39 dev
drwxr-xr-x 43 root wheel 2.0K Feb 16 05:40 etc
drwxr-xr-x 3 root wheel 512B Dec 26 16:59 home
drwxr-xr-x 3 root wheel 512B Feb 14 09:06 mnt
drwx------ 10 root wheel 512B Jan 20 18:19 root
drwxr-xr-x 2 root wheel 1.5K Dec 26 17:15 sbin
lrwxrwx--- 1 root wheel 11B Sep 30 22:00 sys -> usr/src/sys
drwxrwxrwt 11 root wheel 1.0K Feb 16 09:57 tmp
drwxr-xr-x 16 root wheel 512B Dec 26 16:59 usr
drwxr-xr-x 23 root wheel 512B Sep 30 22:57 var
Any pointers to improving my knowledge and skill will be most welcome.
*
*
Awesome O/S, thank you to all involved in it.
Lourens.
**
*
*
Hi,
Did you ran dd recently? If you specify non-existent output disk in dd,
it'll create file in /dev, then write to it, filling up space.
Also, try:
du -shx / | sort -h
this should show you which directories take up most space.
--
Łukasz Moskała