Questions tagged [partition-table]
a table describing partitions on a disk
207 questions
0
votes
2
answers
103
views
Where does the "Physical size" information come from?
I have an embedded Linux device (not a Raspberry Pi) which has two partitions on an eMMC drive. I have used a vendor-provided tool to copy these two partitions onto a USB drive whose size roughly ...
1
vote
1
answer
870
views
How to recover an EXT4 partition from a failed journal
I have a virtual disk that is 86T in size with only 41% used. Th
I have an 86T second drive connected to my virtual machine(VM) as /dev/vdb1. The volume is fine, but when I attempt to mount the ext4 ...
1
vote
1
answer
442
views
can msdos partition be located past the 2TB point on a disk?
I have a 5 tb usb disk I use to copy a rhel-8.10.iso file to in order to install Linux.
In doing so the copy of that iso to /dev/sde creates an msdos partition table. And it creates 2 partitions.
I ...
1
vote
2
answers
2k
views
Creating disk image with msdos partition table and fat32
I want to create a disk image file to include into my unittests. This disk file should contain a few files afterwards I want to read. When I create a copy of a SD card or a USB stick with dd the disk ...
0
votes
1
answer
1k
views
Reboot into `initramfs` after altering partition table
Problem Overview
I recently upgraded my remote server contract with IONOS, increasing my hard drive space from 8GB to 80GB. I have an Ubuntu OS running bash.
I then went about extending my working ...
1
vote
2
answers
524
views
How to make Linux read partition table in a partition?
I have a (GPT-partitioned) disk, for example /dev/sda.
/dev/sda8 is a partition on that disk. I used the cfdisk utility to create a GPT table with few partitions in /dev/sda8. I expected these ...
0
votes
1
answer
489
views
"Bad Jump in FAT partition" and "Bad number of sectors per cluster" right before ext4 offset
TL;DR partition table (?) potentially messed up by windows disk management on drive containing both NTFS data partition and EXT4 filesystem. Fairly certain zero or almost zero data was lost. testdisk ...
1
vote
0
answers
174
views
How do I write a kernel driver for a custom partition table format?
I have a number of hard disks that use a proprietary partitioning system. The disks don't contain partition tables themselves, but each have a known number of partitions at fixed positions with fixed ...
2
votes
1
answer
3k
views
Does `wipefs` require --force to erase the partition table on a disk?
The wipefs man page says that:
-f, --force
Force erasure, even if the filesystem is mounted. This is required in order to erase a partition-table signature on a block device.
So this means that ...
0
votes
1
answer
86
views
Regain full disk space after copying a small image file to a large USB device
I'm copying an image file (size: 2GB) to an USB disk on /dev/sda (size: 2TB) using dd:
sudo dd if=2023-05-03-raspios-bullseye-arm64-lite.img of=/dev/sda bs=4M status=progress conv=fdatasync
After dd, ...
8
votes
1
answer
1k
views
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 ...
1
vote
1
answer
424
views
Why are three large partitions created when installing Fedora with the encrypted disk option?
I've just installed Fedora 37 on a 2TB SSD, and see this partition table:
I understand the role of the EFI partition, but why is it so large? 0.6 gigs seems excessive.
What is the role of the second ...
2
votes
1
answer
426
views
Dangerous to create partitions in unallocated space on the same disk as the running Linux system?
For context, I have a Fedora KDE installation whose partitions take up half my SSD. The other half I left unallocated when I installed Linux.
Although I'm aware that it's dangerous to attempt to ...
0
votes
0
answers
256
views
PostgreSQL: indexes and partitions
I have a PostgreSQL database and I noticed a weird behaviour while working with indexes and partitions. The engine version is 10.21.
Now, I have a table with this structure:
guid varchar(50) PK
guid_a ...
2
votes
1
answer
287
views
How to replace linux distro ISO on bootable USB keeping extra data partition intact and accessible?
USB sticks are getting larger. I'd like to store data in addition to having USB bootable. And I know how: 1. write ISO to USB stick 2. Add partition via Gnome-disks (both GUI).
Now I want to be able ...
4
votes
2
answers
9k
views
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 (...
1
vote
1
answer
377
views
What are all these /etc/mtab filesystem types? How did they get mounted?
I'm learning about partitioning disks for different server applications, and was exploring mtab to see what sort of partitioning scheme is set up. I'm seeing filesystems that aren't described in /etc/...
2
votes
0
answers
320
views
How to find deleted partition
I have some partition table with three partitions. I deleted the third partition with fdisk and next I created new partition on the same place with the same "first and last sectors". How can ...
2
votes
1
answer
2k
views
Why does Parted mkpart ask for file system type, if I can later format with another file system? [duplicate]
What I Did
I attach an HDD, lsblk -S shows this drive as sdc
I use sudo parted /dev/sdc/ to start parted against sdc
I create a partition table as: mklabel gpt
I make a partition: mkpart my-cool-...
0
votes
1
answer
45
views
Is it possible for data to be persisted when redeploying a parition table to a previously used disk?
I am currently working on a project which uses a custom Android operating system, the project requires going back and forth between different versions of this OS (android 5 and android 9 respectively)....
0
votes
3
answers
2k
views
Define partitions to install Linux but considering Security and Administration aspects/concerns
Scenario: for simplicity - consider that exists a hard disk of 500GB to only install Linux (for example Ubuntu, Debian or Fedora) - and if exists a hard disk of 750GB or 1TB then 500GB are dedicated ...
7
votes
1
answer
12k
views
How to update/refresh changed partlabels as reported by lsblk?
On Linux, the command lsblk -o partlabel will display the partlabel for block devices.
I have used gdisk to change a partlabel.
After the change, lsblk is still reporting the old value of the ...
0
votes
0
answers
91
views
Recovering data from a drive on which a partition table has been created
I have 2 drives on my computer, and was running out of space in one due to 2 OS on the one with smaller capacity. I was trying to partition the larger one(which has data on it), and looking up ...
2
votes
1
answer
4k
views
manipulating the protective MBR on a GPT disk
I would like to add an empty partition of type 0x00 to the beginning of the protective MBR of a GPT-formatted disk. I've found a way to do this, but the method relies on fdisk enhancements not ...
0
votes
2
answers
3k
views
Partitions not visible while dual booting Kali with Windows 11 with GPT disk
While trying to install Kali Linux as a secondary OS with Windows 11(primary OS), the partition created for Kali is not visible during the Graphical Install.
The hard drive I'm trying to install kali ...