GNU bug report logs - #31111
Partition table wrongly identified as "atari"

Previous Next

Package: parted;

Reported by: bouke_1 <bouke_1 <at> zonnet.nl>

Date: Mon, 9 Apr 2018 14:22:01 UTC

Severity: normal

Done: Phil Susi <psusi <at> ubuntu.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Phil Susi <psusi <at> ubuntu.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#31111: closed (Partition table wrongly identified as "atari")
Date: Thu, 10 May 2018 18:54:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 10 May 2018 14:52:52 -0400
with message-id <a7062741-8339-e8e3-97da-54de7fc40dcb <at> ubuntu.com>
and subject line Re: bug#31111: Partition table wrongly identified as "atari"
has caused the debbugs.gnu.org bug report #31111,
regarding Partition table wrongly identified as "atari"
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
31111: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31111
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: bouke_1 <bouke_1 <at> zonnet.nl>
To: bug-parted <at> gnu.org
Subject: Partition table wrongly identified as "atari"
Date: Mon, 09 Apr 2018 15:39:52 +0200
[Message part 3 (text/plain, inline)]
After restoring an image using Clonezilla (which in turn uses sfdisk to 
configure the partitions), parted identifies the partition table of my 
harddisk as "Atari" and sees only one partition, while in fact it is a 
valid msdos partition table with three NTFS partitions (boot, main and 
restore). Other tools (e.g., fdisk) correctly identify an "msdos" 
partition list. The disk contains a Windows 10 environment and that 
boots and works correctly. So I have reason to believe that parted is 
wrong (or the rest of the world is crazy, which is not impossible).

I ran parted from the Linux command line from a Clonezilla Live disk (on 
a USB drive) which is based on debian zesty. The version of parted used 
there is (of course) the latest stable, 3.2. I also tried gparted (which 
uses libparted) in its latest stable live distribution, which gives the 
same results.
Also, I restored the same Clonezilla image to another PC, again, with 
the same results. These PC's are pretty standard, neither brand new nor 
very old desktop boxes with a single 500GB disk.

The attachment shows a screenshot of the parted results together with 
those of sfdisk (which is proof but does not provide too much 
information). I also attached the extended parted output since it is 
mandatory but I don't think it provides much.

Clonezilla uses parted to check the partition layout. When I restore the 
image to a PC, I can use the PC normally but Clonezilla will not allow 
me to write a new image from it. I think I will be able to work around 
this, but it if this is a bug or quirk in parted it may merit some 
attention.

I don't know how parted determines the partition table type, but there 
must be something on the disk that makes it think it is Atari. If I can 
help by providing e.g., a dump of the boot sector of the disk, or any 
other data please let me know.

Bouke
[parted+fdisk_scrndmp.JPG (image/jpeg, attachment)]
[partedprintprintprint.JPG (image/jpeg, attachment)]
[Message part 6 (message/rfc822, inline)]
From: Phil Susi <psusi <at> ubuntu.com>
To: bouke_1 <bouke_1 <at> zonnet.nl>, 31111-done <at> debbugs.gnu.org
Subject: Re: bug#31111: Partition table wrongly identified as "atari"
Date: Thu, 10 May 2018 14:52:52 -0400
[Message part 7 (text/plain, inline)]
On 5/10/2018 1:53 PM, Phil Susi wrote:
> I'd say so.  I can't reproduce the problem though by simply creating an
> image file and making the partitions as you describe.  Can you send your
> whole MBR so I can try to reproduce it and see if fixing this logic
> error fixes it?

Ok, after looking at the code it wasn't very hard to slap a few of the
right bytes into an empty file and trick atari_probe.  I've fixed it
now.  Will post the patch tomorrow.  Thanks.


[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 7 years and 15 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.