Hi,
the following script panics my system when executed twice:
(uncomment the dd lines for the first time or do it manually)


######################

#!bin/sh

block_size=512
blocks=$((120 * 1024 * 1024 / $block_size))
heads=16
sectors=63
cyl_size=$(($heads * $sectors));
cylinders=$(($blocks / $cyl_size + 2))

#dd if=/dev/zero of=root.image \
#       bs=$block_size count=$(($cyl_size * $cylinders))

mdconfig -d -u 11
mdconfig -a -t vnode -f root.image -u 11

fdisk -f - -iv /dev/md11 <<EOF1
g c$cylinders h$heads s$sectors
p 1 165 $sectors $(($cyl_size * $cylinders))
a 1
EOF1

echo "$cyl_size $blocks $cylinders"
################

Bye!
----
Michael Reifenberger
^.*Plaut.*$, IT, R/3 Basis, GPS


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to