[Bug 829422] New: The "fdisk" command is broken on 13.1M3. Mishandles gpt partitioned disks.
https://bugzilla.novell.com/show_bug.cgi?id=829422 https://bugzilla.novell.com/show_bug.cgi?id=829422#c0 Summary: The "fdisk" command is broken on 13.1M3. Mishandles gpt partitioned disks. Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 3 Platform: Other OS/Version: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: nrickert@ameritech.net QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=547851) --> (http://bugzilla.novell.com/attachment.cgi?id=547851) typescript of commands to demonstrate the problem User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0 Apparently "fdisk" has been enhanced to provide some support for gpt disks. Unfortunately, that support is broken. On my UEFI box, I have two disks, each 1T in size, and each is GPT partitioned. They are "/dev/sda" and "/dev/sdb". The new "fdisk" appears to be working on "/dev/sdb", though it does give a warning that it might not be reliable. The new "fdisk" is a fail on "/dev/sda". It fails to warn that this is a GPT partitioned disk. It only shows the dummy fdisk partition from the protective MBR. It does not show any of the gpt partitions. I will attach a "script" output which gives, in order fdisk -l /dev/sdb gdisk -l /dev/sdb fdisk -l /dev/sda gdisk -l /dev/sda It is the lack of a GPT warning on "/dev/sda" that particularly concerns me. I could tolerate it giving the wrong info if it gave a warning, perhaps similar to the warning for "/dev/sdb" I do not know what difference it is seeing between "/dev/sda" and "/dev/sdb". As it happens, "/dev/sda" was probably partitioned using Microsoft tools, while "/dev/sdb" was partitioned by me using "gdisk". Reproducible: Always Steps to Reproduce: 1. 2. 3. When I first looked at "/dev/sdb", it was on a disk enclosure and showed up with logical blocksize of 4096. After installing on the computer, it shows up as logical blocksize 512, physical blocksize 4096. Because I created the gpt structure the first time, the dummy partition in the protective MBR only covers 1/8 of the disk when seen with 512 logical blocksize. I am not sure whether this is relevant as to why "/dev/sdb" was handled correctly. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=829422
https://bugzilla.novell.com/show_bug.cgi?id=829422#c
Ye Yuan
https://bugzilla.novell.com/show_bug.cgi?id=829422
https://bugzilla.novell.com/show_bug.cgi?id=829422#c1
Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=829422
https://bugzilla.novell.com/show_bug.cgi?id=829422#c2
--- Comment #2 from Neil Rickert
fdisk should be able to detect GPT and write a warning:
The "fdisk" from opensuse 12.3 does that. The "fdisk" from 13.1M3 does not. I will attach "fdisk-from-12.3" and "fdisk-from-13.1M3" giving those outputs.
As root run: dd if=/dev/sda of=disc-header.img count=2 bs={block size of your disc}
I will attach "disc-header.img". I used "bs=4096". According to fdisk, the physical sector size is 4096, and the logical sector size is 512.
and then output of: cat /sys/block/sda/queue/hw_sector_size
I will attach file cat_hw_sector_size with the output. I did that while running 13.1M3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=829422
https://bugzilla.novell.com/show_bug.cgi?id=829422#c3
Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=829422
https://bugzilla.novell.com/show_bug.cgi?id=829422#c4
--- Comment #4 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=829422
https://bugzilla.novell.com/show_bug.cgi?id=829422#c5
--- Comment #5 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=829422
https://bugzilla.novell.com/show_bug.cgi?id=829422#c6
--- Comment #6 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=829422
https://bugzilla.novell.com/show_bug.cgi?id=829422#c7
Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=829422
https://bugzilla.novell.com/show_bug.cgi?id=829422#c8
--- Comment #8 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=829422
https://bugzilla.novell.com/show_bug.cgi?id=829422#c9
--- Comment #9 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=829422
https://bugzilla.novell.com/show_bug.cgi?id=829422#c10
Dennis Olsson
https://bugzilla.novell.com/show_bug.cgi?id=829422
https://bugzilla.novell.com/show_bug.cgi?id=829422#c
Dennis Olsson
https://bugzilla.novell.com/show_bug.cgi?id=829422
https://bugzilla.novell.com/show_bug.cgi?id=829422#c
Dennis Olsson
https://bugzilla.novell.com/show_bug.cgi?id=829422
https://bugzilla.novell.com/show_bug.cgi?id=829422#c11
Dennis Olsson
http://bugzilla.novell.com/show_bug.cgi?id=829422
Tomáš Chvátal
participants (1)
-
bugzilla_noreply@novell.com