libparted-2.1 ro funcs writing empty hybrid mbr on gpt disks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
parted (Debian) |
Fix Released
|
Unknown
|
|||
parted (Ubuntu) |
Fix Released
|
High
|
Colin Watson | ||
Lucid |
Fix Released
|
High
|
Colin Watson |
Bug Description
Binary package hint: parted
libparted-2.1 ro writes empty hybrid mbr on gpt disk
This is the known upstream bug of libparted-2.1
Readonly operations emptying hybrid MBR on a gpt-disk / mac mini
My observation using fdisk which I know uses libparted-2.1:
#### See that fdisk -l does not show mbr-list but gpt and changes types of partitions
#### this should output: Gerät boot. Anfang Ende Blöcke Id System
#### this should output: /dev/sda1 1 26 204819+ ee GPT
#### this should output: Partition 1 endet nicht an einer Zylindergrenze.
#### this should output: /dev/sda2 * 26 6512 52095204 af HFS / HFS+
#### this should output: /dev/sda3 6528 13013 52095204 83 Linux
#### this should output: /dev/sda4 13045 25876 103073040 83 Linux
root@maci:/sbin# fdisk -l /dev/sda
GNU Fdisk 1.2.4
Copyright (C) 1998 - 2006 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Disk /dev/sda: 320 GB, 320070320640 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 208813 83 Linux
Warning: Partition 1 does not end on cylinder boundary.
/dev/sda2 26 6512 52098795 83 Linux
Warning: Partition 2 does not end on cylinder boundary.
/dev/sda3 6528 13013 52090762 83 Linux
Warning: Partition 3 does not end on cylinder boundary.
/dev/sda4 13045 25876 103065007 83 Linux
/dev/sda5 25898 26447 4409842 82 Linux Swap / Solaris
/dev/sda6 26469 35227 70348635 83 Linux
/dev/sda7 35261 38799 28418985 83 Linux
#### Now using gptfdisk from sourceforge.net - there is a rescue menu - h
root@maci:/sbin# ./gptdisk /dev/sda
GPT fdisk (gdisk) version 0.6.4
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: present
Found valid GPT with corrupt MBR; using GPT and will write new
protective MBR on save.
....
#### Now using the opensuse11.2 fdisk just to show results:
root@maci:/sbin# mychroot suse
root@maci:/etc# fdisk -l /dev/sda
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Platte /dev/sda: 320.1 GByte, 320072933376 Byte
255 Köpfe, 63 Sektoren/Spuren, 38913 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0x3afccd5b
Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 1 26 204819+ ee GPT
Partition 1 endet nicht an einer Zylindergrenze.
/dev/sda2 * 26 6512 52095204 af HFS / HFS+
/dev/sda3 6528 13013 52095204 83 Linux
/dev/sda4 13045 25876 103073040 83 Linux
Related branches
Changed in parted (Debian): | |
status: | Unknown → Fix Released |
From the Changelog:
" parted (2.1-4ubuntu1) lucid; urgency=low
* Resynchronise with Debian experimental. Remaining changes:
- gptsync.dpatch: On Intel Mac systems, write a synced MBR rather than a
protective MBR.
"
So, I guess this my problem using a mac mini will be handled ?