[GTALUG] parted and fdisk disagree

Carmelo San Giovanni carmelo at linux.com
Wed Apr 4 10:21:31 EDT 2018

I think fdisk is right.

You can try to local mount each partition and see if it works.

Here a script to easily do that: https://pastebin.com/zeKuRgi9

Carmelo San Giovanni
GPG key ID: 5848 7F43 5A2C BB92 F8CD  6978 74BC 7FB4 CFAA 813B


*Da:* Darryl Moore Via Talk
*Inviato:* Wednesday, April 04, 2018 9:57AM
*A:* Talk
*Oggetto:* [GTALUG] parted and fdisk disagree

I have an SD CARD disk image which I can burn to an SD card ant it boots
up my Olimex board just fine. When I try viewing the partition
information with parted and fdisk, I get different information. Ive
googled this but come up empty. Anybody have any idea what is going on
here? fdisk is the correct answer..... I think.

darryl at darryl-Aspire-V3-575:~$ sudo parted elp780.3.3.img print
Model:  (file)
Disk /home/darryl/elp780.3.3.img: 16.1GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number  Start  End     Size    File system  Flags
 1      0.00B  16.1GB  16.1GB  fat32

darryl at darryl-Aspire-V3-575:~$ sudo fdisk -l elp780.3.3.img
Disk elp780.3.3.img: 15 GiB, 16088301568 bytes, 31422464 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6f20736b

Device          Boot Start      End  Sectors  Size Id Type
elp780.3.3.img1       2048    34815    32768   16M 83 Linux
elp780.3.3.img2      34816 31116287 31081472 14.8G 83 Linux

Talk Mailing List
talk at gtalug.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/talk/attachments/20180404/2951fc95/attachment.html>

More information about the talk mailing list