Comment 0 for bug 1740309

Revision history for this message
Andreas Pokorny (andreas-pokorny) wrote : user space process when reading partition table from disk

user space process as in parted or fdisk or update-grub2 that read partition tables freeze on my system:
/dev/sda/ GPT disk with efi, swap and ubuntu artful partition
/dev/sdb old style partition table with one ext4 partition
/dev/sdc GPT disk with efi partition, windows 10

I.e. if I run as root :
# fdisk -l
Disk /dev/sda: 232,9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 56FF6AB0-076F-483C-890F-EC4B4FAF6313

Device Start End Sectors Size Type
/dev/sda1 2048 2000895 1998848 976M EFI System
/dev/sda2 2000896 10000383 7999488 3,8G Linux swap
/dev/sda3 10000384 488396799 478396416 228,1G Linux filesystem

Disk /dev/sdb: 489,1 GiB, 525112713216 bytes, 1025610768 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
Disklabel type: dos
Disk identifier: 0x2f11f9c4

Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 1025609727 1025607680 489G 83 Linux
<...process hangs here forever...>

With gdb I stepped through fdisk -l and saw that the call to open ('dev/sdc'..) never returns.