From nobody@FreeBSD.org  Fri Sep 13 12:01:23 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D774E37B400
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 13 Sep 2002 12:01:23 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 96F8F43E4A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 13 Sep 2002 12:01:23 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g8DJ1MOT047453
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 13 Sep 2002 12:01:22 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g8DJ1Mwl047452;
	Fri, 13 Sep 2002 12:01:22 -0700 (PDT)
Message-Id: <200209131901.g8DJ1Mwl047452@www.freebsd.org>
Date: Fri, 13 Sep 2002 12:01:22 -0700 (PDT)
From: Danail Yordanov <d_j@vip.bg>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Fdisk makes no difference between FAT32, XFS or Ext3
X-Send-Pr-Version: www-1.0

>Number:         42750
>Category:       bin
>Synopsis:       fdisk(8) does not distinguish between FAT32, XFS or Ext3
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 13 12:10:02 PDT 2002
>Closed-Date:    Wed Feb 28 08:33:34 GMT 2007
>Last-Modified:  Wed Feb 28 08:33:34 GMT 2007
>Originator:     Danail Yordanov
>Release:        4.6 - STABLE
>Organization:
>Environment:
>Description:
When starting an installation on the machine containing FAT32 (no OS
there - only a partition for data) and XFS (with Linux) both are shown
as one, called "Extended", type 15. I have reinstalled the Linux on the
Ext3, but there was the same problem. Then I have decided to delete the
Linux and installed FreeBSD. Then I have tried to mount the slice with
FAT32 with the following command:

mount -t msdos /dev/ad0s2 /windows

the error message was "msdos invalid argument"   

Then I have seen again that filesystem on the slice was called "Extended",
not msdos or anything else. 
Fdisk don't recognize a FAT32 filesystem.
It seems as a lack of anything in the program fdisk.  
>How-To-Repeat:
Example: a 20 GB HDD is divided into 4 GB NTFS, 5 GB FAT32, 5 GB XFS (it
could be other - Ext3), 6 GB unused. If you try the same, but without an
unused space, you would not know where is FAT32 and XFS. When you insert
1st CD from FreeBSD it will not make a difference between FAT32 and XFS
and will display 10 GB Extended. If you try to mount these slices
(actually displayed as one) they can't be mounted.   
>Fix:
     
>Release-Note:
>Audit-Trail:

From: Valentin Nechayev <netch@iv.nn.kiev.ua>
To: Danail Yordanov <d_j@vip.bg>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: i386/42750: Fdisk makes no difference between FAT32, XFS or Ext3
Date: Sun, 15 Sep 2002 16:04:18 +0300

  Fri, Sep 13, 2002 at 12:01:22, d_j (Danail Yordanov) wrote about "i386/42750: Fdisk makes no difference between FAT32, XFS or Ext3": 
 
 DY> When starting an installation on the machine containing FAT32(no OS there - only a partition for data) and XFS (with Linux) both are shown as one, called "Extended", type 15. I have reinstalled the Linux on the Ext3, but there was the same problem. Then I have decided to delete the Linux and installed FreeBSD. Then I have tried to mount the slice with FAT32 with the following command:
 
 You are wrong. You don't understand structure of BIOS/MSDOS partition tables.
 FreeBSD's fdisk shows only extended partition, as one of the primary
 partitions, but not logical partitions which are placed in this extended
 partition.
 Type 15 is "LBA extended", not ext3, XFS or another.
 
 You should study partition table structure if you want discover or develop
 something in this area. If you want see FreeBSD fdisk to understand
 logical partitions in extended partition, this wish is reasonable,
 but it has nothing common with your PR synopsis.
 
 
 /netch

