'format' command says "Failed to initialise libfdisk"
Since recently, I can not use 'format' command to access settings and information about local hard disks.
I am sure i was able to do that before and if it is important, rpool is on SATA disk in PATA/IDE mode, because Intel ICH7 controller and illumos can only work with it in PATA mode.
Same happens when selectin another non-formatted disk under option 2.
'format ' should be able to find libfdisk and enable working 'format' command with disk.
Distributio Openindiana hipster, with illumos dated as BE creation date:
$ uname -a
SunOS oid 5.11 illumos-f1affb5 i86pc i386 i86pc Solaris
$ beadm list | grep 95
oi-hipster-95 NR / 48.2G static 2017-03-22 09:37
$ sudo format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c3d0 <Unknown-Unknown-0001 cyl 44479 alt 2 hd 255 sec 126>
1. c4d0 <Unknown-Unknown-0001 cyl 19455 alt 2 hd 255 sec 63>
Specify disk (enter its number): 0
NO Alt slice
No defect list found
[disk formatted, no defect list found]
/dev/dsk/c3d0s0 is part of active ZFS pool rpool. Please see zpool(1M).
Failed to initialise libfdisk.
sudo truss -o truss.txt -f format
And attaching truss.txt on this bug report.
(cmdk driver does not support DKIOCGMEDIAINFOEXT, so libfdisk should fall back to DKIOCGMEDIAINFO if the DKIOCGMEDIAINFOEXT will result in ENOTTY ioctl(12, 0x0430, 0x08046ECC) Err#25 ENOTTY)
Updated by Electric Monk about 4 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 31358b0d3ea5b07f4167f88ac393a5eb2a2249d6 Author: Youzhong Yang <email@example.com> Date: 2017-04-06T18:53:59.000Z 7999 'format' command says "Failed to initialise libfdisk" Reviewed by: Robert Mustacchi <firstname.lastname@example.org> Reviewed by: Toomas Soome <email@example.com> Reviewed by: Gary Mills <firstname.lastname@example.org> Reviewed by: Garrett D'Amore <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>