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