From owner-freebsd-questions Mon Dec 18 12:42:50 2000 From owner-freebsd-questions@FreeBSD.ORG Mon Dec 18 12:42:48 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from bulwark.switch.com (bulwark.switch.com [206.181.77.34]) by hub.freebsd.org (Postfix) with SMTP id A0BB637B400 for ; Mon, 18 Dec 2000 12:42:47 -0800 (PST) Received: by bulwark.switch.com; id PAA05560; Mon, 18 Dec 2000 15:42:47 -0500 Received: from dhcp103-172-16-3.switch.com(172.16.3.122) by bulwark.switch.com via smap (V5.5) id xma005547; Mon, 18 Dec 00 15:42:37 -0500 Received: (from breaker@localhost) by dhcp103-172-16-3.switch.com (8.9.3/8.9.3) id PAA01774 for questions@FreeBSD.org; Mon, 18 Dec 2000 15:42:32 -0500 (EST) (envelope-from breaker) Date: Mon, 18 Dec 2000 15:42:31 -0500 From: Trent Nelson To: questions@FreeBSD.org Subject: Fdisk query regarding partition flags. Message-ID: <20001218154231.A1750@dhcp103-172-16-3.switch.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i Sender: breaker@dhcp103-172-16-3.switch.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I have a 9GB drive, ad0, that I partitioned into ad0s1 (4GB) and ad0s2 (5GB). FreeBSD resides on ad0s2, with Windows 98 on the former. For some strange reason, after installing FreeBSD 4.1-RELEASE, I did `fdisk -a ad0s1' and changed one of the four partition entries to being active. I did this in an attempt to make the Windows 98 partition active. I now know the error of my ways (`fdisk -a ad0' would have been the appropriate command) but now I'm stuck with a Win98 partition that I can't boot (I get the message "Invalid system disk. Replace the disk, a" (note that it stops at the `a')). From fdisk: dhcp-103-172-16-3# fdisk ad0s1 fdisk: can't get disk parameters on /dev/ad0s1; supplying dummy ones ******* Working on device /dev/ad0s1 ******* parameters extracted from in-core disklabel are: cylinders=1 heads=1 sectors/track=1 (1 blks/cyl) parameters to be used for BIOS calculations are: cylinders=1 heads=1 sectors/track=1 (1 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 104,(unknown) start 1936028272, size 1851859059 (904228 Meg), flag 0 beg: cyl 116/ sector 32/ head 100; end: cyl 288/ sector 46/ head 101 The data for partition 2 is: sysid 121,(unknown) start 1330184192, size 538976288 (263172 Meg), flag 0 beg: cyl 357/ sector 43/ head 32; end: cyl 0/ sector 10/ head 13 The data for partition 3 is: sysid 83,(unknown) start 538989391, size 1398362912 (682794 Meg), flag 0 beg: cyl 345/ sector 19/ head 32; end: cyl 324/ sector 19/ head 77 The data for partition 4 is: sysid 73,(unknown) start 1394627663, size 21337 (10 Meg), flag 80 (active) beg: cyl 87/ sector 0/ head 1; ^^^^^^^^^^^^^^^^ end: cyl 335/ sector 2/ head 78 FreeBSD dhcp103-172-16-3.switch.com 4.1-RELEASE FreeBSD 4.1-RELEASE #0: Fri Jul 28 14:30:31 GMT 2000 jkh@ref4.freebsd.org:/usr/src/sys/compile/GENERIC i386 How do I make it so that none of the flags are 0x80? Thanks in advance. Regards, Trent. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message