[Parted-maintainers] Bug#299906: parted: mistakes ext2 for fat

A Mennucc mennucc1@debian.org, 299906@bugs.debian.org
Thu, 17 Mar 2005 12:21:51 +0100


On Thu, Mar 17, 2005 at 11:37:36AM +0100, Sven Luther wrote:
> On Thu, Mar 17, 2005 at 10:36:07AM +0100, A Mennucc wrote:
> > Package: parted
> > Version: 1.6.21-1
> > Severity: important
> > I have a USB memory stick; I have created one partition on it;
> > the current layout is 
> > 
> > # fdisk -l /dev/sda
> > Disk /dev/sda: 130 MB, 130809856 bytes
> > 5 heads, 50 sectors/track, 1021 cylinders
> > Units = cylinders of 250 * 512 = 128000 bytes
> >    Device Boot      Start         End      Blocks   Id  System
> > /dev/sda1               1        1021      127600   83  Linux
> > 
> > I wanted to use parted to resize my partition
> > (to make room for a second crypto partition ) 
> > But if I try to use parted on it, I get
> > 
> > # parted /dev/sda
> > GNU Parted 1.6.21 with HFS shrink patch 16
> > ....
> > Using /dev/sda
> > (parted) print
> > Disk geometry for /dev/sda: 0.000-124.750 megabytes
> > Disk label type: loop
> > Minor    Start       End     Filesystem  Flags
> > 1          0.000    124.750  fat16
> > (parted)
> > 
> > This is very dangerous
> 
> You still have the old fat partition there, which you forgot to erase
> completely.

???  why was I supposed to  erase it in the firstplace ??
 
> Please do a dd if=/dev/zero of=/dev/sda or something such before creating the
> ext2 partition, to make sure no trace of the olf fat remains.

I would prefer not . My partition is now full of data

btw: I doubt there is any vfat data around : I filled 
the partition with my data almost completely

> How do you create the ext2 partition anyway ? 

with  'cfdisk /dev/sda' ; then I did 'mkfs.ext2 /dev/sda1'

my usb stick works perfectly well with : 
fdisk, cfdisk , mount, etc etc 

moreover when I plug it in , the combination of
udev/hal/pmount/nautilus
mounts my partition and shows it in a nice
nautilus window

parted should see that the partion table clearly states that 
the first partition is a Linux partition, no fat16 ;
parted should not be fouled by 'traces of fat'

parted is the only program being fouled

a.

-- 
Andrea Mennucc
 "Ukn ow,Ifina llyfixe dmysp acebar.ohwh atthef"