From root@s211.paris-229.cybercable.fr Mon Nov 8 19:44:04 1999 Return-Path: Received: from lafontaine.cybercable.fr (lafontaine.cybercable.fr [212.198.0.202]) by hub.freebsd.org (Postfix) with SMTP id 07C5A14DCB for ; Mon, 8 Nov 1999 19:44:02 -0800 (PST) (envelope-from root@s211.paris-229.cybercable.fr) Received: (qmail 1996683 invoked from network); 9 Nov 1999 03:43:58 -0000 Received: from s211.paris-229.cybercable.fr (@[212.198.229.211]) (envelope-sender ) by lafontaine.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 9 Nov 1999 03:43:58 -0000 Received: (from root@localhost) by s211.paris-229.cybercable.fr (8.9.3/8.9.3) id EAA07820; Tue, 9 Nov 1999 04:43:57 +0100 (CET) (envelope-from root) Message-Id: <199911090343.EAA07820@s211.paris-229.cybercable.fr> Date: Tue, 9 Nov 1999 04:43:57 +0100 (CET) From: clefevre@citeweb.net Sender: root@s211.paris-229.cybercable.fr Reply-To: clefevre@citeweb.net To: FreeBSD-gnats-submit@freebsd.org Cc: clefevre@citeweb.net Subject: more fdisk partition types X-Send-Pr-Version: 3.2 >Number: 14793 >Category: i386 >Synopsis: more fdisk partition types >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Nov 8 19:50:00 PST 1999 >Closed-Date: Mon Feb 18 11:32:41 PST 2002 >Last-Modified: Mon Feb 18 11:32:57 PST 2002 >Originator: Cyrille Lefevre >Release: FreeBSD 3.2-RELEASE i386 >Organization: ACME >Environment: FreeBSD cdlpc 3.2-RELEASE FreeBSD 3.2-RELEASE #0: Sat Nov 6 15:30:52 CET 1999 "$FreeBSD: src/sbin/i386/fdisk/fdisk.c,v 1.33 1999/09/25 02:11:30 billf Exp $" >Description: Modifications to fdisk to recognize more partition types. >How-To-Repeat: Just type fdisk ;-) >Fix: diff -c fdisk.c.orig fdisk.c *** fdisk.c-1.33 Tue Nov 9 01:28:35 1999 --- fdisk.c Tue Nov 9 02:08:35 1999 *************** *** 137,185 **** ,{0x01, "Primary DOS with 12 bit FAT"} ,{0x02, "XENIX / filesystem"} ,{0x03, "XENIX /usr filesystem"} ! ,{0x04, "Primary DOS with 16 bit FAT (<= 32MB)"} ,{0x05, "Extended DOS"} ! ,{0x06, "Primary 'big' DOS (> 32MB)"} ,{0x07, "OS/2 HPFS, NTFS, QNX or Advanced UNIX"} ! ,{0x08, "AIX filesystem"} ! ,{0x09, "AIX boot partition or Coherent"} ! ,{0x0A, "OS/2 Boot Manager or OPUS"} ,{0x0B, "DOS or Windows 95 with 32 bit FAT"} ! ,{0x0C, "DOS or Windows 95 with 32 bit FAT, LBA"} ! ,{0x0E, "Primary 'big' DOS (> 32MB, LBA)"} ! ,{0x0F, "Extended DOS, LBA"} ,{0x10, "OPUS"} ! ,{0x40, "VENIX 286"} ! ,{0x50, "DM"} ! ,{0x51, "DM"} ,{0x52, "CP/M or Microport SysV/AT"} ! ,{0x56, "GB"} ! ,{0x61, "Speed"} ! ,{0x63, "ISC UNIX, other System V/386, GNU HURD or Mach"} ! ,{0x64, "Novell Netware 2.xx"} ! ,{0x65, "Novell Netware 3.xx"} ,{0x75, "PCIX"} ! ,{0x80, "Minix 1.1 ... 1.4a"} ! ,{0x81, "Minix 1.4b ... 1.5.10"} ,{0x82, "Linux swap or Solaris x86"} ! ,{0x83, "Linux filesystem"} ,{0x93, "Amoeba filesystem"} ,{0x94, "Amoeba bad block table"} ,{0x9F, "BSD/OS"} ! ,{0xA5, "FreeBSD/NetBSD/386BSD"} ,{0xA6, "OpenBSD"} ! ,{0xA7, "NEXTSTEP"} ,{0xA9, "NetBSD"} ,{0xB7, "BSDI BSD/386 filesystem"} ,{0xB8, "BSDI BSD/386 swap"} ! ,{0xDB, "Concurrent CPM or C.DOS or CTOS"} ! ,{0xE1, "Speed"} ! ,{0xE3, "Speed"} ! ,{0xE4, "Speed"} ! ,{0xF1, "Speed"} ! ,{0xF2, "DOS 3.3+ Secondary"} ! ,{0xF4, "Speed"} ! ,{0xFF, "BBT (Bad Blocks Table)"} }; static void print_s0(int which); --- 137,214 ---- ,{0x01, "Primary DOS with 12 bit FAT"} ,{0x02, "XENIX / filesystem"} ,{0x03, "XENIX /usr filesystem"} ! ,{0x04, "Primary DOS with 16 bit FAT (< 32MB)"} ,{0x05, "Extended DOS"} ! ,{0x06, "Primary 'big' DOS with 16-bit FAT (>= 32MB)"} ,{0x07, "OS/2 HPFS, NTFS, QNX or Advanced UNIX"} ! ,{0x08, "AIX filesystem or SplitDrive"} /* HURD fdisk (grub) grub says AIX boot */ ! ,{0x09, "AIX boot partition or Coherent filesystem"} /* HURD fdisk (grub) says AIX data */ ! ,{0x0A, "OS/2 Boot Manager, OPUS or Coherent swap"} ,{0x0B, "DOS or Windows 95 with 32 bit FAT"} ! ,{0x0C, "DOS or Windows 95 with 32 bit FAT (LBA)"} ! ,{0x0E, "Primary 'big' DOS with 16-bit FAT (>= 32MB, LBA)"} ! ,{0x0F, "Extended DOS (LBA)"} ,{0x10, "OPUS"} ! ,{0x11, "OS/2 BM: hidden DOS with 12-bit FAT"} ! ,{0x12, "Compaq diagnostics"} ! ,{0x14, "OS/2 BM: hidden DOS with 16-bit FAT (< 32MB)"} ! ,{0x16, "OS/2 BM: hidden DOS with 16-bit FAT (>= 32MB)"} ! ,{0x17, "OS/2 BM: hidden IFS (e.g. HPFS)"} ! ,{0x18, "AST Windows swapfile"} ! ,{0x24, "NEC DOS"} ! ,{0x3C, "PartitionMagic recovery"} ! ,{0x40, "Venix 286"} ! ,{0x41, "Linux/MINIX (sharing disk with DRDOS)"} ! ,{0x42, "SFS or Linux swap (sharing disk with DRDOS)"} ! ,{0x43, "Linux native (sharing disk with DRDOS)"} ! ,{0x50, "DM (disk manager)"} ! ,{0x51, "DM6 Aux1 (or Novell)"} ,{0x52, "CP/M or Microport SysV/AT"} ! ,{0x53, "DM6 Aux3"} ! ,{0x54, "DM6"} ! ,{0x55, "EZ-Drive (disk manager)"} ! ,{0x56, "Golden Bow (disk manager)"} ! ,{0x5c, "Priam Edisk (disk manager)"} /* according to S. Widlake */ ! ,{0x61, "SpeedStor"} ! ,{0x63, "System V/386 (such as ISC UNIX), GNU HURD or Mach"} ! ,{0x64, "Novell Netware/286 2.xx"} ! ,{0x65, "Novell Netware/386 3.xx"} ! ,{0x70, "DiskSecure Multi-Boot"} ,{0x75, "PCIX"} ! ,{0x77, "QNX4.x"} ! ,{0x78, "QNX4.x 2nd part"} ! ,{0x79, "QNX4.x 3rd part"} ! ,{0x80, "Minix until 1.4a"} ! ,{0x81, "Minix since 1.4b, early Linux partition or Mitac (disk manager)"} ,{0x82, "Linux swap or Solaris x86"} ! ,{0x83, "Linux native"} ! ,{0x84, "OS/2 hidden C: drive"} ! ,{0x85, "Linux extended"} ! ,{0x86, "NTFS volume set??"} ! ,{0x87, "NTFS volume set??"} ,{0x93, "Amoeba filesystem"} ,{0x94, "Amoeba bad block table"} ,{0x9F, "BSD/OS"} ! ,{0xA0, "IBM Thinkpad hibernation"} /* according to dan@fch.wimsey.bc.ca */ ! ,{0xA5, "FreeBSD, NetBSD or 386BSD"} ,{0xA6, "OpenBSD"} ! ,{0xA7, "NeXTSTEP"} ,{0xA9, "NetBSD"} ,{0xB7, "BSDI BSD/386 filesystem"} ,{0xB8, "BSDI BSD/386 swap"} ! ,{0xC1, "DRDOS/sec with 12-bit FAT"} ! ,{0xC4, "DRDOS/sec with 16-bit FAT (< 32MB)"} ! ,{0xC6, "DRDOS/sec with 16-bit FAT (>= 32MB)"} ! ,{0xC7, "Syrinx"} ! ,{0xDB, "CP/M, Concurrent CP/M, Concurrent DOS or CTOS"} ! ,{0xE1, "DOS access or SpeedStor with 12-bit FAT extended partition"} ! ,{0xE3, "DOS R/O or SpeedStor"} ! ,{0xE4, "SpeedStor with 16-bit FAT extended partition < 1024 cyl."} ! ,{0xF1, "SpeedStor"} ! ,{0xF2, "DOS 3.3+ secondary"} ! ,{0xF4, "SpeedStor large partition"} ! ,{0xFE, "SpeedStor >1024 cyl. or LANstep"} ! ,{0xFF, "Xenix bad blocks table"} }; static void print_s0(int which); *************** *** 427,433 **** part_mb = partp->dp_size; part_mb *= secsize; part_mb /= (1024 * 1024); ! printf("sysid %d,(%s)\n", partp->dp_typ, get_type(partp->dp_typ)); printf(" start %lu, size %lu (%qd Meg), flag %x%s\n", (u_long)partp->dp_start, (u_long)partp->dp_size, --- 456,462 ---- part_mb = partp->dp_size; part_mb *= secsize; part_mb /= (1024 * 1024); ! printf("sysid %d (%#04x),(%s)\n", partp->dp_typ, partp->dp_typ, get_type(partp->dp_typ)); printf(" start %lu, size %lu (%qd Meg), flag %x%s\n", (u_long)partp->dp_start, (u_long)partp->dp_size, >Release-Note: >Audit-Trail: From: Kevin Day To: clefevre@citeweb.net Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: i386/14793: more fdisk partition types Date: Tue, 9 Nov 1999 01:02:04 -0600 (CST) > > >Number: 14793 > >Category: i386 > >Synopsis: more fdisk partition types > >Confidential: no > >Severity: non-critical > >Priority: low > >Description: > > Modifications to fdisk to recognize more partition types. > > > >Fix: > > > ! ,{0xE1, "DOS access or SpeedStor with 12-bit FAT extended partition"} > ! ,{0xE3, "DOS R/O or SpeedStor"} > ! ,{0xE4, "SpeedStor with 16-bit FAT extended partition < 1024 cyl."} > ! ,{0xF1, "SpeedStor"} > ! ,{0xF2, "DOS 3.3+ secondary"} > ! ,{0xF4, "SpeedStor large partition"} > ! ,{0xFE, "SpeedStor >1024 cyl. or LANstep"} > ! ,{0xFF, "Xenix bad blocks table"} One more that I know of: 0xEB is BeOS. Kevin From: Hiten Pandya To: bug-followup@FreeBSD.org Cc: Subject: Re: i386/14793 Date: Wed, 02 Jan 2002 17:06:39 +0000 hi, what to do with this PR, according to the last Audit-Trail, I am also submitting a [PATCH] for adding BeOS to the partitions type list. --- fdisk.c Mon Dec 31 00:02:07 2001 +++ fdisk.c.new Wed Jan 2 17:05:16 2002 @@ -188,6 +188,7 @@ ,{0xF2, "DOS 3.3+ Secondary"} ,{0xF4, "Speed"} ,{0xFF, "BBT (Bad Blocks Table)"} + ,{0xEB, "BeOS filesystem"} }; static void print_s0(int which); regards, - Hiten - -- 1024 45:a5:9c:f2:fb:07:da:70:18:02:0b:f3:63:f1:7a:a6 hitenp@hpdi.ath.cx State-Changed-From-To: open->closed State-Changed-By: joe State-Changed-When: Mon Feb 18 11:32:41 PST 2002 State-Changed-Why: Committed in -current. Will MFC in a few days. http://www.FreeBSD.org/cgi/query-pr.cgi?pr=14793 >Unformatted: