From owner-freebsd-questions@FreeBSD.ORG Sun Jul 3 19:05:55 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 1E9BA16A41C for ; Sun, 3 Jul 2005 19:05:55 +0000 (GMT) (envelope-from alexandre.delay@free.fr) Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADACA43D45 for ; Sun, 3 Jul 2005 19:05:54 +0000 (GMT) (envelope-from alexandre.delay@free.fr) Received: from serveur.thrruss.org (unknown [81.56.231.36]) by postfix3-2.free.fr (Postfix) with ESMTP id EEA6FC086 for ; Sun, 3 Jul 2005 21:05:52 +0200 (CEST) Received: from artemis (artemis [192.168.2.2]) by serveur.thrruss.org (8.13.0/8.13.0) with SMTP id j63J66HD030871 for ; Sun, 3 Jul 2005 21:06:07 +0200 From: "Alexandre D." To: Date: Sun, 3 Jul 2005 21:06:06 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 Subject: RE: disk tuning 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: Sun, 03 Jul 2005 19:05:55 -0000 using sysinstall, I got: ******* Working on device /dev/ad2 ******* parameters extracted from in-core disklabel are: cylinders=79656 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=79656 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 80292807 (39205 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: ---------------- Using those commands (dd if=/dev/zero of=/dev/ad2 bs=1k count=1; fdisk -BI ad2; disklabel -B -w -r ${disk}s1 auto): ******* Working on device /dev/ad2 ******* parameters extracted from in-core disklabel are: cylinders=79656 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=79656 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 80293185 (39205 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 807/ head 15/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: You can see that there is a bug in the geometry of the last slice! I do that in order to build a restore script. Nothing work because of that. cheers Alex -----Message d'origine----- De : owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]De la part de Alexandre D. Envoyé : dimanche 3 juillet 2005 19:51 À : freebsd-questions@freebsd.org Objet : disk tuning Hi guys, I'm trying to determine the good commands to initialise a disk. I would like to get the same result than with the sysinstall fdisk. But If I use the handbook's command: # dd if=/dev/zero of=/dev/ad2 bs=1k count=1 # fdisk -BI ad2 # disklabel -B -w -r ${disk}s1 auto I do not get the same result. The slice is not defined exactly the same and the geometry is also not the same. How can I get exactly the same result with a command line thant with the sysinstall's fdisk (A = Use Entire)? Thanks cheers Alex _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"