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 about GPT fdisk (aka gdisk), the text-mode interactive program for creation and manipulation of partition tables. For scripting with gdisk see sgdisk.

1
vote
1answer
372 views

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, ...
3
votes
1answer
111 views

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 /...
3
votes
1answer
510 views

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. I wish to wipe the partition tables, manually I have to type this: gdisk /dev/sda x ...
1
vote
0answers
586 views

Using gdisk on drive with valid MBR and corrupt GPT

All: I ran ddrescue from a 1.5 TB input (corrupted) Windows external drive that was formatted NTFS to a 8 TB (uncorrupted) Western digital external drive that was formatted ext4. The 8 TB drive was ...
1
vote
1answer
93 views

How to re-order partitions safely? Safe to use gdisk 'sort' option? Edit fstab + grub.cfg necessary?

I have a system that used to have 3 different Linux flavours running. I no longer wanted one of them so I moved and expanded with gparted and all is well, except I now have /sda3, /sda4, /sda7, /sda8 -...
1
vote
1answer
403 views

linux gdisk (on 4TB USB drive) followed my mkfs — but mkfs doesn't see new partitions

I just bought two new 4TB external USB disks for backups http://www.bestbuy.com/site/wd-my-passport-4tb-external-usb-3-0-portable-hard-drive-black/5605533.p that came performatted with a single ...
1
vote
1answer
2k views

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. ...
4
votes
1answer
11k views

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 ...
2
votes
1answer
1k views

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 mac book pro's internal hd. I have already tried gpart (which gets stuck at "...
5
votes
1answer
864 views

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 ...
8
votes
3answers
21k views

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 ...
7
votes
1answer
5k views

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] ...
3
votes
2answers
7k views

GPT "Type device filename, or press <Enter> 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 ...
31
votes
5answers
139k views

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 ...