Package: gnu-fdisk
Version: 1.0-1
Severity: normal

Here is a fragment of a partition table created with util-linux fdisk:
        $ fdisk.distrib -l -u /dev/hda

        Disk /dev/hda: 80.0 GB, 80026361856 bytes
        255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
        Units = sectors of 1 * 512 = 512 bytes
        Disk identifier: 0x0611c023

           Device Boot      Start         End      Blocks   Id  System
        /dev/hda1              63    27358694    13679316   83  Linux
        /dev/hda2        27358695   156296384    64468845    5  Extended
        /dev/hda5        27358758    46909799     9775521   83  Linux
        /dev/hda6        46909863   109824423    31457280+  83  Linux
        [...]

Starting gnu-fdisk as fdisk, removing hda6 and recreating it
causes the start of this partition to move back to 46909801
which obviously makes the filesystem there unmountable.
It is unnoticeable in fdisk when cylinders are the units, since both starts
display as cylinder 2921.

While advanced resize functions in gnu-fdisk should make such delete/create
cycles mostly unnecessary, people (read 'I') tend to do things the old way
sometimes, and this result was very surprising from a command run as fdisk.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-k7 (SMP w/1 CPU core)
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/dash

Versions of packages gnu-fdisk depends on:
ii  libc6                     2.6.1-4        GNU C Library: Shared libraries
ii  libncurses5               5.6+20070908-1 Shared libraries for terminal hand
ii  libparted1.7-1            1.7.1-5.1      The GNU Parted disk partitioning s
ii  libuuid1                  1.40.2-1       universally unique id library

gnu-fdisk recommends no packages.

-- 
MichaƂ Politowski
Talking has been known to lead to communication if practiced carelessly.

Attachment: signature.asc
Description: Digital signature

Reply via email to