Bug#504747: gnu-fdisk: wipes out MBR when used on GPT partitions [PATCH]

2008-12-23 Thread Christian

Hi!
A small patch to resolve this problem can be found here:
  
   http://lists.gnu.org/archive/html/bug-parted/2008-12/msg00015.html


As I mentioned in the bug-parted list, this patch is a temporary solution.

Please try it and report any errors. Comments and suggestions are welcome!

Happy partitioning! :)

Christian.






--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#504747: gnu-fdisk: wipes out MBR when used on GPT partitions

2008-12-12 Thread Michael Prokop
Hi,

Aurélien GÉRÔME wrote:

 Upstream is MIA. It is up to the Release Team to decide whether
 gnu-fdisk is suitable for release or not. I do not have time to argue.

I'm wondering about the MIA.
When I asked on the mailinglist regarding the current state of gnu-fdisk
I got a prompt reply by Leslie Polzer:

  http://lists.gnu.org/archive/html/bug-fdisk/2008-12/msg1.html

So we can expect to get a new release soon (I'll try to
release it today and no excuses.). Looking at the current state of
gnu-fdisk in Debian: should we think about getting the new GNU fdisk
release into Lenny?

And according to Leslie the GNU fdisk maintainer(s) don't seem to be
informed about issues like:

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504747
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=445304
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504099

I can't find any forwarded information in the bugreports too.
How was upstream informed about this?

thx  regards,
-mika-


signature.asc
Description: Digital signature


Bug#504747: gnu-fdisk: wipes out MBR when used on GPT partitions

2008-12-10 Thread Aurélien GÉRÔME
On Wed, Dec 03, 2008 at 10:04:13PM +1100, Mark Purcell wrote:
 Are you in a position to comment on this report, are you able to reproduce, 
 have you been able to discuss with upstream?

Upstream is MIA. It is up to the Release Team to decide whether
gnu-fdisk is suitable for release or not. I do not have time to argue.

Cheers,
-- 
 .''`.   Aurélien GÉRÔME
: :'  :
`. `'`   Debian Developer
  `- Unix Sys  Net Admin


signature.asc
Description: Digital signature


Bug#504747: gnu-fdisk: wipes out MBR when used on GPT partitions

2008-12-03 Thread Mark Purcell
On Friday 07 November 2008 07:13:26 Michael Renner wrote:
 gnu-fdisk wipes out the Code Area in the MBR

Aurélien,

This RC bug has been dormant since it's report 3 weeks ago.

Are you in a position to comment on this report, are you able to reproduce, 
have you been able to discuss with upstream?

Mark



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#504747: gnu-fdisk: wipes out MBR when used on GPT partitions

2008-11-06 Thread Michael Renner
Package: gnu-fdisk
Version: 1.0-3+b1
Severity: grave
Justification: causes non-serious data loss

gnu-fdisk wipes out the Code Area in the MBR of a given device when modifying a 
GPT partition. If this happens to be the boot device, this can cause serious 
trouble.

The behaviour can be easily verified with dd and hexdump.



Create a blockdevice with a gpt label, then write data to the code area, e.g.:

dd if=/dev/urandom of=/dev/sdc bs=440 count=1

and verify that it's there:

dd if=/dev/sdc bs=512 count=1 | hexdump -C -v

Then get fdisk to rewrite the partition table (starting and immediately 
(re)writing the partition table works); a verification with dd/hexdump should 
show an empty Code Area.

The free encyclopedia has a nice layout of the MBR, for verification: 
http://en.wikipedia.org/wiki/Master_boot_record


best regards,
Michael


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gnu-fdisk depends on:
ii  libc62.7-15  GNU C Library: Shared libraries
ii  libncurses5  5.6+20080830-1  shared libraries for terminal hand
ii  libparted1.8-10  1.8.8.git.2008.03.24-11 The GNU Parted disk partitioning s
ii  libuuid1 1.41.2-1universally unique id library

gnu-fdisk recommends no packages.

gnu-fdisk suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]