[CUWiN] Soekris images not quite right?
David Young
dyoung at pobox.com
Wed Feb 1 10:49:55 CST 2006
On Wed, Feb 01, 2006 at 01:00:20AM -0500, simon-cuw at uc.org wrote:
> Hi,
>
> I decided to re-image a soekris node that was misbehaving (my first;
> someone else had done all the previous configs), and I've run into a bit
> of a problem...
Maybe you have a geometry mismatch between the CF card and the image
you wrote to it.
> # df -k
> Filesystem 1K-blocks Used Avail Capacity Mounted on
> /dev/wd0a 22615 22010 -525 102% /
> mfs:8 47 40 4 90% /dev
> mfs:1242 7223 1456 5406 21% /mfs
> /etc 22615 22010 -525 102% /permanent/etc
> /home 22615 22010 -525 102% /permanent/home
> /tmp 22615 22010 -525 102% /permanent/tmp
> /var 22615 22010 -525 102% /permanent/var
> /mfs/etc 7223 1456 5406 21% /etc
> /mfs/home 7223 1456 5406 21% /home
> /mfs/tmp 7223 1456 5406 21% /tmp
> /mfs/var 7223 1456 5406 21% /var
For comparison, I see this on a net4526 running 0.6.0+:
# df -k
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0e 30239 23748 4980 82% /
tmpfs 400 192 208 48% /dev
tmpfs 31640 2792 28848 8% /mfs
/etc 30239 23748 4980 82% /permanent/etc
/home 30239 23748 4980 82% /permanent/home
/tmp 30239 23748 4980 82% /permanent/tmp
/var 30239 23748 4980 82% /permanent/var
/mfs/etc 31640 2792 28848 8% /etc
/mfs/home 31640 2792 28848 8% /home
/mfs/tmp 31640 2792 28848 8% /tmp
/mfs/var 31640 2792 28848 8% /var
> Disklabel shows that I should have more like 31248 blocks available:
>
> 5 partitions:
> # size offset fstype [fsize bsize cpg/sgs]
> a: 62497 63 4.2BSD 0 0 0 # (Cyl. 0*- 488*)
> c: 62497 63 unused 0 0 # (Cyl. 0*- 488*)
> d: 125056 0 unused 0 0 # (Cyl. 0 - 976)
> e: 62496 62560 4.2BSD 0 0 0 # (Cyl. 488*- 976)
This definitely looks like one of our net4526 images. Suppose you dd
if=/dev/zero of=/dev/rwd0d bs=64k count=1 (careful, that *will* wreck the
boot record) and then run 'disklabel wd0'. What numbers does disklabel
print for these fields?
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 4
sectors/cylinder: 128
cylinders: 977
total sectors: 125056
Dave
--
David Young OJC Technologies
dyoung at ojctech.com Urbana, IL * (217) 278-3933
More information about the CU-Wireless
mailing list