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.

Filter by
Sorted by
Tagged with
0
votes
1answer
58 views

Repository or documentation for gdisk error codes?

I've thoroughly read through the gdisk man page and the author's walkthrough found here http://www.rodsbooks.com/gdisk/walkthrough.html I'm wondering if there is a repository of error codes out ...
0
votes
1answer
34 views

How to determine sizes using sgdisk partitioning in bash script

I'm using sgdisk in a bash script similar to this: sgdisk --clear /dev/vda --set-alignment=1 --new 1:34:2047 --typecode 1:EF02 -c 1:"grub" -g /dev/vda sgdisk --new 2:2048:16779263 --typecode 2:8300 -...
1
vote
1answer
628 views

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 ...
1
vote
1answer
41 views

disk partitioning gui RHEL CentOS 7

question: should it be /dev/sdb that is mounted or /dev/sdb1 that is mounted when dealing with disks other than your operating system disk? My issue is that with the Utilities - Disks from the ...
0
votes
1answer
389 views

ddrescue: Unaligned read error. Is sector size correct?

I'm trying to use GNU ddrescue to recover raw data from a failing SSD. System is Debian Stretch. Thus far, I have this info out of it: dmesg [Sun Sep 8 15:04:20 2019] sd 7:0:0:0: [sdd] 468862128 ...
4
votes
1answer
98 views

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 ...
2
votes
1answer
4k 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
619 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 /...
8
votes
1answer
1k 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 or you can find the same instructions but easier to read here: https://www....
1
vote
0answers
990 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
167 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
501 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
3k 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. ...
8
votes
2answers
14k 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
935 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
22k 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 ...
9
votes
2answers
6k 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 ...
34
votes
5answers
148k 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 ...