Questions tagged [gpt]

Use this tag for GPT partition tables.

GUID Partition Table (GPT) - partition table standard for physical data storage devices (like hard disks and solid state drives...) that uses globally unique identifiers (GUID). Successor of MBR partition table standard.

253 questions
131
votes
8 answers

GPT or MBR: How do I know?

How can I tell whether my harddrive is laid out using an MBR or GPT format?
goldilocks
  • 86,451
  • 30
  • 200
  • 258
94
votes
6 answers

Create partition aligned using parted

I'm partitioning a non-SSD hard disk with parted because I want a GPT partition table. parted /dev/sda mklabel gpt Now, I'm trying to create the partitions correctly aligned so I use the following command to know where the first sector…
Marc
  • 1,651
  • 3
  • 14
  • 16
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
35
votes
1 answer

Can GRUB2 share the EFI system partition with Windows?

I have an existing Windows 7 GPT installation, which already has a EFI System partition. I am now trying to install a Linux on a separate harddisk, which is also GPT formatted. I did not find any working way to get grub booting without EFI system…
crater2150
  • 3,836
  • 2
  • 22
  • 26
31
votes
1 answer

What is UUID, PARTUUID and PTUUID?

In the blkid output, some lines contain UUID and PARTUUID pairs and others only PTUUID. What do they mean? In particular, why are two IDs required for a partition and why are some partitions identified by UUID/PARTUUID and some by PTUUID?
anatoly techtonik
  • 2,514
  • 4
  • 24
  • 37
19
votes
1 answer

Dual boot windows on second harddrive, UEFI/GPT system

I'd like to install linux, but I don't want to risk damaging my current windows installation as I have heard a lot of horror stories. Fortunately, I have an extra hard drive. Can I install linux onto that and then dual boot windows without having…
goldilocks
  • 86,451
  • 30
  • 200
  • 258
17
votes
1 answer

"Warning! Secondary partition overlaps the last partition by x blocks" in gdisk, is it safe to use gdisk here?

I'm trying to convert my hard drive from MBR to GPT using gdisk. When I run sudo gdisk /deve/disk1s4 I get this: Warning! Secondary partition table overlaps the last partition by 2032668853 blocks! You will need to delete this partition or resize it…
DisplayName
  • 11,468
  • 20
  • 73
  • 115
14
votes
2 answers

Will dd if=/dev/zero of=/dev/sda wipe out a pre-existing partition table?

Will # dd if=/dev/zero of=/dev/sda wipe out a pre-existing partition table? Or is it the other way around, i.e, does # fdisk /dev/sda g (for GPT) wipe out the zeros written by /dev/zero?
user223600
14
votes
4 answers

Should I use fdisk for partitioning or GPT aware tools?

Question: Should I use fdisk when creating partitions? Or is it advisable to use parted since it uses GPT? (by default?) And with that I can create partitions larger than 2TB.
pepite
  • 1,053
  • 3
  • 14
  • 32
13
votes
1 answer

Using UUID's with mdadm

I'm using GPT as my partitioning scheme. I check the UUID's of my partitions: # ls -l /dev/disk/by-partuuid/ total 0 lrwxrwxrwx 1 root root 10 Oct 18 22:39 0793009a-d460-4f3d-83f6-8103f8ba24e2 -> ../../sdb3 lrwxrwxrwx 1 root root 10 Oct 18 22:39…
Deleted
  • 409
  • 1
  • 4
  • 12
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
12
votes
3 answers

Problem mounting GPT disk partition

I am trying to mount a partition on a GPT disk, but I get the following error: $ sudo mount -t ext4 /dev/sda1 disk/ mount: special device /dev/sda1 does not exist Looking at dmesg, I don't see any errors on /dev/sda: $ dmesg | grep sda [ …
Hamza
  • 347
  • 2
  • 6
  • 16
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
10
votes
3 answers

Undoing wipefs --all --force /dev/sda? /dev/sda

OS: Debian Bullseye, uname -a: Linux backup-server 5.10.0-5-amd64 #1 SMP Debian 5.10.24-1 (2021-03-19) x86_64 GNU/Linux I am looking for a way of undoing this wipefs command: wipefs --all --force /dev/sda? /dev/sda while the former structure…
Vlastimil Burián
  • 27,586
  • 56
  • 179
  • 309
10
votes
4 answers

Expanding a disk with a GPT table

I'm running a CentOS 7 VM, where I have a second disk (sdb), which I need to expand often. After expanding the disk and I open 'parted' so that I can create a new partition, the following error message is returned: Error: The backup GPT table is…
Alex Y
  • 101
  • 1
  • 1
  • 4
1
2 3
16 17