Subject: Re: minimal disk usage
To: Sophie <sophie@cats.meow.at>
From: Herb Peyerl <hpeyerl@beer.org>
List: port-hpcsh
Date: 08/14/2002 07:12:17
Sophie <sophie@cats.meow.at> wrote:
> What's the smallest size somone's managed to squeeze a workable netbsd/sh3 system into? I'm currently trying to fit it into 32MB compact flash.
>
I have a 32MB Jornada.
type: ESDI
disk: Hitachi ATA 6.0
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 4
sectors/cylinder: 128
cylinders: 489
total sectors: 62592
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
8 partitions:
; size offset fstype [fsize bsize cpg/sgs]
a: 60384 2080 4.2BSD 512 4096 16 # (Cyl. 16*- 487)
c: 60384 2080 unused 0 0 # (Cyl. 16*- 487)
d: 62592 0 unused 0 0 # (Cyl. 0 - 488)
e: 2016 32 MSDOS # (Cyl. 0*- 15)
Now, I suggest making a slightly bigger MSDOS partition because you can't
really shrink a -current kernel down far enough to fit in there along with
hpcboot.exe.
I've just got a 256MB card so I'm can get X installed and running.
> I thought maybe I could tar things like /var (which wouldnt be particularly useful to me on a handheld machine) and have them extract to a ramdisk on boot to save a bit more space...
>
> `du /` from a small system would be useful to me :)
80 ./bin/[
100 ./bin/cat
92 ./bin/chio
112 ./bin/chmod
120 ./bin/cp
452 ./bin/csh
120 ./bin/date
96 ./bin/dd
92 ./bin/df
84 ./bin/domainname
80 ./bin/echo
176 ./bin/ed
124 ./bin/expr
84 ./bin/hostname
88 ./bin/kill
492 ./bin/ksh
84 ./bin/ln
344 ./bin/ls
100 ./bin/mkdir
92 ./bin/mt
324 ./bin/mv
432 ./bin/pax
384 ./bin/ps
84 ./bin/pwd
336 ./bin/rcmd
348 ./bin/rcp
336 ./bin/rm
0 ./bin/rmail
96 ./bin/rmdir
516 ./bin/sh
92 ./bin/sleep
104 ./bin/stty
20 ./bin/sync
6085 ./bin
15 ./dev/MAKEDEV
3 ./dev/MAKEDEV.local
0 [snip - /dev nodes]
28 ./dev
1 ./etc/defaults/daily.conf
1 ./etc/defaults/monthly.conf
7 ./etc/defaults/rc.conf
1 ./etc/defaults/security.conf
1 ./etc/defaults/weekly.conf
10 ./etc/defaults
1 ./etc/kerberosIV
1 ./etc/kerberosV
2 ./etc/mail/aliases
6 ./etc/mail/helpfile
45 ./etc/mail/sendmail.cf
53 ./etc/mail
37 ./etc/mtree/NetBSD.dist
8 ./etc/mtree/special
45 ./etc/mtree
1 ./etc/namedb/127
1 ./etc/namedb/localhost
1 ./etc/namedb/loopback.v6
1 ./etc/namedb/named.conf
3 ./etc/namedb/root.cache
6 ./etc/namedb
1 ./etc/openssl/certs
1 ./etc/openssl/misc
1 ./etc/openssl/private
2 ./etc/openssl
1 ./etc/postfix/README
19 ./etc/postfix/main.cf
5 ./etc/postfix/master.cf
7 ./etc/postfix/postfix-script
31 ./etc/postfix
1 ./etc/racoon
1 ./etc/rc.conf.d
1 ./etc/rc.d/DAEMON
1 ./etc/rc.d/LOGIN
1 ./etc/rc.d/NETWORK
1 ./etc/rc.d/SERVERS
1 ./etc/rc.d/accounting
1 ./etc/rc.d/altqd
1 ./etc/rc.d/amd
1 ./etc/rc.d/apmd
2 ./etc/rc.d/bootconf.sh
1 ./etc/rc.d/bootparams
1 ./etc/rc.d/ccd
1 ./etc/rc.d/cleartmp
1 ./etc/rc.d/cron
1 ./etc/rc.d/dhclient
1 ./etc/rc.d/dhcpd
1 ./etc/rc.d/dhcrelay
1 ./etc/rc.d/dmesg
1 ./etc/rc.d/fsck
1 ./etc/rc.d/inetd
2 ./etc/rc.d/ipfilter
1 ./etc/rc.d/ipmon
1 ./etc/rc.d/ipnat
2 ./etc/rc.d/ipsec
2 ./etc/rc.d/isdnd
1 ./etc/rc.d/kdc
1 ./etc/rc.d/ldconfig
1 ./etc/rc.d/lkm1
1 ./etc/rc.d/lkm2
1 ./etc/rc.d/lkm3
1 ./etc/rc.d/local
1 ./etc/rc.d/lpd
1 ./etc/rc.d/mopd
1 ./etc/rc.d/motd
1 ./etc/rc.d/mountall
1 ./etc/rc.d/mountcritlocal
1 ./etc/rc.d/mountcritremote
1 ./etc/rc.d/mountd
1 ./etc/rc.d/mrouted
2 ./etc/rc.d/named
11 ./etc/rc.d/network
1 ./etc/rc.d/newsyslog
1 ./etc/rc.d/nfsd
1 ./etc/rc.d/nfslocking
1 ./etc/rc.d/ntpd
1 ./etc/rc.d/ntpdate
1 ./etc/rc.d/poffd
1 ./etc/rc.d/postfix
2 ./etc/rc.d/ppp
1 ./etc/rc.d/pwcheck
1 ./etc/rc.d/quota
1 ./etc/rc.d/racoon
1 ./etc/rc.d/raidframe
1 ./etc/rc.d/rarpd
1 ./etc/rc.d/rbootd
1 ./etc/rc.d/root
1 ./etc/rc.d/route6d
1 ./etc/rc.d/routed
1 ./etc/rc.d/rpcbind
1 ./etc/rc.d/rtadvd
1 ./etc/rc.d/rtsold
1 ./etc/rc.d/rwho
1 ./etc/rc.d/savecore
1 ./etc/rc.d/screenblank
1 ./etc/rc.d/securelevel
2 ./etc/rc.d/sendmail
2 ./etc/rc.d/sshd
1 ./etc/rc.d/swap1
1 ./etc/rc.d/swap2
1 ./etc/rc.d/sysctl
1 ./etc/rc.d/sysdb
1 ./etc/rc.d/syslogd
1 ./etc/rc.d/timed
1 ./etc/rc.d/ttys
1 ./etc/rc.d/virecover
2 ./etc/rc.d/wscons
1 ./etc/rc.d/xdm
1 ./etc/rc.d/xfs
1 ./etc/rc.d/ypbind
1 ./etc/rc.d/yppasswdd
1 ./etc/rc.d/ypserv
71 ./etc/rc.d
1 ./etc/skel/.cshrc
1 ./etc/skel/.login
1 ./etc/skel/.mailrc
1 ./etc/skel/.profile
1 ./etc/skel/.rhosts
4 ./etc/skel
1 ./etc/sliphome
1 ./etc/uucp
2 ./etc/sshd.conf
40 ./etc/spwd.db
40 ./etc/pwd.db
1 ./etc/master.passwd
1 ./etc/passwd
3 ./etc/bootptab
3 ./etc/changelist
1 ./etc/csh.cshrc
1 ./etc/csh.login
1 ./etc/csh.logout
5 ./etc/daily
1 ./etc/daily.conf
3 ./etc/disktab
7 ./etc/dhclient-script
1 ./etc/dm.conf
0 ./etc/dumpdates
2 ./etc/floppytab
1 ./etc/fstab.wd
1 ./etc/ftpchroot
1 ./etc/ftpusers
0 ./etc/ftpwelcome
4 ./etc/gettytab
1 ./etc/group
1 ./etc/hosts
1 ./etc/hosts.equiv
1 ./etc/hosts.lpd
4 ./etc/inetd.conf
1 ./etc/ld.so.conf
1 ./etc/lkm.conf
0 ./etc/localtime
1 ./etc/mail.rc
1 ./etc/mailer.conf
2 ./etc/man.conf
1 ./etc/monthly
1 ./etc/monthly.conf
1 ./etc/motd
2 ./etc/mrouted.conf
1 ./etc/netconfig
1 ./etc/networks
1 ./etc/newsyslog.conf
1 ./etc/nsswitch.conf
2 ./etc/ntp.conf
1 ./etc/phones
2 ./etc/printcap
1 ./etc/profile
6 ./etc/protocols
1 ./etc/rbootd.conf
1 ./etc/rc
1 ./etc/rc.conf
2 ./etc/rc.lkm
1 ./etc/rc.local
1 ./etc/rc.shutdown
16 ./etc/rc.subr
2 ./etc/remote
0 ./etc/rmt
1 ./etc/rpc
19 ./etc/security
1 ./etc/security.conf
9 ./etc/services
1 ./etc/shells
0 ./etc/skeykeys
2 ./etc/ssh.conf
1 ./etc/sysctl.conf
1 ./etc/syslog.conf
3 ./etc/ttys
2 ./etc/weekly
1 ./etc/weekly.conf
1 ./etc/wscons.conf
1 ./etc/ssh_host_key
1 ./etc/ssh_host_key.pub
1 ./etc/ssh_host_dsa_key
1 ./etc/ssh_host_dsa_key.pub
1 ./etc/ssh_host_rsa_key
1 ./etc/ssh_host_rsa_key.pub
1 ./etc/resolv.conf
1 ./etc/fstab
1 ./etc/ifconfig.ep0
1 ./etc/ppp/chatscript
1 ./etc/ppp/gprs
1 ./etc/ppp/connect-errors
1 ./etc/ppp/tunnel
1 ./etc/ppp/cdpd
1 ./etc/ppp/gprs.chat
1 ./etc/ppp/chap-secrets
1 ./etc/ppp/resolv.conf
5 ./etc/ppp
439 ./etc
88 ./sbin/atactl
96 ./sbin/badsect
156 ./sbin/ccdconfig
88 ./sbin/clri
572 ./sbin/dhclient
184 ./sbin/disklabel
152 ./sbin/dmesg
392 ./sbin/dump
1 ./sbin/tunnel
2 ./sbin/fastboot
2 ./sbin/fasthalt
100 ./sbin/fsck
352 ./sbin/fsck_ext2fs
372 ./sbin/fsck_ffs
1 ./sbin/cdpd
112 ./sbin/fsck_msdos
488 ./sbin/fsdb
88 ./sbin/fsirand
312 ./sbin/halt
292 ./sbin/ifconfig
332 ./sbin/init
280 ./sbin/ipf
104 ./sbin/ldconfig
88 ./sbin/lmcctl
88 ./sbin/mbrlabel
88 ./sbin/mknod
96 ./sbin/modload
84 ./sbin/modunload
368 ./sbin/mount
7 ./sbin/dhclient-script
1 ./sbin/gprs
172 ./sbin/mount_mfs
2 ./sbin/newbtconf
100 ./sbin/newfs_msdos
1 ./sbin/nologin
296 ./sbin/ping
112 ./sbin/raidctl
92 ./sbin/rcorder
392 ./sbin/restore
84 ./sbin/rndctl
284 ./sbin/route
340 ./sbin/routed
120 ./sbin/rtsol
228 ./sbin/savecore
96 ./sbin/scsictl
316 ./sbin/setkey
316 ./sbin/shutdown
84 ./sbin/slattach
152 ./sbin/swapctl
176 ./sbin/sysctl
12 ./sbin/tbrconfig
92 ./sbin/ttyflags
96 ./sbin/tunefs
244 ./sbin/umount
104 ./sbin/wdogctl
120 ./sbin/wsconsctl
9416 ./sbin
30 ./usr/lib/libamu.so.2.0
9 ./usr/lib/libarm32.so.0.0
144 ./usr/lib/libasn1.so.4.0
56 ./usr/lib/libbz2.so.0.0
708 ./usr/lib/libc.so.12.74
208 ./usr/lib/libcdk.so.0.0
9 ./usr/lib/libcom_err.so.3.1
13 ./usr/lib/libcrypt.so.0.0
852 ./usr/lib/libcrypto.so.0.2
104 ./usr/lib/libcurses.so.4.1
104 ./usr/lib/libedit.so.2.5
39 ./usr/lib/libform.so.2.0
160 ./usr/lib/libm.so.0.1
21 ./usr/lib/libkadm.so.4.0
31 ./usr/lib/libkadm5clnt.so.6.1
68 ./usr/lib/libkadm5srv.so.7.1
17 ./usr/lib/libkafs.so.4.1
22 ./usr/lib/libkdb.so.4.0
96 ./usr/lib/libkrb.so.4.0
200 ./usr/lib/libkrb5.so.15.0
13 ./usr/lib/libkstream.so.1.0
25 ./usr/lib/libkvm.so.5.1
22 ./usr/lib/libmenu.so.2.0
88 ./usr/lib/libobjc.so.0.0
13 ./usr/lib/libossaudio.so.0.0
108 ./usr/lib/libpcap.so.1.2
9 ./usr/lib/libposix.so.0.1
29 ./usr/lib/libresolv.so.1.0
43 ./usr/lib/libroken.so.11.0
25 ./usr/lib/libskey.so.1.0
13 ./usr/lib/libsl.so.1.1
13 ./usr/lib/libss.so.3.1
196 ./usr/lib/libssl.so.1.0
340 ./usr/lib/libstdc++.so.2.0
60 ./usr/lib/libtelnet.so.3.1
13 ./usr/lib/libtermcap.so.0.4
13 ./usr/lib/libusb.so.0.1
38 ./usr/lib/libutil.so.5.5
29 ./usr/lib/libwrap.so.0.2
64 ./usr/lib/libz.so.0.2
128 ./usr/lib/libg2c.so.0.0
21 ./usr/lib/libgnumalloc.so.0.0
43 ./usr/lib/libgssapi.so.3.0
42 ./usr/lib/libhdb.so.7.0
13 ./usr/lib/libintl.so.0.0
108 ./usr/lib/libipsec.so.2.0
1 ./usr/lib/scrt0.o
4397 ./usr/lib
20 ./usr/libexec/atrun
16 ./usr/libexec/comsat
112 ./usr/libexec/cpp
92 ./usr/libexec/dnskeygen
12 ./usr/libexec/fingerd
116 ./usr/libexec/ftpd
16 ./usr/libexec/getNAME
24 ./usr/libexec/getty
20 ./usr/libexec/hpropd
32 ./usr/libexec/identd
36 ./usr/libexec/lint2
80 ./usr/libexec/ld.so
12 ./usr/libexec/locate.bigram
12 ./usr/libexec/locate.code
3 ./usr/libexec/locate.updatedb
12 ./usr/libexec/lpr/lpf
13 ./usr/libexec/lpr
16 ./usr/libexec/mail.local
12 ./usr/libexec/makekey
20 ./usr/libexec/makewhatis
392 ./usr/libexec/named-xfer
16 ./usr/libexec/ntalkd
16 ./usr/libexec/uucpd
16 ./usr/libexec/rexecd
20 ./usr/libexec/rlogind
16 ./usr/libexec/rmail
20 ./usr/libexec/rshd
32 ./usr/libexec/sftp-server
1 ./usr/libexec/sm.bin
12 ./usr/libexec/smrsh
60 ./usr/libexec/telnetd
20 ./usr/libexec/tftpd
1285 ./usr/libexec
20 ./usr/sbin/arp
12 ./usr/sbin/chown
12 ./usr/sbin/chroot
172 ./usr/sbin/pppd
16 ./usr/sbin/pppstats
24 ./usr/sbin/pstat
20 ./usr/sbin/pwd_mkdb
228 ./usr/sbin/sshd
28 ./usr/sbin/syslogd
216 ./usr/sbin/tcpdump
28 ./usr/sbin/traceroute
12 ./usr/sbin/unlink
16 ./usr/sbin/wiconfig
12 ./usr/sbin/wsconscfg
12 ./usr/sbin/wsfontload
28 ./usr/sbin/chat
264 ./usr/sbin/nc
12 ./usr/sbin/pty-redir
1133 ./usr/sbin
188 ./usr/bin/awk
84 ./usr/bin/bc
16 ./usr/bin/chflags
24 ./usr/bin/chfn
12 ./usr/bin/chgrp
2 ./usr/bin/clear
140 ./usr/bin/cu
92 ./usr/bin/fgrep
32 ./usr/bin/find
200 ./usr/bin/gunzip
12 ./usr/bin/head
1 ./usr/bin/machine
104 ./usr/bin/more
124 ./usr/bin/netstat
296 ./usr/bin/nslookup
24 ./usr/bin/passwd
16 ./usr/bin/printf
32 ./usr/bin/scp
212 ./usr/bin/ssh
20 ./usr/bin/su
20 ./usr/bin/tail
428 ./usr/bin/tar
92 ./usr/bin/telnet
140 ./usr/bin/ftp
16 ./usr/bin/touch
12 ./usr/bin/uname
20 ./usr/bin/w
308 ./usr/bin/vi
12 ./usr/bin/wc
1 ./usr/bin/usr/bin
1 ./usr/bin/usr
28 ./usr/bin/sed
16 ./usr/bin/cmp
32 ./usr/bin/login
64 ./usr/bin/tip
140 ./usr/bin/window
2961 ./usr/bin
2 ./usr/share/misc/termcap
2 ./usr/share/misc
3 ./usr/share
1 ./usr/X11R6
9778 ./usr
2 ./var/run/dmesg.boot
4 ./var/run/ld.so.hints
1 ./var/run/utmp
8 ./var/run/pppd.tdb
15 ./var/run
2 ./var/log/aculog
2 ./var/log
1 ./var/tmp/vi.recover
1 ./var/tmp
1 ./var/spool/lock
1 ./var/spool
2 ./var/db/dhclient.leases
2 ./var/db
22 ./var
812 ./netbsd.gz
1 ./tmp
4 ./root/.ssh/known_hosts
4 ./root/.ssh
1 ./root/.cshrc
2 ./root/foo
1 ./root/.windowrc
1 ./root/chroming
1 ./root/rv
8 ./root
1 ./home/hpeyerl/.windowrc
1 ./home/hpeyerl
2 ./home
1 ./mnt
26589 .