From: Karel Zak <kzak@redhat.com>
To: Phillip Susi <psusi@ubuntu.com>
Cc: util-linux@vger.kernel.org
Subject: Re: BUG: fdisk fails silently if EBR is outside of disk
Date: Fri, 30 Nov 2012 11:56:59 +0100 [thread overview]
Message-ID: <20121130105659.GA21271@x2.net.home> (raw)
On Thu, Nov 29, 2012 at 03:37:47PM -0500, Phillip Susi wrote:
> While helping a user troubleshoot an issue, I noticed fdisk fails to
> produce any output when run on an MBR that contains an extended
> partition that starts beyond the end of the disk. The following is a
> sample of the user's MBR:
Fixed (I hope).
# ./fdisk /dev/loop0
You must set cylinders.
You can do this from the extra functions menu.
Failed to read extended partition table (offset=462748414)
Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5
Warning: invalid flag 0x1919 of partition table 5 will be corrected
by w(rite)
Welcome to fdisk (util-linux 2.22.269-6b3e3).
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/loop0: 0 MB, 512 bytes, 1 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 identifier: 0x0002a9f0
Device Boot Start End Blocks Id System
/dev/loop0p1 256 462748159 231373952 83 Linux
/dev/loop0p2 462748414 464843519 1047553 5 Extended
/dev/loop0p5 ? 883823639 1304898863 210537612+ 19 Unknown
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
next reply other threads:[~2012-11-30 10:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-30 10:56 Karel Zak [this message]
2012-11-30 16:48 ` BUG: fdisk fails silently if EBR is outside of disk Phillip Susi
2012-11-30 20:34 ` 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=20121130105659.GA21271@x2.net.home \
--to=kzak@redhat.com \
--cc=psusi@ubuntu.com \
--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