Date: Tue, 8 Jan 2002 12:50:54 +0100 (CET) From: Michael Reifenberger <root@nihil.plaut.de> To: FreeBSD-Current <current@freebsd.org> Subject: panic during fdisk'ing a md(4) device Message-ID: <20020108124515.C418-100000@nihil>
next in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020108124515.C418-100000>