From: "Artem 'Zazoobr' Ignatiev" <timon@stabilis.ru>
To: Danail Yordanov <d_j@vip.bg>, freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: i386/42750: Fdisk makes no difference between FAT32, XFS or Ext3
Date: Sun, 15 Sep 2002 21:41:43 +0400

 On Fri, Sep 13, 2002 at 12:01:22PM -0700, Danail Yordanov wrote:
 > When starting an installation on the machine containing FAT32(no OS there - only a partition for data) and XFS (with Linux) both are shown as one, called "Extended", type 15. I have reinstalled the Linux on the Ext3, but there was the same problem. Then I have decided to delete the Linux and installed FreeBSD. Then I have tried to mount the slice with FAT32 with the following command:
 > mount -t msdos /dev/ad0s2 /windows
 > the error message was "msdos invalid argument"   
 > Then I have seen again that filesystem on the slice was called "Extended", not msdos or anything else. 
 > Fdisk don't recognize a FAT32 filesystem.
 > It seems as a lack of anything in the program fdisk.  
 Fdisk currently doesn't support diving into extended slices.
 You can use Linux Fdisk or take a look at
 http://memphis.mephi.ru/~timon/
  								Sinceherely yours, Artem 'Zazoobr' Ignatjev.

From: Raf Schietekat <sky92136@skynet.be>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: i386/42750: Fdisk makes no difference between FAT32, XFS or Ext3
Date: Wed, 25 Dec 2002 13:22:01 +0100

 I would say that V.N. is a bit rash in his dismissal of D.Y.'s complaint.
 
 I installed Linux (Slackware 8.1) on a fresh 120-GB disk, then FreeBSD 
 4.6, then another Linux (Mandrake 9.0). The final result is a primary 
 partition for Linux I, a primary extended partition containing a logical 
 partition for the swap for Linux I and three logical partitions for 
 Linux II (a linked list as evident from a raw print of the partition 
 tables; I haven't checked the extents of the non-primary extended 
 partitions, though, to see whether they're nested or chained). Between 
 Linux I and Linux II, smack in the middle of the extended partition, 
 sits another primary partition, for FreeBSD.
 
 The problem here is that the extended partition nominally extends until 
 the end of Linux II's last logical partition, completely overlapping 
 FreeBSD's primary partition. Well, it's a problem for FreeBSD's fdisk 
 (which neither shows the FreeBSD partition nor displays a diagnostic 
 that anything strange is going on, even though the FreeBSD Boot Manager 
 still knows how to boot FreeBSD). But from what I have read about fdisk 
 partition tables (http://www.win.tue.nl/~aeb/partitions, 
 http://www.win.tue.nl/~aeb/partitions/partition_tables.html), it might 
 be an imagined problem (there's no final and definitive specification 
 for partition tables that says what is right and what is wrong), and 
 apparently it isn't a problem for Slackware 8.1's cfdisk.
 
 I don't see FreeBSD's fdisk as a tenable solution in its current form, 
 and since it is not germane to the O.S., why not replace it with another 
 one, e.g., from Linux?
 
 Raf Schietekat <Raf_Schietekat@ieee.org>
 

From: Pawel Malachowski <pawmal-posting@freebsd.lublin.pl>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: d_j@vip.bg
Subject: Re: i386/42750 (Fdisk makes no difference between FAT32, XFS or Ext3)
Date: Sat, 23 Aug 2003 00:41:40 +0200

 > I don't see FreeBSD's fdisk as a tenable solution in its current form,
 > and since it is not germane to the O.S., why not replace it with another
 > one, e.g., from Linux?
 
 How about this one?
 
 % cat /usr/ports/sysutils/linuxfdisk/pkg-descr
 This is fdisk from util-linux package, common on Linux systems.
 It allows interactive manipulation of partitions including logical ones
 from MS-DOS partitioning scheme.
 
 
 
 -- 
 Pawe Maachowski
State-Changed-From-To: open->suspended 
State-Changed-By: linimon 
State-Changed-When: Thu Oct 27 01:23:32 GMT 2005 
State-Changed-Why:  
Reclassify.  Mark suspended awaiting patches. 


Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Oct 27 01:23:32 GMT 2005 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=42750 
State-Changed-From-To: suspended->closed 
State-Changed-By: remko 
State-Changed-When: Wed Feb 28 08:33:32 UTC 2007 
State-Changed-Why:  
No patches? no gain. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42750 
>Unformatted:
