KatolaZ <[email protected]> writes: > On Mon, Feb 19, 2018 at 02:28:35PM -0300, Renaud (Ron) OLGIATI wrote: > > [cut] > >> >> More info: Plugged in another box (running a fresh install of PCLinuxOS, >> another systemd-free distro) I get df and fdisk to give me the proper size >> value. >> >> While there I reformatted the drive to fat32; plugged it back in the Devuan >> box, fdisk still gives the wrong size, and still tells me it is ext4... >> > > Just throwing a random comment: are you sure the device does not > contain a gpt? If that is the case, the correct partition table would > be seen only via gdisk, not via fdisk. > > My2RandomCents > > KatolaZ
Indeed! But GPT should be supported, right? What's wrong in my case? For me, gdisk reports: Partition table scan: MBR: MBR only BSD: not present APM: not present GPT: present Found valid MBR and GPT. Which do you want to use? 1 - MBR 2 - GPT 3 - Create blank GPT Your answer: 2 Using GPT and creating fresh protective MBR. Warning! Main partition table overlaps the first partition by 64 blocks! You will need to delete this partition or resize it in another utility. Command (? for help): p Disk /dev/sdb: 122915328 sectors, 58.6 GiB Logical sector size: 512 bytes Disk identifier (GUID): 0E61D47A-C4A0-4997-9643-9ED44851CA06 Partition table holds up to 248 entries First usable sector is 64, last usable sector is 3953248 Partitions will be aligned on 32-sector boundaries Total free space is 1 sectors (512 bytes) Number Start (sector) End (sector) Size Code Name 2 1568 2207 320.0 KiB 0700 ISOHybrid1 Partition GUID code: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 (Microsoft basic data) Partition unique GUID: 0E61D47A-C4A0-4997-9641-9ED44851CA06 First sector: 1568 (at 784.0 KiB) Last sector: 2207 (at 1.1 MiB) Partition size: 640 sectors (320.0 KiB) Attribute flags: 1000000000000001 Partition name: 'ISOHybrid1' ### Your answer: 1 Command (? for help): p Disk /dev/sdb: 122915328 sectors, 58.6 GiB Logical sector size: 512 bytes Disk identifier (GUID): 58C208DD-6766-4380-A326-A01C2C46A44A Partition table holds up to 128 entries First usable sector is 34, last usable sector is 122915294 Partitions will be aligned on 2048-sector boundaries Total free space is 2493 sectors (1.2 MiB) Number Start (sector) End (sector) Size Code Name 1 2048 122914815 58.6 GiB 0700 Microsoft basic data References: 1. https://www.howtogeek.com/193669/whats-the-difference-between-gpt-and-mbr-when-partitioning-a-drive/ 2. https://en.wikipedia.org/wiki/GUID_Partition_Table _______________________________________________ Dng mailing list [email protected] https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
