Questions related to gdisk which is a set of text-mode partitioning tools for Linux and other operating systems.
Questions tagged [gdisk]
39 questions
17
votes
2 answers
GDisk Hex Codes
During the use of gdisk, there an option to specify the hex code. I want to know what it is and why it's needed, see below. So for example, if I am creating a software RAID on my drive, I assume I need code fd00. But why? What is it, and do I have…
john smith
- 3,161
5
votes
2 answers
how to truncate a disk image file of unused space without corrupting GPT partition table (end pointer)
Lots of info on taking a image of a disk and shrinking the root (bionic) filesystem partition and then truncating the image to remove the part that became free space. Like https://softwarebakery.com//shrinking-images-on-linux
So there are…
DKebler
- 193
3
votes
1 answer
Startup USB drive made with "Startup Disk Creator" is reported to have multiple issue with its GPT
I created a startup USB drive with Startup Disk Creator from 18.04.1 image and successfully used it to install Ubuntu. Then I decided to inspect it with GPT fdisk, and gdisk reported "invalid main GPT header" and other issues:
§ sudo gdisk…
Alexey
- 793
2
votes
1 answer
gdisk Warning: Secondary partition table overlaps the last partition by 33 blocks!
I’m going to change MBR to GPT using gdisk but when I type:
sudo gdisk /dev/sda
I have a warning tell me:
Warning! Secondary partition table overlaps the last partition by 33 blocks!
You will need to delete this partition or resize it in another…
2
votes
0 answers
Ubuntu 16 RAID5 running but primary GPT table is corrupt on 3 of 4 drives
RAID5 is operating but GPT has CRC error and/or is corrupt (depending on who give the error message).
I have read all of the helps I can find on this and I did what they said and it worked... once only. But for the other 3 disks in the RAID, I…
2
votes
0 answers
GPT ext4 partition recovery - invalid backup header
When I run from a LiveCD to try to recover a non-booting system, I run gdisk /dev/sda and get
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.
so I think I'm supposed to do r then e but when I…
batflaps
- 121
2
votes
2 answers
Converting flash drive From GPT to MBR
I am having a strange issue on Ubuntu 22.04, and can't find any helpful information on it.
I have a 16GB USB flash drive. I want to use it with OPL on my Playstation 2 and this requires the partition table to be MBR. The Disks app in Ubuntu tells me…
1
vote
0 answers
Ubuntu 16.04.3 LTS: UEFI install. Resized GPT partition and now can't boot
Before I did the resize, I had 3 partitions:
root@panda1:/mnt1# gdisk /dev/sdb
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using…
chiwal
- 31
1
vote
0 answers
NTFS mounting problem
I am trying to mount my old windows hdd with ntfs filesystem. The hdd was partitioned in 3 partitions.
/dev/sdb1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
/dev/sdb2 206848 614402047 614195200 292,9G7…
Norovis
- 11
1
vote
1 answer
Error message on 5TB Harddisk: Partition 1 does not start on physical sector boundary
I bought a Wester Digital Green 5TB harddisk and have difficulties to format it.
fdisk -l shows the following message:
WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sde:…
Wolfgang
- 13
1
vote
0 answers
Discrepancy from fdisk while resizing an ISO image
I have an ISO image that I created using Clonezilla from an NTFS (Windows-based) disk. It is 455 GiB in size, but only 32 GiB of which are used. So, I thought I could resize it.
I followed the instructions given here. Most of it was fine, except…
Ray
- 2,200
1
vote
2 answers
I need 2 create a partition on my USB flash drive with block/cluster size of 256 KB, but cant find the dialog box 2 specify this block size in Disks
I'm using Gnome's Disks program 2 format my USB flash drive. I want only 1, 0700 Microsoft basic data partition, covering the whole disk. The disk will be used to transfer 2-8GB video files between Windows and Linux computers.
I want exFAT file…
michal roesler
- 259
- 4
- 14
1
vote
1 answer
Will gdisk or sgdisk commands delete my data? (mdadm e-mail alert)
I currently try to fix my mdadm /dev/md0 raid5 partition. I was informed via e-mail notification from mdadm e-mail alerts that there is a fail event and a DegradedArray event. I found this as a possible solution to the probblem of mine:…
befaro
- 13
- 3
1
vote
0 answers
gdisk MBR and GPT damaged
I'm trying to clone my SSD into a bigger one using CloneZilla, but I got a problem saying that my disk contains mismatched gpt and mbr partition. I tried the gdisk command to see what is wrong in there and I got the following output:
:~$ sudo gdisk…
Maystro
- 111
1
vote
0 answers
Restoring a partition table using gdisk output
I seem to have messed up the partition table of my mobile phone, and I was wondering whether I can recreate it from the gdisk output that I still have, using the Ubuntu installation on my laptop.
This is the output of gdisk -l /dev/sdb before things…
Pthagonal
- 11