tag:blogger.com,1999:blog-7921326074980135918.post9052037366056816776..comments2024-02-06T09:40:10.395+01:00Comments on Karel Zak's blog: libblkid maintainer's brain dumpUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-7921326074980135918.post-35570482686868180842012-07-12T11:26:11.577+02:002012-07-12T11:26:11.577+02:00Top-level mdadm device. Feel free to hit me up at ...Top-level mdadm device. Feel free to hit me up at nick.black@sprezzatech.com.<br /><br />[skynet](0) $ sudo gfdisk /dev/md127<br />GNU Fdisk 1.2.4<br />Copyright (C) 1998 - 2006 Free Software Foundation, Inc.<br />This program is free software, covered by the GNU General Public License.<br /><br />This program is distributed in the hope that it will be useful,<br />but WITHOUT ANY WARRANTY; without even the implied warranty of<br />MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br />GNU General Public License for more details.<br /><br />Using /dev/md127<br />Command (m for help): p <br /><br />Disk /dev/md127: 16003 GB, 16003162344960 bytes<br />255 heads, 63 sectors/track, 1945607 cylinders<br />Units = cylinders of 16065 * 512 = 8225280 bytes<br /><br /> Device Boot Start End Blocks Id System <br />/dev/md127p1 1 1945608 15628096228 83 Linux <br />Warning: Partition 1 does not end on cylinder boundary. <br />Command (m for help): q<br />[skynet](0) $ sudo fdisk /dev/md127<br />GNU Fdisk 1.2.4<br />Copyright (C) 1998 - 2006 Free Software Foundation, Inc.<br />This program is free software, covered by the GNU General Public License.<br /><br />This program is distributed in the hope that it will be useful,<br />but WITHOUT ANY WARRANTY; without even the implied warranty of<br />MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br />GNU General Public License for more details.<br /><br />Using /dev/md127<br />Command (m for help): p <br /><br />Disk /dev/md127: 16003 GB, 16003162344960 bytes<br />255 heads, 63 sectors/track, 1945607 cylinders<br />Units = cylinders of 16065 * 512 = 8225280 bytes<br /><br /> Device Boot Start End Blocks Id System <br />/dev/md127p1 1 1945608 15628096228 83 Linux <br />Warning: Partition 1 does not end on cylinder boundary. <br />Command (m for help): q <br />[skynet](0) $ sudo LIBBLKID_DEBUG=0xffff partx /dev/md127<br />libblkid: debug mask set to 0xffff.<br />allocate a new probe 0x133c050<br />zeroize wiper<br />ready for low-probing, offset=0, size=16003169779712<br />whole-disk: YES, regfile: NO<br />partlist reset<br />parts: initialized partitions list (0x133cc70, size=0)<br />--> starting probing loop [PARTS idx=-1]<br /> buffer read: off=0 len=1024 pr=0x133c050<br /> reuse buffer: off=0 len=1024 pr=0x133c050<br /> reuse buffer: off=0 len=1024 pr=0x133c050<br /> reuse buffer: off=0 len=1024 pr=0x133c050<br />gpt: ---> call probefunc()<br /> reuse buffer: off=0 len=1024 pr=0x133c050<br />gpt: <--- (rc = 1)<br /> reuse buffer: off=0 len=1024 pr=0x133c050<br />ultrix: ---> call probefunc()<br /> buffer read: off=15872 len=512 pr=0x133c050<br />ultrix: <--- (rc = 1)<br /> reuse buffer: off=0 len=1024 pr=0x133c050<br /> reuse buffer: off=0 len=1024 pr=0x133c050<br /> reuse buffer: off=0 len=1024 pr=0x133c050<br /> buffer read: off=28672 len=1024 pr=0x133c050<br /> reuse buffer: off=0 len=1024 pr=0x133c050<br /> reuse buffer: off=0 len=1024 pr=0x133c050<br /><-- leaving probing loop (failed) [PARTS idx=10]<br />partx: /dev/md127: failed to read partition table<br />reseting probing buffers pr=0x133c050<br />buffers summary: 2560 bytes by 3 read() call(s)<br />free probe 0x133c050<br />[skynet](0) $nick blackhttps://www.blogger.com/profile/13939083300875476344noreply@blogger.comtag:blogger.com,1999:blog-7921326074980135918.post-11568036214853668102012-06-05T15:36:38.222+02:002012-06-05T15:36:38.222+02:00blog is probably bad place for such discussion... ...blog is probably bad place for such discussion... anyway, try<br /><br /> LIBBLKID_DEBUG=0xffff partx /dev/sda<br /><br />is it top-level device or any raid member?karelzakhttps://www.blogger.com/profile/05231988060539621851noreply@blogger.comtag:blogger.com,1999:blog-7921326074980135918.post-32384746070351864252012-06-02T03:28:56.417+02:002012-06-02T03:28:56.417+02:00I notice that libblkid does not return a blkid_par...I notice that libblkid does not return a blkid_partlist when blkid_probe_get_partitions() is called on a mdadm device. gfdisk and fdisk both do show a partition table, though the partitions they list don't have corresponding /dev nodes. showpart(1) doesn't list either GPT or MBR partitions. Any idea what's up?nick blackhttps://www.blogger.com/profile/13939083300875476344noreply@blogger.com