Questions tagged [gdisk]

Questions about GPT fdisk (aka gdisk), the text-mode interactive program for creation and manipulation of partition tables. For scripting with gdisk see sgdisk.

35 questions
39
votes
5 answers

Remove GPT - Default back to MBR

I keep receiving this error: Warning!! Unsupported GPT (GUID Partition Table) detected. Use GNU Parted I want to go back to the normal MBR. I found some advice here and did: parted /dev/sda mklabel msdos quit But when I get to the mklabel option…
sayth
  • 579
  • 1
  • 4
  • 7
13
votes
4 answers

How to renumber GPT partitions on an umounted disk?

I tried to sort (renumber) partitions on /dev/sdb via terminal, using gdisk from the operating system (running on /dev/sda) and none of the sdb partitions mounted but the only option I get is [-l] which lists options the option I'm trying to…
BillV
  • 141
  • 1
  • 1
  • 5
11
votes
3 answers

Remove all traces of GPT disk label

I've got an USB pen drive and I'd like to turn it into a bootable MBR device. However, at some point in its history, that device had a GPT on it, and I can't seem to get rid of that. Even after I ran mklabel dos in parted, grub-install still…
MvG
  • 4,361
  • 2
  • 28
  • 42
9
votes
1 answer

Script to gdisk /dev/sdX and enter expert commands: x, z, y, y - how?

I am creating my first Arch Linux install script, and I want to automate the base installation as in the archwiki or you can find the same instructions but easier to read here: https://www.gloriouseggroll.tv/arch-linux-efi-install-guide/ I wish to…
Spacecow
  • 183
  • 2
  • 7
8
votes
3 answers

Getting the extra GPT info; a "fdisk -l" equivalent

What is the equivalent for GPT using HDDs of: # fdisk -l /dev/hda > /mnt/sda1/hda_fdisk.info I got this from https://wiki.archlinux.org/index.php/disk_cloning (under "Create disk image") for getting the extra hdd info which may be important for…
ConfusedStack
  • 367
  • 2
  • 3
  • 11
6
votes
3 answers

unable to dd, smartmon, fdisk or anything on a working external Western Digital Hard Drive

I bought a WD HD on Amazon used because I wanted one that was exactly like another that I hosed. I can't do anything with the HD. The drive is definitely /dev/sdb, but it also mounts /dev/sr0 ~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda …
geneorama
  • 161
  • 1
  • 6
5
votes
2 answers

Changing HFSPlus UUID from PartedMagic

I needed to make a clone of my hard drive recently (bad blocks FTW). I was using Clonezilla at the time. However, Clonezilla refused to copy the HFS+ partition, so I did it manually. The problem is that the UUIDs are out of sync. What is the command…
Kaz Wolfe
  • 485
  • 3
  • 17
4
votes
1 answer

gdisk, make a non-permanent fix to a corrupted GPT table

My laptop is unable to boot. So, I run Ubuntu 18.04 live from a bootable USB. It didn't automatically mount the 500 GB hard disk /dev/sda, which uses GPT. lsblk shows only the disk, not the partitions; fdisk is instead able to show them. gdisk…
BowPark
  • 4,811
  • 12
  • 47
  • 74
3
votes
3 answers

Optimal partition sizes with Gparted and Gdisk

I am trying to chop a 4TB (4,000,225,165,312 bytes) drive up into even partitions of 1TB. I want these partitions to be further dividable to at least 1^3 Byte (~1GB) (1000000000) partitions. Okay, so after hours of distilling, I've found a couple of…
alchemy
  • 537
  • 5
  • 16
3
votes
2 answers

GPT "Type device filename, or press to exit?

I am attempting to install Arch Linux (for the hundredth time) and I recently ran across another problem. I am trying to find a list of my partitions. In order to do this I entergdisk When I do this however it returns Type device filename, or press…
Griffin
  • 509
  • 2
  • 7
  • 15
3
votes
1 answer

Wrong sector size in NVMe

I bought a new NVMe SSD (SB-ROCKET-256) and installed Arch using gdisk for partioning. In theory, this SSD doesn't support 512e and I think the physical size should be 4096, am I wrong? How do I set it right? The partition table is the following: $…
David Lilue
  • 133
  • 1
  • 5
3
votes
1 answer

Change disk type from Microsoft Basic to Linux filesystem

I'm not clear where this is coming from and although it seems cosmetic I would like to change my disk type from Microsoft Basic to Linux filesystem WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your…
user319941
3
votes
2 answers

Partitioning and formatting a 4k-emulated (512e) HDD

I just plugged into USB A 3.0 / C 3.1 my new external HDD to Debian Buster system. The disk was sold as LaCie 2.5" Porsche Design P'9227 2TB USB-C. Here is the output of fdisk -l /dev/sdc: Disk /dev/sdc: 1.8 TiB, 2000398934016 bytes, 3907029168…
Vlastimil Burián
  • 27,586
  • 56
  • 179
  • 309
3
votes
2 answers

Resize partition table using gdisk

I want to change my partition table (using openWRT Linux OS) due to a new flash memory card - 1GB instead of 256MB. For this, I've installed gdisk tool, and ran it using 'gdisk /dev/mmcblk0' command. We can see that memory size is identified as 1GB…
dear_tzvi
  • 209
  • 4
  • 11
3
votes
1 answer

Recover partitions Mac OS internal HD

I booted to a live Ubuntu USB, wanting to delete partitions on an SD card, and ended up deleting all my partitions on my MacBook Pro's internal HD. I have already tried gpart (which gets stuck at "Begin scan...") and testdisk (which can't create…
user3490458
  • 207
  • 1
  • 7
1
2 3