From owner-freebsd-questions@FreeBSD.ORG Wed Aug 31 07:09:36 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4639816A41F for ; Wed, 31 Aug 2005 07:09:36 +0000 (GMT) (envelope-from numard@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id D11D043D46 for ; Wed, 31 Aug 2005 07:09:35 +0000 (GMT) (envelope-from numard@meijome.net) Received: (qmail 32077 invoked from network); 31 Aug 2005 17:07:36 +1000 Received: from andromeda.lef.com.au (HELO ?10.168.101.24?) (210.8.93.2) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 31 Aug 2005 17:07:36 +1000 Message-ID: <43155735.4050101@meijome.net> Date: Wed, 31 Aug 2005 17:07:33 +1000 From: Norberto Meijome User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: How to create *exactly* the same partitions in different disks X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 07:09:36 -0000 Hi, pretty simply, how do I create slices (fdisk) that are exactly the same throughtout different drives so they can be used in a RAID5 config? I tried using sysinstall and typing the SAME values but they result is always slightly off. I tried passing the values by hand, but it changes it anyway. # echo "p 2 165 20964825 467427240" | fdisk -v -f- /dev/ad6 ******* Working on device /dev/ad6 ******* fdisk: WARNING: adjusting size of partition 2 from 467427240 to 467426295 to end on a cylinder boundary parameters extracted from in-core disklabel are: cylinders=484521 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=484521 heads=16 sectors/track=63 (1008 blks/cyl) Information from DOS bootblock is: 1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 20964321 (10236 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 317/ head 15/ sector 63 2: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 20964825, size 467426295 (228235 Meg), flag 0 beg: cyl 318/ head 7/ sector 1; end: cyl 162/ head 15/ sector 63 3: 4: fdisk: Geom not found [root@cerberus] [Wed Aug 31 17:02:10 2005] ~ # fdisk -s /dev/ad4 /dev/ad4: 484521 cyl 16 hd 63 sec Part Start Size Type Flags 1: 63 20964762 0xa5 0x80 2: 20964825 467427240 0xa5 0x00 [root@cerberus] [Wed Aug 31 17:01:35 2005] ~ # fdisk -s /dev/ad6 /dev/ad6: 484521 cyl 16 hd 63 sec Part Start Size Type Flags 1: 63 20964321 0xa5 0x00 2: 20964825 467426295 0xa5 0x00 Help!!! thanks in advance, beto