Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gdisk]

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

1
vote
1answer
42 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
245 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/...
0
votes
0answers
29 views

Copy file to google disk though the cron

I am trying to make cron job that make db backup and save it to the Google disk. So I created the folder sqlbackup directly in / and add the following command in the cron (sudo nano /etc/crontab): ...
1
vote
0answers
152 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 ...
3
votes
1answer
340 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
42 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
1k 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 devices....
0
votes
0answers
60 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
27 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
418 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: ...
0
votes
0answers
2k 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
485 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
3k 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
111 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" so I ...
3
votes
0answers
427 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
560 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
399 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
657 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
5k 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 ...
0
votes
2answers
11k 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 ...