public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* Re: BUG: fdisk fails silently if EBR is outside of disk
@ 2012-11-30 10:56 Karel Zak
  2012-11-30 16:48 ` Phillip Susi
  0 siblings, 1 reply; 3+ messages in thread
From: Karel Zak @ 2012-11-30 10:56 UTC (permalink / raw)
  To: Phillip Susi; +Cc: util-linux

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: BUG: fdisk fails silently if EBR is outside of disk
  2012-11-30 10:56 BUG: fdisk fails silently if EBR is outside of disk Karel Zak
@ 2012-11-30 16:48 ` Phillip Susi
  2012-11-30 20:34   ` Karel Zak
  0 siblings, 1 reply; 3+ messages in thread
From: Phillip Susi @ 2012-11-30 16:48 UTC (permalink / raw)
  To: Karel Zak; +Cc: util-linux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/30/2012 5:56 AM, Karel Zak wrote:
> 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

If it could not read the EBR, where did it come up with the p5 entry?



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJQuONEAAoJEJrBOlT6nu75soUIAJE3pdR1r+peBOhJHakGmuHz
5hFUMz6AvTkPW+ed1FUAp26qZtO5ngK46Q/d1+cGW4Asj30J+BXtip2pcUj8laPe
kjbh3zoMuBWHX1TbfmJn2Ydc+s/+OpqPmxTsgtUBQ9IR3VgbzbWIK+Vf0zqKVuGw
DEkUD+sHXLF2LfU1sTGA8BDv9VGnaHbEhfdegf2Hi6i29UWxYyXoS7tmOfaRDIes
KJTiYWf4Tflv6FEnKEzLMtn8yOOaURo/aeHM2scTrxvQp9HXZspf9ooHn/HC8SI6
5L6SLF3oxfxxSg1KZwb1pAMflWshU8cbckXwOE9Ye1x8TZv/x4Q8a8Z2E1Tnfuc=
=ZVz1
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: BUG: fdisk fails silently if EBR is outside of disk
  2012-11-30 16:48 ` Phillip Susi
@ 2012-11-30 20:34   ` Karel Zak
  0 siblings, 0 replies; 3+ messages in thread
From: Karel Zak @ 2012-11-30 20:34 UTC (permalink / raw)
  To: Phillip Susi; +Cc: util-linux

On Fri, Nov 30, 2012 at 11:48:04AM -0500, Phillip Susi wrote:
> > 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
> 
> If it could not read the EBR, where did it come up with the p5 entry?

 Sorry, I forgot to fix this nonsense. Fixed now.

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-30 20:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-30 10:56 BUG: fdisk fails silently if EBR is outside of disk Karel Zak
2012-11-30 16:48 ` Phillip Susi
2012-11-30 20:34   ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox