Subject: disklabel and df output
To: mac68k Liste <port-mac68k@netbsd.org>
From: Dirk Hoppe <Netzhaut@t-online.de>
List: port-mac68k
Date: 02/01/2000 15:49:22
Hallo,
I need some help in reading the disklabel and the output of the df command.
I made partitions with FWB HDT in the first part of the HD: for sd1a 50 MB
(root), for sd1b 160 MB (swap), for sd1g 700 MB (/usr) and for sd1e 150 MB
(/home). Partition sd1f isn=B4t used yet. I formatted them with MKfs 1.47 and
installed the system. The output of the disklabel and df command are as
followed. I was surprised about the partition size in disklabel. For exampl=
e
a: 102400, shouldn=B4t it be 51200 (50 MB)?

In the df output you see /dev/sd1e with 991419 1K-blocks, used 842713. On
this partition is only my /home directory with some skel files. Why does df
say 842713 1K-blocks are used?
/dev/sd1e I mounted after the first boot, made it my /home directory and
edited the fstab file that it mounts on startup.

disklabel
# /dev/rsd1c:
type: SCSI
disk: DCAS-3433W
label: fictitious
flags:
bytes/sector: 512
sectors/Track: 171
tracks/cylinder: 6
sectors/cylinder: 1026
cylinders: 8205
total sectors: 8467200
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitsch: 0          #milliseconds
track-to-track seek: 0  #milliseconds
drivedata: 0

7 partitions:
#       size        offset      fstype      [fsize  bsize   cpp]
    a:  102400      1201        4.2BSD           0      0     0
    b:  327680      103601      swap
    c:  8467200     0           unused           0      0
    d:  204800      1864881     4.2BSD           0      0     0
    e:  307200      2069681     4.2BSD           0      0     0
    f:  6090319     2376881     HFS
    g:  1433600     431281      4.2BSD           0      0     0
disklabel: boot block size 0
disklabel: super block size 0


df
Filesystem      1K-blocks   Used    Avail   Capacity    Mounted on
/dev/sd1a       49391       12043   32408   27%         /
/dev/sd1g       743645      159254  510026  23%         /usr
/dev/sd1e       991419      842713  49564   94%         /home
kernfs          1           1       0       100%        /kern
procfs          4           4       0       100%        /proc


Thank you in advance,
Dirk Hoppe
---------------------
Fotoagentur Netzhaut
---------------------