Project

General

Profile

Bug #7999

'format' command says "Failed to initialise libfdisk"

Added by Nikola M. almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2017-03-23
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

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
Password:
Searching for disks...done

AVAILABLE DISK SELECTIONS:
0. c3d0 <Unknown-Unknown-0001 cyl 44479 alt 2 hd 255 sec 126>
/pci@0,0/pci-ide@1f,2/ide@0/cmdk@0,0
1. c4d0 <Unknown-Unknown-0001 cyl 19455 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@1f,2/ide@1/cmdk@0,0
Specify disk (enter its number): 0
selecting c3d0
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.

I did
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)


Files

truss.txt (797 KB) truss.txt Nikola M., 2017-03-23 01:09 PM

Related issues

Related to illumos gate - Bug #7804: fdisk_read_master_part_table() causes 'format' to crashClosed2017-01-25

Actions

History

#1

Updated by Nikola M. almost 3 years ago

  • Related to Bug #7804: fdisk_read_master_part_table() causes 'format' to crash added
#3

Updated by Electric Monk almost 3 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 31358b0d3ea5b07f4167f88ac393a5eb2a2249d6

commit  31358b0d3ea5b07f4167f88ac393a5eb2a2249d6
Author: Youzhong Yang <yyang@mathworks.com>
Date:   2017-04-06T18:53:59.000Z

    7999 'format' command says "Failed to initialise libfdisk" 
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: Toomas Soome <tsoome@me.com>
    Reviewed by: Gary Mills <gary_mills@fastmail.fm>
    Reviewed by: Garrett D'Amore <garrett@damore.org>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF