Menu

#5561 Partitions on Local Disks module not showing partitions

1.991
open
nobody
None
5
2025-01-16
2022-05-13
No

uname -a

FreeBSD ZFSguru 12.3-RELEASE-p5 FreeBSD 12.3-RELEASE-p5 GENERIC amd64

gpart list da0

Geom name: da0
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 250069646
first: 34
entries: 128
scheme: GPT
Providers:

  1. Name: da0p1
    Mediasize: 524288 (512K)
    Sectorsize: 512
    Stripesize: 0
    Stripeoffset: 32768
    Mode: r0w0e0
    efimedia: HD(1,GPT,5bcf0218-875d-11e4-9c62-a0b3cce009f5,0x40,0x400)
    rawuuid: 5bcf0218-875d-11e4-9c62-a0b3cce009f5
    rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f
    label: (null)
    length: 524288
    offset: 32768
    type: freebsd-boot
    index: 1
    end: 1087
    start: 64
  2. Name: da0p2
    Mediasize: 20032703488 (19G)
    Sectorsize: 512
    Stripesize: 0
    Stripeoffset: 557056
    Mode: r1w1e1
    efimedia: HD(2,GPT,484619be-a71c-11e4-aecd-a0b3cce009f5,0x440,0x2550566)
    rawuuid: 484619be-a71c-11e4-aecd-a0b3cce009f5
    rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
    label: OSB
    length: 20032703488
    offset: 557056
    type: freebsd-zfs
    index: 2
    end: 39127461
    start: 1088
  3. Name: da0p3
    Mediasize: 21474836480 (20G)
    Sectorsize: 512
    Stripesize: 0
    Stripeoffset: 2853392384
    Mode: r0w0e0
    efimedia: HD(3,GPT,39fe51ae-37f3-11eb-afcc-a0b3cce009f5,0x25509a8,0x2800000)
    rawuuid: 39fe51ae-37f3-11eb-afcc-a0b3cce009f5
    rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
    label: L2ARCB1
    length: 21474836480
    offset: 20033261568
    type: freebsd-zfs
    index: 3
    end: 81070503
    start: 39127464
  4. Name: da0p4
    Mediasize: 5368709120 (5.0G)
    Sectorsize: 512
    Stripesize: 0
    Stripeoffset: 2853392384
    Mode: r1w1e2
    efimedia: HD(4,GPT,987a0743-37f3-11eb-afcc-a0b3cce009f5,0x4d509a8,0xa00000)
    rawuuid: 987a0743-37f3-11eb-afcc-a0b3cce009f5
    rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
    label: sLOGB1
    length: 5368709120
    offset: 41508098048
    type: freebsd-zfs
    index: 4
    end: 91556263
    start: 81070504
  5. Name: da0p5
    Mediasize: 5368709120 (5.0G)
    Sectorsize: 512
    Stripesize: 0
    Stripeoffset: 3927134208
    Mode: r1w1e2
    efimedia: HD(5,GPT,a823fc3a-37f3-11eb-afcc-a0b3cce009f5,0x57509a8,0xa00000)
    rawuuid: a823fc3a-37f3-11eb-afcc-a0b3cce009f5
    rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
    label: sLOGB2
    length: 5368709120
    offset: 46876807168
    type: freebsd-zfs
    index: 5
    end: 102042023
    start: 91556264
  6. Name: da0p6
    Mediasize: 5368709120 (5.0G)
    Sectorsize: 512
    Stripesize: 0
    Stripeoffset: 705908736
    Mode: r1w1e2
    efimedia: HD(6,GPT,b20ffeb3-37f3-11eb-afcc-a0b3cce009f5,0x61509a8,0xa00000)
    rawuuid: b20ffeb3-37f3-11eb-afcc-a0b3cce009f5
    rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
    label: sLOGBX
    length: 5368709120
    offset: 52245516288
    type: freebsd-zfs
    index: 6
    end: 112527783
    start: 102042024
  7. Name: da0p7
    Mediasize: 8589934592 (8.0G)
    Sectorsize: 512
    Stripesize: 0
    Stripeoffset: 1779650560
    Mode: r1w1e2
    efimedia: HD(7,GPT,8be06da2-ba20-11ec-b2df-a0b3cce009f5,0x6b509a8,0x1000000)
    rawuuid: 8be06da2-ba20-11ec-b2df-a0b3cce009f5
    rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
    label: swap0
    length: 8589934592
    offset: 57614225408
    type: freebsd-swap
    index: 7
    end: 129304999
    start: 112527784
    Consumers:
  8. Name: da0
    Mediasize: 128035676160 (119G)
    Sectorsize: 512
    Mode: r5w5e14
1 Attachments

