bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Shifted partition starts


From: Szakacsits Szabolcs
Subject: Shifted partition starts
Date: Mon, 13 Sep 2004 15:11:15 +0200 (MEST)

Hello,

Here is one specific case I referred several times in the past. This one
was trashed by SUSE 9.1 calling 'parted -s ... resize ...'. This issue is
filesystem independent and I've never investigated if it's another parted
bug or parted usage bug. My guess is another parted usability bug
(sometimes things work, not as most people expect).

Number of heads 255, sectors 63. 
Units = sectors of 1 * 512 = 512 bytes

Original setup:
                                                                                
   Device     Boot     Start         End      Blocks   Id  System
   /dev/hda1   *          63    20482874    10241406    7  HPFS/NTFS
   /dev/hda2        20482875    78140159    28828642+   f  W95 Ext'd (LBA)
   /dev/hda5        20482938    78140159    28828610    7  HPFS/NTFS
                                                                                
After SUSE 9.1 install hda5 was mysterious shifted by parted:
                                                                                
   /dev/hda1   *          63    20482874    10241406    7  HPFS/NTFS
   /dev/hda2        20482875    78140159    28828642+   f  W95 Ext'd (LBA)
   /dev/hda5        20483568    66067343    22791888    7  HPFS/NTFS
   /dev/hda6        66067407    68163983     1048288+  82  Linux swap
   /dev/hda7        68164047    78140159     4988056+  83  Linux
                                                                                
After recovering hda5 by hand everything worked fine:
                                                                                
   /dev/hda1   *          63    20482874    10241406    7  HPFS/NTFS
   /dev/hda2        20482875    78140159    28828642+   f  W95 Ext'd (LBA)
   /dev/hda5        20482938    66067343    22792203    7  HPFS/NTFS
   /dev/hda6        66067407    68163983     1048288+  82  Linux swap
   /dev/hda7        68164047    78140159     4988056+  83  Linux

To reproduce, one could use a sparse file on loop device and e.g. by using
fdisk. You can create such partition table with the "use sectors as the
unit" command/toggle. Or just sfdisk.

Hmmm ... BTW, could it be that originally there were only two primary
partitions and the problem comes when the last one is converted to
extended and logical partition? Well, actually I suspect this is the case
... The question is who makes that conversion, parted or parted wrappers?

        Szaka





reply via email to

[Prev in Thread] Current Thread [Next in Thread]