Questions tagged [gdisk]
Questions related to gdisk which is a set of text-mode partitioning tools for Linux and other operating systems.
30
questions
1
vote
0
answers
284
views
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 ...
0
votes
1
answer
51
views
After switching drive from USB enclosure to internal SATA, disk doesn't show data
On Ubuntu 20.04.4 LTS amd64.
I swapped a GPT partition, formatted with GParted with a single LUKS partition while connected with a USB 3.0 enclosure, to an internal SATA connection. After being moved ...
0
votes
1
answer
490
views
Gparted or mkfs corrupting GPT backup header/table
------- Edit --------
This question is not about how to install Ubuntu to a USB drive (I already know how to do that). This question is about why standard utilities are corrupting GPT tables.
------- ...
0
votes
1
answer
210
views
NTFS partition on external drive not automounting (20.10)
After resizing an NTFS partition on an external GPT drive using Gparted the volume doesn't seem to automount on Ubuntu anymore (or other distributions, like OSMC). It has worked fine previously. It ...
0
votes
0
answers
487
views
Corrupted ext4 disk with windows disk manager
I am the main linux person in our team (which is a sad state of affairs), and am trying to fix a problem created by one of our windows users.
They had a 5TB drive with a single ~5TB ext4 partition ...
0
votes
0
answers
99
views
Bitlocker windows data partition broken after partition manager apply
I was trying to install ubuntu on my laptop. I tried to move some partitions and extend other ones. One of them was a data partition, that was partitioned using Windows, so it was probably controlled ...
1
vote
0
answers
494
views
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 ...
3
votes
1
answer
6k
views
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/...
1
vote
1
answer
106
views
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 : http:...
1
vote
1
answer
2k
views
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/...
1
vote
0
answers
793
views
Possible to rescue SSD that doesn't show any partitions?
I had a laptop SSD suffer water damage. The rest of the laptop appears to work fine, however the SSD, a Kingston SNS8152S3256GG2, seems to have completely failed and the OS won't boot at all, so I am ...
4
votes
1
answer
894
views
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 ...
1
vote
0
answers
313
views
invalid main GPT header after a memory swap
I'm trying to safely move space from Windows 7/8/10 to Ubuntu (GPT + UEFI Mode) with this tutorial.
I tried to edit /etc/fstab to tell it about the new swap and check if there were any changes in the ...
1
vote
0
answers
2k
views
Ubuntu 18.04 installer is not showing partitions
I have an HP pavilion workstation, that came with windows 10 preinstalled, and I want to make it a dual boot with Linux. The problem is that even after doing all the following:
Disabled secure boot
...
0
votes
0
answers
3k
views
Recovering a GPT damaged partition
Problem: 4TB drive can't be mounted. The drive is visible in GParted and gdisk, but the GPT partition is reported as damaged.
Background information: Initially my setup consisted of 2 storage ...
0
votes
1
answer
252
views
Is sudo gdisk sdX dangerous?
I need to install Ubuntu in UEFI mode, but for this thing I need to convert disk to GPT. Will command sudo gdisk X erase all data from HDD?
Thanks for answer in advance!
0
votes
1
answer
44
views
Linux Error Reporting Removable Disk Size
I recently had a strange error while trying to partition removable usb drives. lsblk correctly reported the drive configuration. However when I tried to dd an image to the drive dd error'd, reporting ...
1
vote
0
answers
670
views
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: ...
2
votes
0
answers
7k
views
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 ...
0
votes
1
answer
1k
views
Accidentally created new partition table for boot drive
Yesterday I accidentally created a new (boot) partition with gdisk on my main drive instead of my external drive. However this created a new partition table, but since I am running Kubuntu on this ...
0
votes
0
answers
6k
views
Ubuntu 16.04.2 LTS: "The backup GPT table is corrupt, but the primary appears OK, so that will be used." fixed by gdisk yet come back after reboot [duplicate]
I have four drives that I put onto a Ubuntu 16.04.2 LTS. Recently during a fdisk task I saw the warning message "The backup GPT table is corrupt, but the primary appears OK, so that will be used.". I ...
0
votes
1
answer
149
views
Linux Ubuntu 16.04 Blank Screen
I have a DELL Inspiran laptop. Recently I had a problem my External Hard Disk is not detected.
So I followed the below steps,
sudo mount /dev/sdxn /mnt
I got a message "GPT table corrupted"...
2
votes
0
answers
599
views
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 ...
0
votes
0
answers
1k
views
corrupt primary partition, no problem in gdisk
I have just installed ubuntu 16.04 on a macbook pro 7.1. I was having some difficulties, but eventually got it to work.
Based on my original difficulties pertaining to the video card (see here: ...
1
vote
0
answers
43
views
NTFS mounting problem [duplicate]
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 ...
2
votes
0
answers
755
views
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.
...
1
vote
1
answer
830
views
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 ...
0
votes
1
answer
3k
views
How can I add msftdata flag to an ext4 partition?
I have moved my partitions around to make room for dualboot, and now Windows 10 is on sda1 and sd2, with my linux install on sda3 (boot) and sda4 (home). I would like to access sda4 from my Windows ...
0
votes
1
answer
15k
views
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 ...
15
votes
2
answers
34k
views
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 ...