From: Ulf Zibis <Ulf.Zibis@gmx.de>
To: util-linux@vger.kernel.org
Subject: Bug with sfdisk - input of -d output fails
Date: Mon, 28 Jan 2013 14:56:27 +0100 [thread overview]
Message-ID: <5106838B.3020205@gmx.de> (raw)
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
reply other threads:[~2013-01-28 13:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5106838B.3020205@gmx.de \
--to=ulf.zibis@gmx.de \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox