Questions tagged [gdisk]

Questions related to gdisk which is a set of text-mode partitioning tools for Linux and other operating systems.

Filter by
Sorted by
Tagged with
0
votes
0answers
57 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
0answers
29 views

My Ubuntu doesn't detect SSD

I have installed SSD on my Ubuntu. - It doesn't appear in df - but sudo gdisk -l /dev/sda detects it: GPT fdisk (gdisk) version 1.0.1 Partition table scan: MBR: not present BSD: not present ...
0
votes
0answers
28 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
0answers
65 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 ...
1
vote
1answer
834 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
1answer
63 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
1answer
814 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
0answers
384 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
1answer
542 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
0answers
101 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
0answers
1k 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
0answers
2k 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
0answers
115 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
1answer
32 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
0answers
577 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: ...
1
vote
0answers
4k 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
1answer
872 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
0answers
5k 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
1answer
133 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
0answers
531 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
0answers
996 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
0answers
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
0answers
566 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. ...
0
votes
1answer
723 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
1answer
2k 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
1answer
8k 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 ...
3
votes
2answers
18k 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 ...