From: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
To: util-linux@vger.kernel.org
Subject: Re: fdisk partition reorder fails
Date: Wed, 02 Apr 2014 14:29:53 -0300 [thread overview]
Message-ID: <533C4911.4020406@yahoo.com.ar> (raw)
In-Reply-To: <20140402164925.GA13910@aepfle.de>
[-- Attachment #1: Type: text/plain, Size: 15632 bytes --]
On 04/02/2014 01:49 PM, Olaf Hering wrote:
>
> This is fdisk from openSUSE 13.1. I have added partitions 15+ with
> parted. Once I'm done with repartitioning, I wanted to sort the
> partitions with fdisk like I have done it in the past. Too bad, this
> fails with the version included. The start sector is all scrambled and
> outside the disk. Lukily, this time I did not write it to disk.
>
> Looks like 2.24.1, included in Factory, is still broken.
>
>
> Olaf
>
> root@optiplex:~ # fdisk /dev/sda
> Welcome to fdisk (util-linux 2.23.2).
>
> Changes will remain in memory only, until you decide to write them.
> Be careful before using the write command.
>
>
> Command (m for help): p
>
> Disk /dev/sda: 1500.3 GB, 1500301910016 bytes, 2930277168 sectors
> Units = sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk label type: dos
> Disk identifier: 0x0003bcd6
>
> Device Boot Start End Blocks Id System
> /dev/sda1 * 2048 2097151 1047552 83 Linux
> /dev/sda2 2097152 4194303 1048576 7 HPFS/NTFS/exFAT
> /dev/sda3 4194304 20971519 8388608 82 Linux swap / Solaris
> /dev/sda4 20971520 2930276351 1454652416 f W95 Ext'd (LBA)
> /dev/sda5 20973568 73402367 26214400 7 HPFS/NTFS/exFAT
> /dev/sda6 73404416 136318975 31457280 7 HPFS/NTFS/exFAT
> /dev/sda7 136321024 199235583 31457280 7 HPFS/NTFS/exFAT
> /dev/sda8 199237632 262152191 31457280 7 HPFS/NTFS/exFAT
> /dev/sda9 262154240 325068799 31457280 7 HPFS/NTFS/exFAT
> /dev/sda10 325070848 702558207 188743680 7 HPFS/NTFS/exFAT
> /dev/sda11 899624960 1048561663 74468352 83 Linux
> /dev/sda12 1048576000 1258289151 104856576 83 Linux
> /dev/sda13 1258291200 1853884415 297796608 83 Linux
> /dev/sda14 1853886464 2930276351 538194944 83 Linux
> /dev/sda15 702558209 723529472 10485632 83 Linux
> /dev/sda16 723529728 744501247 10485760 83 Linux
> /dev/sda17 744501249 765471888 10485320 83 Linux
> /dev/sda18 765472768 786442239 10484736 83 Linux
> /dev/sda19 786442241 807414304 10486032 83 Linux
> /dev/sda20 807414306 828385512 10485603+ 83 Linux
> /dev/sda21 828385514 849356720 10485603+ 83 Linux
> /dev/sda22 849356800 870328319 10485760 83 Linux
>
> Partition table entries are not in disk order
>
> Command (m for help): x
>
> Expert command (m for help): p
>
> Disk /dev/sda: 255 heads, 63 sectors, 182401 cylinders
>
> Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
> 1 80 117 1 1 138 8 1023 2048 2095104 83
> 2 00 138 8 1023 138 8 1023 2097152 2097152 07
> 3 00 21 17 261 254 63 1023 4194304 16777216 82
> 4 00 254 63 1023 254 63 1023 20971520 2909304832 0f
> 5 00 138 8 1023 138 8 1023 2048 52428800 07
> 6 00 138 8 1023 138 8 1023 184 62914560 07
> 7 00 138 8 1023 138 8 1023 944 62914560 07
> 8 00 138 8 1023 138 8 1023 592 62914560 07
> 9 00 138 8 1023 138 8 1023 240 62914560 07
> 10 00 138 8 1023 138 8 1023 1000 377487360 07
> 11 00 138 8 1023 138 8 1023 280 148936704 83
> 12 00 138 8 1023 138 8 1023 32 209713152 83
> 13 00 138 8 1023 138 8 1023 928 595593216 83
> 14 00 138 8 1023 138 8 1023 96 1076389888 83
> 15 00 138 8 1023 138 8 1023 1 20971264 83
> 16 00 138 8 1023 138 8 1023 255 20971520 83
> 17 00 138 8 1023 138 8 1023 1 20970640 83
> 18 00 138 8 1023 138 8 1023 879 20969472 83
> 19 00 138 8 1023 138 8 1023 1 20972064 83
> 20 00 138 8 1023 138 8 1023 1 20971207 83
> 21 00 138 8 1023 138 8 1023 1 20971207 83
> 22 00 138 8 1023 138 8 1023 79 20971520 83
>
> Expert command (m for help): p
>
> Disk /dev/sda: 255 heads, 63 sectors, 182401 cylinders
>
> Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
> 1 80 117 1 1 138 8 1023 2048 2095104 83
> 2 00 138 8 1023 138 8 1023 2097152 2097152 07
> 3 00 21 17 261 254 63 1023 4194304 16777216 82
> 4 00 254 63 1023 254 63 1023 20971520 2909304832 0f
> 5 00 138 8 1023 138 8 1023 2048 52428800 07
> 6 00 138 8 1023 138 8 1023 184 62914560 07
> 7 00 138 8 1023 138 8 1023 944 62914560 07
> 8 00 138 8 1023 138 8 1023 592 62914560 07
> 9 00 138 8 1023 138 8 1023 240 62914560 07
> 10 00 138 8 1023 138 8 1023 1000 377487360 07
> 11 00 138 8 1023 138 8 1023 197066752 148936704 83
> 12 00 138 8 1023 138 8 1023 325046527 209713152 83
> 13 00 138 8 1023 138 8 1023 513789952 595593216 83
> 14 00 138 8 1023 138 8 1023 1088414575 1076389888 83
> 15 00 138 8 1023 138 8 1023 4211083265 20971264 83
> 16 00 138 8 1023 138 8 1023 4211082719 20971520 83
> 17 00 138 8 1023 138 8 1023 4211083032 20970640 83
> 18 00 138 8 1023 138 8 1023 4211083343 20969472 83
> 19 00 138 8 1023 138 8 1023 4181784857 20972064 83
> 20 00 138 8 1023 138 8 1023 4053805634 20971207 83
> 21 00 138 8 1023 138 8 1023 3865062538 20971207 83
> 22 00 138 8 1023 138 8 1023 3290437728 20971520 83
>
> Expert command (m for help): r
>
> Command (m for help): p
>
> Disk /dev/sda: 1500.3 GB, 1500301910016 bytes, 2930277168 sectors
> Units = sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk label type: dos
> Disk identifier: 0x0003bcd6
>
> Device Boot Start End Blocks Id System
> /dev/sda1 * 2048 2097151 1047552 83 Linux
> /dev/sda2 2097152 4194303 1048576 7 HPFS/NTFS/exFAT
> /dev/sda3 4194304 20971519 8388608 82 Linux swap / Solaris
> /dev/sda4 20971520 2930276351 1454652416 f W95 Ext'd (LBA)
> /dev/sda5 20973568 73402367 26214400 7 HPFS/NTFS/exFAT
> /dev/sda6 73404416 136318975 31457280 7 HPFS/NTFS/exFAT
> /dev/sda7 136321024 199235583 31457280 7 HPFS/NTFS/exFAT
> /dev/sda8 199237632 262152191 31457280 7 HPFS/NTFS/exFAT
> /dev/sda9 262154240 325068799 31457280 7 HPFS/NTFS/exFAT
> /dev/sda10 325070848 702558207 188743680 7 HPFS/NTFS/exFAT
> /dev/sda11 899624960 1048561663 74468352 83 Linux
> /dev/sda12 1048576000 1258289151 104856576 83 Linux
> /dev/sda13 1258291200 1853884415 297796608 83 Linux
> /dev/sda14 1853886464 2930276351 538194944 83 Linux
> /dev/sda15 4997525505 5018496768 10485632 83 Linux
> /dev/sda16 5018497024 5039468543 10485760 83 Linux
> /dev/sda17 5039468545 5060439184 10485320 83 Linux
> /dev/sda18 5060440064 5081409535 10484736 83 Linux
> /dev/sda19 5081409537 5102381600 10486032 83 Linux
> /dev/sda20 5102381602 5123352808 10485603+ 83 Linux
> /dev/sda21 5123352810 5144324016 10485603+ 83 Linux
> /dev/sda22 5144324096 5165295615 10485760 83 Linux
>
>
>
>
> Now with newer version:
>
> 0:192.168.2.102:~ # fdisk /dev/sda
>
> Welcome to fdisk (util-linux 2.24.1).
> Changes will remain in memory only, until you decide to write them.
> Be careful before using the write command.
>
>
> Command (m for help): p
> Disk /dev/sda: 1.4 TiB, 1500301910016 bytes, 2930277168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x0003bcd6
>
> Device Boot Start End Blocks Id System
> /dev/sda1 * 2048 2097151 1047552 83 Linux
> /dev/sda2 2097152 4194303 1048576 7 HPFS/NTFS/exFAT
> /dev/sda3 4194304 20971519 8388608 82 Linux swap / Solaris
> /dev/sda4 20971520 2930276351 1454652416 f W95 Ext'd (LBA)
> /dev/sda5 20973568 73402367 26214400 7 HPFS/NTFS/exFAT
> /dev/sda6 73404416 136318975 31457280 7 HPFS/NTFS/exFAT
> /dev/sda7 136321024 199235583 31457280 7 HPFS/NTFS/exFAT
> /dev/sda8 199237632 262152191 31457280 7 HPFS/NTFS/exFAT
> /dev/sda9 262154240 325068799 31457280 7 HPFS/NTFS/exFAT
> /dev/sda10 325070848 702558207 188743680 7 HPFS/NTFS/exFAT
> /dev/sda11 899624960 1048561663 74468352 83 Linux
> /dev/sda12 1048576000 1258289151 104856576 83 Linux
> /dev/sda13 1258291200 1853884415 297796608 83 Linux
> /dev/sda14 1853886464 2930276351 538194944 83 Linux
> /dev/sda15 702558209 723529472 10485632 83 Linux
> /dev/sda16 723529728 744501247 10485760 83 Linux
> /dev/sda17 744501249 765471888 10485320 83 Linux
> /dev/sda18 765472768 786442239 10484736 83 Linux
> /dev/sda19 786442241 807414304 10486032 83 Linux
> /dev/sda20 807414306 828385512 10485603+ 83 Linux
> /dev/sda21 828385514 849356720 10485603+ 83 Linux
> /dev/sda22 849356800 870328319 10485760 83 Linux
>
> Partition table entries are not in disk order.
>
> Command (m for help): x
>
> Expert command (m for help): p
> Disk /dev/sda: 1.4 TiB, 1500301910016 bytes, 2930277168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x0003bcd6
>
> Nr AF Hd Sec Cyl Hd Sec Cyl Start Size Id
> 1 80 117 1 1 138 8 1023 2048 2095104 83
> 2 00 138 8 1023 138 8 1023 2097152 2097152 07
> 3 00 21 17 261 254 63 1023 4194304 16777216 82
> 4 00 254 63 1023 254 63 1023 20971520 2909304832 0f
> 5 00 138 8 1023 138 8 1023 2048 52428800 07
> 6 00 138 8 1023 138 8 1023 184 62914560 07
> 7 00 138 8 1023 138 8 1023 944 62914560 07
> 8 00 138 8 1023 138 8 1023 592 62914560 07
> 9 00 138 8 1023 138 8 1023 240 62914560 07
> 10 00 138 8 1023 138 8 1023 1000 377487360 07
> 11 00 138 8 1023 138 8 1023 280 148936704 83
> 12 00 138 8 1023 138 8 1023 32 209713152 83
> 13 00 138 8 1023 138 8 1023 928 595593216 83
> 14 00 138 8 1023 138 8 1023 96 1076389888 83
> 15 00 138 8 1023 138 8 1023 1 20971264 83
> 16 00 138 8 1023 138 8 1023 255 20971520 83
> 17 00 138 8 1023 138 8 1023 1 20970640 83
> 18 00 138 8 1023 138 8 1023 879 20969472 83
> 19 00 138 8 1023 138 8 1023 1 20972064 83
> 20 00 138 8 1023 138 8 1023 1 20971207 83
> 21 00 138 8 1023 138 8 1023 1 20971207 83
> 22 00 138 8 1023 138 8 1023 79 20971520 83
>
> Expert command (m for help): f
>
> Done.
>
> Expert command (m for help): p
> Disk /dev/sda: 1.4 TiB, 1500301910016 bytes, 2930277168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x0003bcd6
>
> Nr AF Hd Sec Cyl Hd Sec Cyl Start Size Id
> 1 80 117 1 1 138 8 1023 2048 2095104 83
> 2 00 138 8 1023 138 8 1023 2097152 2097152 07
> 3 00 21 17 261 254 63 1023 4194304 16777216 82
> 4 00 254 63 1023 254 63 1023 20971520 2909304832 0f
> 5 00 138 8 1023 138 8 1023 2048 52428800 07
> 6 00 138 8 1023 138 8 1023 184 62914560 07
> 7 00 138 8 1023 138 8 1023 944 62914560 07
> 8 00 138 8 1023 138 8 1023 592 62914560 07
> 9 00 138 8 1023 138 8 1023 240 62914560 07
> 10 00 138 8 1023 138 8 1023 1000 377487360 07
> 11 00 138 8 1023 138 8 1023 197066752 148936704 83
> 12 00 138 8 1023 138 8 1023 325046527 209713152 83
> 13 00 138 8 1023 138 8 1023 513789952 595593216 83
> 14 00 138 8 1023 138 8 1023 1088414575 1076389888 83
> 15 00 138 8 1023 138 8 1023 4211083265 20971264 83
> 16 00 138 8 1023 138 8 1023 4211082719 20971520 83
> 17 00 138 8 1023 138 8 1023 4211083032 20970640 83
> 18 00 138 8 1023 138 8 1023 4211083343 20969472 83
> 19 00 138 8 1023 138 8 1023 4181784857 20972064 83
> 20 00 138 8 1023 138 8 1023 4053805634 20971207 83
> 21 00 138 8 1023 138 8 1023 3865062538 20971207 83
> 22 00 138 8 1023 138 8 1023 3290437728 20971520 83
>
> Expert command (m for help): r
>
> Command (m for help): p
>
> Disk /dev/sda: 1.4 TiB, 1500301910016 bytes, 2930277168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x0003bcd6
>
> Device Boot Start End Blocks Id System
> /dev/sda1 * 2048 2097151 1047552 83 Linux
> /dev/sda2 2097152 4194303 1048576 7 HPFS/NTFS/exFAT
> /dev/sda3 4194304 20971519 8388608 82 Linux swap / Solaris
> /dev/sda4 20971520 2930276351 1454652416 f W95 Ext'd (LBA)
> /dev/sda5 20973568 73402367 26214400 7 HPFS/NTFS/exFAT
> /dev/sda6 73404416 136318975 31457280 7 HPFS/NTFS/exFAT
> /dev/sda7 136321024 199235583 31457280 7 HPFS/NTFS/exFAT
> /dev/sda8 199237632 262152191 31457280 7 HPFS/NTFS/exFAT
> /dev/sda9 262154240 325068799 31457280 7 HPFS/NTFS/exFAT
> /dev/sda10 325070848 702558207 188743680 7 HPFS/NTFS/exFAT
> /dev/sda11 899624960 1048561663 74468352 83 Linux
> /dev/sda12 1048576000 1258289151 104856576 83 Linux
> /dev/sda13 1258291200 1853884415 297796608 83 Linux
> /dev/sda14 1853886464 2930276351 538194944 83 Linux
> /dev/sda15 4997525505 5018496768 10485632 83 Linux
> /dev/sda16 5018497024 5039468543 10485760 83 Linux
> /dev/sda17 5039468545 5060439184 10485320 83 Linux
> /dev/sda18 5060440064 5081409535 10484736 83 Linux
> /dev/sda19 5081409537 5102381600 10486032 83 Linux
> /dev/sda20 5102381602 5123352808 10485603+ 83 Linux
> /dev/sda21 5123352810 5144324016 10485603+ 83 Linux
> /dev/sda22 5144324096 5165295615 10485760 83 Linux
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe util-linux" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
Looks like similar to this[#1] that I reported some time ago.
[#1] http://www.spinics.net/lists/util-linux-ng/msg08005.html
--
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 555 bytes --]
next prev parent reply other threads:[~2014-04-02 17:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-02 16:49 fdisk partition reorder fails Olaf Hering
2014-04-02 17:00 ` Olaf Hering
2014-04-02 17:29 ` Gerardo Exequiel Pozzi [this message]
2014-04-02 21:54 ` Ruediger Meier
2014-04-18 9:53 ` Karel Zak
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=533C4911.4020406@yahoo.com.ar \
--to=vmlinuz386@yahoo.com.ar \
--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