Skip to main content

Questions tagged [partition-table]

a table describing partitions on a disk

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

SSD partitioning on Linux (data loss)

I wanted to create new partition on SSD (i need it to create disk image using clonezilla). I started from creating while I'm on ssd boot (means the system is running on ssd. Then i got message: ssd ...
Serafym's user avatar
  • 11
1 vote
1 answer
40 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 ...
kentt's user avatar
  • 11
-1 votes
1 answer
52 views

creating a bootable usb with GPT partition scheme to make use of linux .iso

The rhel-8.10-x86_64-dvd.iso to install from which is 14GB in size. For a usb device (i.e. disk) that would show up in Linux as /dev/sdb for example, doing a cp rhel-8.10-x86_64-dvd.iso /dev/sdb ...
ron's user avatar
  • 7,162
1 vote
1 answer
56 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 ...
ron's user avatar
  • 7,162
0 votes
0 answers
62 views

USB drive is not recognized due to a failed partition formatting

(sorry for my poor English) I created a encrypted partition on my Kingston USB drive (/dev/sda) using VeraCrypt. I was trying to format the partition using GNOME Disk Utility after mounted the ...
Ezra's user avatar
  • 113
0 votes
0 answers
25 views

No partitions visible on external hard drive

I'm trying to rescue data from Linux installation on old laptop. It was dual-booted with windows. I know there is at least 1 ntfs partition and 1 ext4. I can boot Windows on the old laptop, but linux ...
Dekakaruk's user avatar
  • 101
1 vote
2 answers
166 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 ...
Murmi's user avatar
  • 13
0 votes
1 answer
64 views

Ubuntu resize partition in in backward direction

I am using Ubuntu 22.04 LTS in a windows dual boot setup. This is the state of the partitions at the moment. (Windows Screenshot) On my Ubuntu, I have the following df -H ...
inquilabee's user avatar
0 votes
1 answer
279 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 ...
user10709800's user avatar
0 votes
1 answer
85 views

Handle Partition Changes Embedded System

I have to update some outdated embedded systems. But the RAUC Update contains four partitions, while the old systems have only three partitions. The additional Partition is at the start of the disk ...
Cellcon's user avatar
  • 135
0 votes
2 answers
220 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 ...
melonfsck's user avatar
3 votes
3 answers
481 views

How does Linux know there is a MBR partition table?

You might think this question is trivial because an msdos partition table MBR ends with 55 AA (hex). But it's not because disks formatted as FAT32 (with no partition table) end with 55 AA too. I ...
zomega's user avatar
  • 972
0 votes
1 answer
215 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 ...
protoncookie's user avatar
0 votes
1 answer
46 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 ...
Andreas's user avatar
  • 521
1 vote
0 answers
107 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 ...
User's user avatar
  • 111
0 votes
2 answers
667 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 ...
fguillen's user avatar
  • 103
1 vote
1 answer
783 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 ...
EmmaV's user avatar
  • 4,087
0 votes
1 answer
2k 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. ...
Evan Carroll's user avatar
  • 31.7k
0 votes
1 answer
58 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, ...
Wolkenarchitekt's user avatar
0 votes
0 answers
100 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 ...
Asmit Das Choudhury's user avatar
8 votes
1 answer
845 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 ...
ivan's user avatar
  • 1,878
0 votes
1 answer
3k 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 ...
martixy's user avatar
  • 111
1 vote
1 answer
350 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 ...
Dan Dascalescu's user avatar
0 votes
2 answers
141 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/...
Sandburg's user avatar
  • 359
1 vote
1 answer
245 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 ...
legarto's user avatar
  • 13
0 votes
1 answer
420 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 ...
Héctor's user avatar
  • 278
0 votes
0 answers
101 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 ...
Federico Loro's user avatar
0 votes
0 answers
403 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. ...
Alex Cannon's user avatar
2 votes
1 answer
190 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 ...
Martian2020's user avatar
  • 1,219
1 vote
1 answer
435 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 ...
semenko's user avatar
  • 11
4 votes
2 answers
6k 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 (...
Kamil's user avatar
  • 749
2 votes
0 answers
517 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 ...
user356126's user avatar
1 vote
1 answer
288 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/...
Dolly Varden's user avatar
0 votes
2 answers
67 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 ...
Ardakaniz's user avatar
2 votes
0 answers
256 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 ...
Alexander's user avatar
0 votes
1 answer
546 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 ...
Chris Hudlin's user avatar
1 vote
1 answer
1k 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-...
dungarian's user avatar
  • 445
0 votes
1 answer
93 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 /...
bitsmack's user avatar
  • 205
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)....
Garry McKee's user avatar
0 votes
0 answers
208 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....
Roger Mungo's user avatar
0 votes
3 answers
1k 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 ...
Manuel Jordan's user avatar
2 votes
1 answer
2k 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 ...
Garid Z.'s user avatar
  • 552
5 votes
1 answer
9k 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 ...
mpb's user avatar
  • 1,651
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 ...
nkoniishvt's user avatar
0 votes
0 answers
61 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 ...
OhMuzGawd's user avatar
0 votes
1 answer
145 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 ...
Tayou's user avatar
  • 1
0 votes
1 answer
3k 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 ...
user001's user avatar
  • 3,738
0 votes
1 answer
165 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/...
Cyanmodex9's user avatar
0 votes
2 answers
2k 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 ...
ayush7ad6's user avatar
1 vote
1 answer
143 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 ...
deltaray's user avatar
  • 1,387

1
2 3 4 5