News: This forum is now permanently frozen.
Pages: [1]
Topic: ad0: raw partition size != slice size  (Read 4601 times)
« on: November 03, 2007, 03:13:44 »
pcarsrule *
Posts: 4

Hardware: Soekris 4511 1Gig SanDisk

When creating my own image (using the http://doc.m0n0.ch/dev/image-guide-mfsroot.html) I receive the following error at times when m0n0wall is accessing the upon bootup.  I've attempted at the dev handbook sizes and 2x multiples.

ad0: raw partition size != slice size
ad0: start 0, end 2001887, size 2001888
ad0c: start 0, end 43007, size 43008

Has anyone seen this?

/// Specific Command used during image building process///
/// using 4x sizes ///
set MWROOT=/mw/mwroot
set BOOTDIR=/mw/bootdir
set IMAGE=bbw-cp6.0.img
set MFSSIZE=45056
set FSBLOCKSIZE=32768
set FSFRAGSIZE=4096
set IMGSIZE=28672
set IMGBLOCKSIZE=32768
set IMGFRAGSIZE=4096

cd /mw
rm mfsroot.gz
dd if=/dev/zero of=mfsroot bs=1k count=$MFSSIZE
vnconfig -s labels -c vn0 mfsroot
disklabel -rw vn0 auto
newfs -b $FSBLOCKSIZE -f $FSFRAGSIZE -o space -m 0 /dev/vn0c
mount /dev/vn0c /mnt
cd /mnt
tar -cf - -C $MWROOT ./ | tar -xvpf -
cd /mw
umount /mnt
vnconfig -u vn0
gzip -9 mfsroot

#1.14 creating the image
dd if=/dev/zero of=image.bin bs=1k count=$IMGSIZE
vnconfig -s labels -c vn0 image.bin
disklabel -Brw -b $BOOTDIR/boot1 -s $BOOTDIR/boot2 vn0 auto
disklabel -e vn0

##############EDITOR

cd /mw
newfs -b $IMGBLOCKSIZE -f $IMGFRAGSIZE -o space -m 0 /dev/vn0a
mount /dev/vn0a /mnt
cp /sys/compile/M0N0WALL_NET45XX/kernel.gz /mnt
cp mfsroot.gz /mnt
mkdir /mnt/boot
cp $BOOTDIR/{loader,loader.rc} /mnt/boot
mkdir /mnt/conf
cp $MWROOT/conf.default/config.xml /mnt/conf
umount /mnt
vnconfig -u vn0
gzip -9 image.bin
mv image.bin.gz $IMAGE

### Write image to CF card and boot ####
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines