Questions tagged [partition-table]

a table describing partitions on a disk

Common implementations are GPT or (BSD|Solaris) disk labels.

197 questions
92
votes
2 answers

What are the differences between the various partition tables?

When I am looking to create a new partition table, I have the following options: aix amiga bsd dvh gpt mac msdos pc98 sun loop The default in gparted appears to be msdos which I guess is an 'MBR' partition table. However gpt is more recent, but…
user168419
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
7
votes
1 answer

Is it important to delete GPT/MBR labels before reformatting/repartitioning?

I've seen some disk formatting/partitioning discussions that mention destroying existing GPT/MBR data structures as a first step: sgdisk --zap-all /dev/nvme0n1 I wasn't previously aware of this, and when I've set up a disk, I've generally…
ivan
  • 1,858
  • 2
  • 19
  • 37
7
votes
2 answers

Recover deleted LUKS partition

I have(had) the following setup: Full disk encryption with LUKS and a separately encrypted /home partition. Made the mistake to delete my /root but caught early enough so only changes to the partition table where made. Now I'm left with the…
ndp
  • 211
  • 2
  • 9
7
votes
3 answers

Using d-i partman recipe strings?

I want to automatically partition all of my workstations in the same way: First partition is a bootable 1GB ext4 /boot partition Second partition is a 2GB swap partition Third partition is an ext4 / partition that takes up whatever is left All…
6
votes
1 answer

fdisk: partition contains a ntfs signature. remove it?

I'm installing NixOs on a ThinkPad X220. Though I'm very comfortable in the shell, it's the first time I've set up my own system, and I'm running into some unknowns while trying to partition the hard drive with fdisk. The laptop currently has…
ivan
  • 1,858
  • 2
  • 19
  • 37
6
votes
3 answers

Copy disc layout and partitions to another drive

I'm working on an application, where I need to create drives with always the exact same partition layout. My initial thought was to once dump the partition table of the original drive with sfdisk. sfdisk -d /dev/sdX > parttable And then apply it to…
KevKosDev
  • 207
  • 1
  • 3
  • 7
6
votes
2 answers

Check if partitions are aligned properly for performance?

I just created a GPT disk label for the entire space on my hard disk (/dev/sda) like so: # parted (parted) select /dev/sda (parted) mklabel gpt Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk will be lost.…
its_me
  • 13,709
  • 23
  • 54
  • 52
5
votes
4 answers

How to add Ubuntu to Arch Linux grub (dual boot) (UEFI)

I want to have Dual Boot, the problem is that if I install Arch Linux after Ubuntu I don't know how to make that Arch Linux detect Ubuntu. I partitioned Ubuntu in this way In Arch I only create root partition, so the result is this Then I did…
Mitsworth SCZD
  • 241
  • 1
  • 4
  • 10
5
votes
0 answers

Cannot mount, read, write, or format SD Card

I can read from my micro-sd card when it is in "lock" position but things get very weird when I try "unlock" it: there is no way I can fsck it, nor mount it, nor read it, nor.. format it! I need to format it, what can I do? Here is my gparted…
iago-lito
  • 2,581
  • 4
  • 20
  • 35
5
votes
1 answer

Cannot mount partition made on loop device (which is pointing to a file)

Goal I'm trying to make a harddisk image from scratch using a file. This includes MBR, partition table, number of partitions, etc. I cannot for the life of me get Linux to mount the partitions I make though. edit: See end of question for update -…
5
votes
1 answer

Where is partitions in MBR?

I found lot of examples of MBR records on various systems, and they all have same structure, for example - as here. So - first 512 bytes must have a Code area, Disc signature and Table of partitions. My disk layout is: $ lsblk …
setevoy
  • 894
  • 4
  • 15
  • 28
4
votes
2 answers

Does Debian 11.5 really need 500MB+ partition for EFI?

I have installed Debian 11.5 on thin client. It has relatively small 16GB eMMC memory for storage. During installation partitioner in "standard" mode created 3 partitions: EFI (508MB), root (14.2GB) and swap (1GB). After installation when I check…
Kamil
  • 719
  • 1
  • 8
  • 24
4
votes
1 answer

Is there a scriptable way to identify the nth partition of a disk?

Suppose I have a disk located at /dev/DISK_NAME. I'm curious if there is a command to find the nth partition of this disk. It seems like this sort of thing should be possible with lsblk. The best I can come up with is: lsblk -nlpo NAME,TYPE…
Brian Fitzpatrick
  • 2,755
  • 3
  • 23
  • 43
4
votes
1 answer

repair gpt after cloning to smaller drive

I had a gpt-partitioned drive, with unpartitioned space at the end, I used dd to clone it to another smaller drive. Unfortunately Linux won't see the partitions on the cloned drive. My understanding is that GPT has two copies of the partition table,…
plugwash
  • 4,242
  • 1
  • 18
  • 32
1
2 3
13 14