Hot answers tagged

31 votes
Accepted

What is UUID, PARTUUID and PTUUID?

UUID is a filesystem-level UUID, which is retrieved from the filesystem metadata inside the partition. It can only be read if the filesystem type is known and readable. PARTUUID is a partition-table-...
user avatar
  • 70.9k
22 votes
Accepted

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? Yes, the partition table is in the first part of the drive, so writing over it will destroy it. That dd will write over the ...
user avatar
  • 119k
20 votes

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

From what I just found out, it may be unsafe. I was getting this same error *************************************************************** Found invalid GPT and valid MBR; converting MBR to GPT ...
user avatar
20 votes
Accepted

Should I use fdisk for partitioning or GPT aware tools?

MBR, Master Boot Record Wikipedia excerpt; link: A master boot record (MBR) is a special type of boot sector at the very beginning of partitioned computer mass storage devices like fixed disks or ...
user avatar
17 votes

Create partition aligned using parted

The accepted answer by @lik shows how you can specify the preferred alignment. However, parted always uses that alignment for checking the resulting partition, but not always creates partitions with ...
user avatar
15 votes
Accepted

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

You're lucky that wipefs actually prints out the parts it wipes. These, wipefs -a /dev/sda /dev/sda: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54 /dev/sda: 8 bytes were ...
user avatar
  • 119k
14 votes

GPT or MBR: How do I know?

Use $ sudo fdisk -l Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/...
user avatar
  • 2,177
13 votes

BIOS / GPT: do we need a 'boot' flag?

grub itself does not care about boot flags. An EFI System partition is distinguished by its GUID type C12A7328-F81F-11D2-BA4B-00A0C93EC93B, not by a boot flag. Yes, this partition needs to be ...
user avatar
  • 9,825
12 votes

Remove all traces of GPT disk label

If you don't want to fiddle with dd, gdisk can do: $ sudo gdisk /dev/sdb GPT fdisk (gdisk) version 0.8.8 Partition table scan: MBR: protective BSD: not present APM: not present GPT: present ...
user avatar
  • 10.4k
12 votes
Accepted

How to construct a GPT-only partition table on Linux?

TO ADDRESS YOUR EDIT: I didn't notice the edit to your question until just now. As written now, the question is altogether different than when I first answered it. The mirror you describe is not in ...
user avatar
  • 56k
12 votes
Accepted

Why is uEFI firmware unable to access a software RAID 1 /boot/efi partition?

EFI knows how to access FAT and FAT32 filesystems. This is why your EFI boot partition has to be FAT or FAT32 formatted. EFI however does not know how to read a software RAID 1 partition, even if it ...
user avatar
  • 714
12 votes
Accepted

mdadm RAID implementation with GPT partitioning

In this answer, let it be clear that all data will be destroyed on all of the array members (drives), so back it up first! Open terminal and become root (su); if you have sudo enabled, you may also ...
user avatar
11 votes

Create partition aligned using parted

From the Arch Wiki: When creating a partition, parted might warn about improper partition alignment but does not hint about proper alignment. For example: (parted) mkpart primary fat16 0 32M Warning:...
user avatar
10 votes

Remove GPT - Default back to MBR

Use gdisk /dev/sda Note: /dev/sda is in the case of the person who asked this question but change it to your drive name. Once you are inside with gdisk use: x extra functionality (experts ...
user avatar
  • 2,901
10 votes

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

The partition table is stored near the beginning1 of the (logical2) disk device. Overwriting that area with anything (zeroes from /dev/zero or any other data) will replace the partition table with ...
user avatar
  • 7,426
9 votes

Create partition aligned using parted

A minor correction. As I understand it, GPT disks don't have partition types anymore, they are all "primary". Command 'mkpart primary' doesn't create a primary partition like it does on msdos disks, ...
user avatar
  • 91
8 votes

Expanding a disk with a GPT table

That message is normal, if your (virtual) disk magically became larger. GPT partition table is both at the start and at the end of the disk. It's supposed to make it more resilient against failure. ...
user avatar
  • 42.7k
7 votes

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

In my question with a headline of Undoing wipefs, I chose to re-create partitions using the testdisk, it's probably best for you to avoid it as it took a measurable amount of time (not just hitting ...
user avatar
6 votes

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

The fdisk equivalent is gdisk, which is commonly available in the gptfdisk package via package manager. You'd do much better to use it, in my opinion. I don't trust anything *parted, personally - any ...
user avatar
  • 56k
6 votes
Accepted

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

some unix partitioner, are deperecated and GPT partition table is new and some tools doesn't work GPT. GNU parted is new and gparted is GNOME Parted for example: root@debian:/home/mohsen# parted -l ...
user avatar
  • 10.3k
6 votes
Accepted

how to achieve optimal alignment for emmc partition?

Try to align to eMMC erasure block size. It usually equals 0.5, 1, 2, 4, 8 MiB depending on eMMC datasheet. If you find block size alignment too much memory wasting, then stick to the page size, ...
user avatar
6 votes
Accepted

Are there extended partitions in GPT partition table?

128 partitions is the default limit for GPT, and it's probably painful in practice to use half that many... Linux itself originally also had some limitations in its device namespace. For /dev/sdX it ...
user avatar
  • 42.7k
6 votes
Accepted

repair gpt after cloning to smaller drive

gdisk was able to fix the drive. It displayed some warnings, but was able to correctly read the primary copy of the GPT, adjust the location of the secondary GPT, and write the partition table back to ...
user avatar
  • 3,944
5 votes

Cannot install Ubuntu on EFI/GPT scheme

Your problem is with the damaged GPT data. Chances are, though, that this is a symptom of something else -- most likely, you've got a disk that's been configured for motherboard-based software RAID (...
user avatar
5 votes
Accepted

Transforming a disk from MBR to GPT

I created an MBR disk with one partition, filled every single byte on that partition with data, created a SHA1 checksum of the whole partition, converted it to GPT as described in the question, ...
user avatar
  • 377
5 votes
Accepted

How to initialize new disk for UEFI/GPT?

Current util-linux versions of fdisk support GPT, the one I'm looking at here is fdisk from util-linux 2.24.2 (reported via fdisk -v). Run fdisk /dev/whatever. Have a look at the options with m. ...
user avatar
  • 83.1k
5 votes

Should I use fdisk for partitioning or GPT aware tools?

fdisk from linux-utils 2.30.2 now understands GPT tables
user avatar
  • 507
5 votes
Accepted

File system block size differs between different ext4 partitions

As @derobert mentioned in the comment. mkfs.ext4/mke2fs refers to /etc/mke2fs.conf and formats the partition. mke2fs chooses block size based on the partition size if not explicitly mentioned. Read -b ...
user avatar
  • 1,001
4 votes

GPT or MBR: How do I know?

You can use blkid. But you may need to run it as root or as sudo blkid. Examples with output: # blkid /dev/sdc /dev/sdc: PTUUID="92f03b9b-7402-4ad2-8316-08a991c237b3" PTTYPE="gpt" ...
user avatar
  • 3,027
4 votes

Remove GPT - Default back to MBR

GParted did the job for me (tested on Kali Linux USB Live v2.1) just by doing: Device --> Create Partition Tablet --> Type MSDOS Delete all partitions first.
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible