* ? fdisk -l bug: wrong devices listed ?
@ 2014-08-05 3:26 Felix Miata
2014-08-05 7:10 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Felix Miata @ 2014-08-05 3:26 UTC (permalink / raw)
To: util-linux
Rawhide util-linux-2.25-2.fc22.i686
In system with:
HD on ICH5 IDE (/dev/sda)
DVD-drive on ICH5 IDE (door open/empty drive; /dev/sr0)
USB stick on USB Bus 001 Device 002: ID 0781:556b SanDisk Corp. (/dev/sdb)
# lsusb
Bus 001 Device 002: ID 0781:556b SanDisk Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 046d:c408 Logitech, Inc. Marble Mouse (4-button)
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
# 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 / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xdf5ee116
Device Boot Start End Sectors Size Id Type
/dev/sda1 63 80324 80262 39.2M 6 FAT16
/dev/sda2 80325 578339 498015 243.2M 1b Hidden W95 FAT32
/dev/sda3 * 578340 1397654 819315 400.1M 83 Linux
/dev/sda4 1397655 234372284 232974630 111.1G 5 Extended
/dev/sda5 1397718 1783214 385497 188.2M 82 Linux swap / Solaris
/dev/sda6 1783278 1799279 16002 7.8M 11 Hidden FAT12
/dev/sda7 1799343 2313359 514017 251M 16 Hidden FAT16
/dev/sda8 2313423 13783769 11470347 5.5G 7 HPFS/NTFS/exFAT
/dev/sda9 13783833 23615549 9831717 4.7G 83 Linux
/dev/sda10 23615613 33447329 9831717 4.7G 83 Linux
/dev/sda11 33447393 43279109 9831717 4.7G 83 Linux
/dev/sda12 43279173 53110889 9831717 4.7G 83 Linux
/dev/sda13 53110953 67858559 14747607 7G 83 Linux
/dev/sda14 67858623 72051524 4192902 2G 83 Linux
/dev/sda15 72051588 89642699 17591112 8.4G 83 Linux
/dev/sda16 89642763 99474479 9831717 4.7G 83 Linux
/dev/sda17 99474543 109306259 9831717 4.7G 83 Linux
/dev/sda18 109306323 119138039 9831717 4.7G 83 Linux
/dev/sda19 119138103 128969819 9831717 4.7G 83 Linux
/dev/sda20 128969883 138801599 9831717 4.7G 83 Linux
/dev/sda21 138801663 148633379 9831717 4.7G 83 Linux
/dev/sda22 148633443 158465159 9831717 4.7G 83 Linux
/dev/sda23 158465223 168296939 9831717 4.7G 83 Linux
/dev/sda24 168297003 178128719 9831717 4.7G 83 Linux
/dev/sda25 178128783 187960499 9831717 4.7G 83 Linux
/dev/sda26 187960563 197792279 9831717 4.7G 83 Linux
/dev/sda27 197792343 221841584 24049242 11.5G 7 HPFS/NTFS/fdisk: cannot open /dev/sr0: No medium found
exFAT
/dev/sda28 221841648 233311994 11470347 5.5G d7 unknown
/dev/sda29 233312058 234356219 1044162 509.9M 1b Hidden W95 FAT32
/dev/sda30 234356283 234372284 16002 7.8M 1 FAT12
# fdisk -l /dev/sdb
Disk /dev/sdb: 7.5 GiB, 8004304896 bytes, 15633408 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: 0xdf5ee121
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 32 15632383 15632352 7.5G c W95 FAT32 (LBA)
Is it intended that simply 'fdisk -l' skip listing the available USB stick, while trying to list content for the empty OM reader, while 'fdisk -l /dev/sdb' works sensibly as in openSUSE's fdisk from util-linux-2.21.2?
--
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)
Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
Felix Miata *** http://fm.no-ip.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ? fdisk -l bug: wrong devices listed ?
2014-08-05 3:26 ? fdisk -l bug: wrong devices listed ? Felix Miata
@ 2014-08-05 7:10 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2014-08-05 7:10 UTC (permalink / raw)
To: Felix Miata; +Cc: util-linux
On Mon, Aug 04, 2014 at 11:26:25PM -0400, Felix Miata wrote:
> fdisk: cannot open /dev/sr0: No medium found
Seems like already fixed bug:
commit 52d92543ffb8efb56036f316a1072d8fbba62c38
Author: Karel Zak <kzak@redhat.com>
Date: Mon Jul 28 11:57:10 2014 +0200
fdisk: fix -l [<device>]
* don't use err(), but warn(), so don't stop after the first error
* display all errors when "-l <device> ..." specified
* display only EACCES errors when list whole disks from
/proc/partitions ("fdisk -l" )
Reported-by: Boian Bonev <bbonev@ipacct.com>
Addresses: https://github.com/karelzak/util-linux/pull/106
Signed-off-by: Karel Zak <kzak@redhat.com>
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-05 7:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-05 3:26 ? fdisk -l bug: wrong devices listed ? Felix Miata
2014-08-05 7:10 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).