Questions related to gdisk which is a set of text-mode partitioning tools for Linux and other operating systems.
Questions tagged [gdisk]
33 questions
15
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
- 2,963
- 10
- 37
- 53
3
votes
1 answer
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
- 143
- 1
- 7
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
- 753
- 2
- 10
- 28
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…
Arthur Bernardo
- 21
- 1
- 4
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…
Micheal Morrow
- 21
- 1
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
- 1
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
- 11
- 1
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
- 2
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
- 2
1
vote
1 answer
gdisk unable to write GPT table
I'm trying to recover a disk which appears to have a corrupt ID for the protective MBR.
Yesterday I took a backup of the GPT and protective MBR, and dumped to file.
At that time fdisk reported the MBR type ID as 83, where it should be EE for a…
swedishhh
- 109
- 1
- 2
- 7
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
- 5
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
- 1
1
vote
1 answer
Recover data because I wiped out GPT data structure on the wrong disk
I wanted to install ubuntu on dual boot on my computer, but when I was doing the installation, I got "This computer currently has no detected operating systems".
The issue is well explain here :…
Matthieu Veron
- 121
- 2
1
vote
1 answer
Cannot mount drive under ubuntu server 18.04
I have upgraded my home server from ubuntu 12.04 to 18.04. The system holds 2 disks of 2.0TB in Raid 1. When I try to mount them on the 18.04 I get the following error.
mount -t ntfs /dev/md126 /mnt/media
I have also tried mount -t ntfs-3g without…
Jeroen
- 13
- 4