Questions tagged [partition-table]
a table describing partitions on a disk
199
questions
0
votes
1
answer
26
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 ...
0
votes
1
answer
19
views
Copying a partition in GParted results in larger partition?
I copy a 300 GB partition using GParted, and paste it onto an existing 500 GB partition. After two hours of transfer it says it's attempting to resize the newly pasted partition, and immediately fails ...
0
votes
0
answers
46
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 ...
0
votes
2
answers
46
views
fdisk shows partitions type Linux and dos on the same partitions
I have created a partition on my disk like this:
root@vps-90446fc7:~# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.37.2).
Changes will remain in memory only, until you decide to write them.
Be ...
1
vote
1
answer
39
views
'wipefs' man page doesn't make sense
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
111
views
How can you give a disk and a new UUID?
I just used sfdisk to clone my partition table to a new disk,
sudo sfdisk -d /dev/nvme0n1 > /tmp/part.txt
sudo sfdisk /dev/nvme1n1 < /tmp/part.txt
However, now both drives have the same uuid. ...
0
votes
0
answers
60
views
USB-Flash-drive no longer enumerated by system, how to repair
One of my memory sticks has stopped being usable. It's not that old, and has a fairly low R/W life used. But any attempt to format or write to it seems impossible now.
When inserted it creates a new ...
0
votes
1
answer
28
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, ...
0
votes
0
answers
48
views
I altered the partition table (resized the root and created a new partition and formatted it) but can't log into my arch system anymore
Yesterday, I had an idea of having two root partitions for my arch system, one which would contain packages and system files and another one to store my personal files (music, videos, etc).
With that ...
7
votes
1
answer
469
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 ...
0
votes
0
answers
16
views
How can cfdisk end of sector values be used to calculate the partition sizes?
From cfdisk I am able to get statistics about the disks, namely the end sector of each of the first through 3rd partitions and the end of the free space. I am trying to calculate the partition sizes, ...
0
votes
1
answer
198
views
How do you erase the partition TABLE of a drive?
New(ish) to Linux, not new to hardware.
Got a new NAS which is to be hosted via linux. Before that I'm faffing about with the hardware, and things I will never get to do otherwise. Live distros are so ...
1
vote
1
answer
140
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 ...
0
votes
2
answers
83
views
Does erasing the MBR will touch the partition table?
If I run this dd command to blank the first bytes of a MBR, will it have an effect on the current partition table of this disk (or just on grub)? Will the partitions still be recognized?
dd if=/dev/...
1
vote
1
answer
103
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
1
answer
159
views
What's the small 1M partition that goes before the EFI partition?
I'm seeing that all my EFI disks have a 1M partition that goes just before the the EFI partition:
Device Start End Sectors Size Type
/dev/sda1 34 2047 2014 1007K ...
0
votes
0
answers
95
views
How can I backup and reconstruct partitioning, LUKS, and LVM scheme?
I have a server which I've already set up periodic remote rsync -aHAXS backups of the files in the /boot partition, / root logical volume, and /home logical volume. My next concern is if my physical ...
0
votes
0
answers
22
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 ...
0
votes
0
answers
182
views
Which partition tables (BSD, SUN, SGI/IRIX, Apple, etc.) support booting from PC BIOS (x86)
GNU/Linux supports reading from disks with a wide variety of partition tables. Even GNU fdisk supports SGI/IRIX, Sun, and BSD partition tables in addition to the standard DOS and GPT partition tables. ...
2
votes
1
answer
89
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 ...
0
votes
1
answer
180
views
Can I create a partition table on a bare drive with an existing filesystem?
I've inherited a machine with an ext4 filesystem on a drive with no partitions (and nothing else fancy, no LVM, etc.).
Is it possible to create a partition table on this drive and preserve the ...
4
votes
2
answers
3k
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 (...
2
votes
0
answers
309
views
How are partition numbers (sda1, sda2, sda3, ...) determined?
In my experience, partition numbers have nothing to do with the physical ordering on the disk. And a newly created partition tends to have a larger number.
How are partition numbers determined? Are ...
1
vote
1
answer
192
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/...
0
votes
2
answers
29
views
Restoring filesystem of an extended root partition
I have a Debian/Windows 10 dual boot with a shared partition in between and I tried to extend my Linux root partition because I was running out of space.
I made some space but splitting the SHARED ...
2
votes
0
answers
181
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 ...
0
votes
1
answer
422
views
Problem creating a disk image of an SD card
I have built a custom image of Armbian with a partition size of 3.1 GB, and I am now finished working with it. It is currently written to a bootable 64 GB SD card which is using a GUID partition table ...
1
vote
1
answer
521
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
68
views
Do MBR partition numbers need to be contiguous?
I am partitioning an external 1TB HDD for a small embedded Linux system. I want to encrypt the swap partition. According to the cryptsetep FAQ, you need to use kernel device names (/dev/sda, etc) in /...
0
votes
1
answer
31
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
0
answers
67
views
How to restore USB memory stick partition
I have a USB memory stick which I cannot mount because it appears that it has no partition.
When I plug it in and run 'lsblk' command:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 1 14....
0
votes
3
answers
845
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 ...
2
votes
1
answer
1k
views
Does Coreboot/SeaBIOS support GPT partition table?
Few days ago, I flashed my x230 with coreboot with this tutorial.
Now, while I was installing Funtoo using its GPT-Partitioning guide (not using MBR-Partitioning),
I got following error:
EFI ...
3
votes
1
answer
5k
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
2
answers
1k
views
How do I resize root partition with UEFI
Yesterday, a message poped up in Debian, saying that my root partition is full (0 MB free) after I copied a new software under /opt. So I moved the folder back to another partition to temporarily fix ...
0
votes
0
answers
39
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 ...
0
votes
1
answer
124
views
SSD doesn't respond to anything after trying to reformat broken NTFS on it
A week ago or so my windows 10 completely died and took my windows apps partition with it. I was however able to access all data from within my linux, so I did what any person would do and copied any ...
0
votes
1
answer
2k
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
1
answer
110
views
resize /dev/sda8 to add 40GB
I have a question regarding the enlargement of a partition without LVM.
I have already read through some things how to proceed here, but I am still unsure, so I ask the question myself.
I have /dev/...
0
votes
1
answer
1k
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 ...
0
votes
1
answer
103
views
What is the purpose of partition type "Linux plaintext"?
While using fdisk, I was looking through the list of partition types and noticed one that I guess I hadn't before. Hex code 88, "Linux Plaintext". I searched around but couldn't find ...
0
votes
1
answer
432
views
Change the file system of a partition without deleting its content
I have a 2tb hard drive containing gpt and a single 2tb partition with ext4 file system. The partition has one 1.5tb file inside it. I want to change the type of file system of this partition from ...
0
votes
1
answer
562
views
Is there a way to allow nested partition tables?
I'm looking to do something along the lines of
sudo fdisk /dev/sdb # create 2 partitions
sudo fdisk /dev/sdb1 # create 2 more
and end up with something along the lines of
[daffy@daffydesk ~]$ lsblk /...
0
votes
1
answer
101
views
No partition table on volume created from Amazon Linux 2 AMI's snapshot
I have created a new AMI using Amazon Linux 2 (AL2) as source image using packer.
Now I am trying create vhd of it and transfer to Azure Image.
We have been doing this for Centos7 AMI successfully, ...
2
votes
2
answers
225
views
Partitions /dev/loopXX
While I was checking my disk space today with df -h I noticed all these /dev/loopXX partitions which I don't know what they really are.
What are them? Should I keep it?
Thank you.
0
votes
0
answers
412
views
Fdisk showing wrong SD card size
So I've been formatting and reformatting a couple SD cards as I'm running some tests and I need to reformat pretty often however every time I plug a different card in fdisk reports the old cards ...
2
votes
1
answer
2k
views
"will not make a filesystem here!"
Trying to format this LV /dev/mapper/nvmeVg-var which is not mounted. See findmnt below.
mkfs.ext3 /dev/mapper/nvmeVg-var
mke2fs 1.45.6 (20-Mar-2020)
/dev/mapper/nvmeVg-var contains a ext4 file ...
2
votes
1
answer
3k
views
Partition does not start on physical sector boundary. Partition table entries are not in disk order
I am a new Manjaro user, my 1TB hard disk is showing two overlapped partitions, its shows two more partitions at the end that I don't recognize. I can't delete it using KDE partition manager. How do I ...
0
votes
0
answers
218
views
Partition table for a 4TB hard disk when cloning a hard disk with a msdos table
Using Ubuntu 18.04 LTS.
I replaced the bootable internal hard disk in a desktop computer with a brand-new 2TB hard disk. I could transfer the partition table and all data from the previous hard disk ...
2
votes
1
answer
307
views
Unable to mount HDD and concerns over the partition setup
Final Edit
A quick note to say thanks for the comments, I certainly learned a lot. Unfortunately, having decided to return the HDD they tested it themselves and concluded that the device was faulty.
I ...