Discussion

  • Jamie Cameron

    Jamie Cameron - 2022-05-14

    Do you have the parted command on your system?

     
  • Gabor Vadler

    Gabor Vadler - 2022-05-14

    No. I may be wrong but there is no parted package on FreeBSD 12.3

     
  • Jamie Cameron

    Jamie Cameron - 2022-05-14

    Apologies I missed this was BSD. Do you have the fdisk command installed, and if so what does fdisk /dev/da0 output?

     
  • Gabor Vadler

    Gabor Vadler - 2022-05-14

    fdisk /dev/da0

    * Working on device /dev/da0 *
    parameters extracted from in-core disklabel are:
    cylinders=15566 heads=255 sectors/track=63 (16065 blks/cyl)

    Figures below won't work with BIOS for partitions not in cyl 1
    parameters to be used for BIOS calculations are:
    cylinders=15566 heads=255 sectors/track=63 (16065 blks/cyl)

    Media sector size is 512
    Warning: BIOS sector numbering starts with sector 1
    Information from DOS bootblock is:
    The data for partition 1 is:
    sysid 238 (0xee),(EFI GPT)
    start 1, size 250069679 (122104 Meg), flag 0
    beg: cyl 0/ head 0/ sector 2;
    end: cyl 1023/ head 255/ sector 63
    The data for partition 2 is:
    <unused>
    The data for partition 3 is:
    <unused>
    The data for partition 4 is:
    <unused></unused></unused></unused>

     
  • Jamie Cameron

    Jamie Cameron - 2022-05-14

    Oh .. it looks like the version of fdisk you have installed doesn't support GPT partitions, so it's only seeing the "outside" partition.

     
  • Gabor Vadler

    Gabor Vadler - 2022-05-14

    Yep, that's the official fdisk package from FreeBSD. You say that it is a FreeBSD BUG then?

     
  • Jamie Cameron

    Jamie Cameron - 2022-05-14

    Yes, I think it's a FreeBSD or fdisk bug that it doesn't support GPT partitions.

     
  • Gabor Vadler

    Gabor Vadler - 2022-05-15

    FreeBSD fdisk doesn't supports GPT partitions, it supports MBR only.
    Using gpart is recommended instead.
    So FreeBSD fdisk operation is designed to work this way.
    Is it possible making Webmin Partition module compatible with FreeBSD GPT partitions please?

     
  • Jamie Cameron

    Jamie Cameron - 2022-05-15

    We'd have to add support for gpart as an alternative to fdisk then. Can gpart also manage DOS-format partitions?

     
    • Gabor Vadler

      Gabor Vadler - 2022-05-15

      Yes! I think gpart has full MBR support and much more.

       
      • Jamie Cameron

        Jamie Cameron - 2022-05-16

        Ok, I'll put this on my TODO list

         
  • Gabor Vadler

    Gabor Vadler - 2022-05-16

    I would like to thank You for the effort maintaining and developing Webmin.
    For a possible use of gpart handling partitions could be the abandoned ZFSguru project or some part of it.

     
  • Fulvio Fusco

    Fulvio Fusco - 2022-11-17

    Hi,
    I've had the same problem in Ubuntu for a while now, at least since the 1.998 version of Webmin.
    There appears to be a bug in the perl code in edit_part.cgi (Webmin fdisk module), where the $ui_buttons_code variable is reassigned instead of being concatenated.
    Same error in edit_disk.cgi.

     
    • Jamie Cameron

      Jamie Cameron - 2022-11-18

      Thanks, we'll fix this in the next release.

       
  • Gabor Vadler

    Gabor Vadler - 2022-11-17

    As we discussed with Jamie is not that easy. On UNIX it will work only if gpart support is implemented.

     
  • Gabor Vadler

    Gabor Vadler - 2023-11-21

    Hi,
    Could You make time to change fdisk to gpart in webmin scripts for Freebsd?
    Fdisk command in BSD is obsolete. Users are advised to use gpart instead.
    https://man.freebsd.org/cgi/man.cgi?fdisk
    https://man.freebsd.org/cgi/man.cgi?gpart
    Best regards,

     
  • Gabor Vadler

    Gabor Vadler - 2025-01-15

    Hi,

    DEPRECATION NOTICE
    fdisk is deprecated and is not available in FreeBSD 15.0 or later. Use
    gpart(8) instead (with the MBR partitioning scheme), or install the
    freebsd-fdisk port or package.

    Is there any ETA to replace fdisk with gpart?
    The Webmin feature showing disks and partitions is not working on FreeBSD.

     
    • Ilia

      Ilia - 2025-01-16

      Hello,

      It sounds like some work is required to support it, and it may be time-consuming.

      It also doesn't seem that parted can be easily installed on FreeBSD...

       

Log in to post a comment.

MongoDB Logo MongoDB