Bug with sfdisk - input of -d output fails

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

 



Hi all,

sfdisk /dev/sda > sda.out
produces following output:
>-------------------------------------->
# partition table of /dev/sda
unit: sectors

/dev/sda1 : start=       63, size= 48821472, Id= 7, bootable
/dev/sda2 : start=239191785, size= 73384920, Id= 7
/dev/sda3 : start= 48821535, size= 37784880, Id=83
/dev/sda4 : start= 86606415, size=152585370, Id= 5
/dev/sda5 : start=156232188, size= 10490382, Id= 7
/dev/sda6 : start=166722633, size= 72469152, Id= 7
/dev/sda7 : start= 86606541, size= 69625584, Id= 7
<--------------------------------------<

Just for test I immediately tried to use this data for input, but it failed ...

>-------------------------------------->
root@PartedMagic:~# sfdisk /dev/sda < sda.out
Checking that no-one is using this disk right now ...
OK

Disk /dev/sda: 19457 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+   3038    3039-  24410736    7 HPFS/NTFS/exFAT
/dev/sda2      14889   19456    4568   36692460    7 HPFS/NTFS/exFAT
/dev/sda3       3039    5390    2352   18892440   83  Linux
/dev/sda4       5391   14888    9498   76292685    5  Extended
/dev/sda5       9725+  10377     653-   5245191    7 HPFS/NTFS/exFAT
/dev/sda6      10378+  14888    4511-  36234576    7 HPFS/NTFS/exFAT
/dev/sda7       5391+   9724    4334-  34812792    7 HPFS/NTFS/exFAT
Warning: bad partition start (earliest 166722571)
sfdisk: bad input
root@PartedMagic:~#
<--------------------------------------<

Thanks for your attention,

-Ulf

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux