Questions tagged [partition-table]

a table describing partitions on a disk

Filter by
Sorted by
Tagged with
57
votes
2answers
57k views

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' ...
9
votes
1answer
2k views

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....
6
votes
2answers
3k views

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 ...
6
votes
2answers
13k views

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 ...
5
votes
3answers
10k views

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. ...
5
votes
3answers
8k views

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 / ...
5
votes
1answer
311 views

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. ...
4
votes
1answer
452 views

Partition error (Fdisk/Parted)

I was creating a partition using the parted command and i used the mkpart option to create a new primary partition. But i got an unusual error message while doing this. This is my output: (parted) ...
4
votes
1answer
19k views

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 ...
4
votes
2answers
2k views

Redefining partitions from Ubuntu live usb

I created an Ubuntu live usb: $ dd if=/path/to/ubuntu.iso of=/dev/sdb I installed my distro. Now I want to turn my usb back for a normal storing use. $ lsblk sdb 8:16 1 15G 0 disk ├─...
4
votes
0answers
3k views

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 ...
4
votes
1answer
2k views

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 ...
3
votes
1answer
188 views

Is it possible to unmount a partition table?

Is it possible to unmount a partition table so I only see sda and not sda1 and sda2 in /dev? Background: I know a partition table is not mounted. But I did not find a better name for this. I often ...
3
votes
1answer
14k views

How do I expand a file system to fill a partition?

As shown in the picture below, I've created partitions on two 32GB devices: an SD-card, and a flash usb stick. I intended to create file systems using the entire partition in each case, yet somehow I'...
3
votes
1answer
677 views

Can I install using GPT on 32 bit system with bios?

All I search for this says, makes me understand that GPT is related to UEFI, but is it possible to install using GPT disk format, in a 32 bit system using bios (not legacy mode)? I tried installing ...
3
votes
2answers
1k views

FreeBSD complains “invalid partition table”—still boots

I've recently installed FreeBSD 12.1 on my Dell Precision M4800 with ZFS as the root file system. The operating system is installed on an mSATA SSD, a 2½″-HDD is installed, too. On startup, the system ...
3
votes
1answer
409 views

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 ...
3
votes
1answer
1k views

How to change the device label of a USB stick? [duplicate]

I have done some research on this and found this question many times. However, all the answers I have found only address how to change a partition label. I am talking about what is reported by lsblk -...
2
votes
3answers
10k views

How do I access Windows files from Linux Mint (and vice-versa if possible)? I have dual boot

I have dual boot with Windows 10 and Linux Mint 19.1
2
votes
2answers
55 views

Weird partition mess on KDE. Read-only file system

I'm trying to partition a usb stick to NTFS. Before, I've wrongly flashed a windows iso using dd dd if=./AME_2004_\(2020-09-16\).iso of=/dev/sdc status=progress and since then I've been having ...
2
votes
1answer
607 views

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 ...
2
votes
2answers
2k views

How can I create multiple partitions in a LUKS container using a gpt/mbr partition table in the container?

Is it possible to have multiple partitions in a single LUKS or cryptsetup container? If so, how?
2
votes
4answers
5k views

Are there extended partitions in GPT partition table?

Under the MBR model, we could create four primary partitions one of which could an extended partition that's further subdivided into logical partitions. Consider this GPT schematic taking from ...
2
votes
2answers
618 views

alignment of extended partitions

I read an article on aligning file-systems on partitions and this said that: When manipulating MBR disks, be aware that the alignment of extended partitions is unimportant. These partitions hold ...
2
votes
2answers
875 views

How can I manipulate a partition table file without fdisk checking the validity of it?

I'm creating an image in memory (/tmp is a tmpfs): $ dd if=/dev/zero of=/tmp/sdcard.img bs=512 count=3147775 It's supposed to hold a partition table and the first 3 partitions of a device $ losetup ...
2
votes
1answer
443 views

Pop!_OS installer not recognizing partition

I'm trying to configure a dual boot on my PC with Windows 10 and Pop!_OS. So I partitioned my SSD for the Pop!_OS /boot (500 MB) and my HD with 100 GB for / through Windows 10 partition software: But ...
2
votes
2answers
81 views

32GB RAM + 16GB Swap?

I just upgraded my RAM in my Acer Aspire TC-885-ACCFLi5 from 16GB to 32GB. I have 2x1TB SSDs and 1x2TB HDD. I dual-boot between an Arch-based and a Debian-based distros. I use one of my SSDs for my /...
2
votes
1answer
6k views

fdisk: partition table “not in disk order” but “Order is correct already”? and GRUB-legacy issues

For a few days i'm breaking my head over the following: the partition table is reported to be messed up, but it's not. grub-legacy gives problems with some partitions during actual boot-up, but not ...
2
votes
1answer
58 views

Proper setup for multi boot

I would like to run multiple distros and want to verify a few things. I will most likely run Arch, Kali, Ubuntu Studio and Qube (if it's compatible). I will share /home with all, but maybe not with ...
2
votes
3answers
2k views

Create encrypted partition on existing drive with one primary partition while keeping data

fdisk -l: Disk /dev/sda: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): ...
2
votes
1answer
167 views

(Re-)Create GPT from existing partitions on Debian 8

On my Debian 8 server HDD /dev/sda crashed. mdadm informed me via email and I had the disk replaced. After the server was back up I copied over my GPT from using sgdisk -R /dev/sdb /dev/sda. The ...
2
votes
1answer
78 views

How to restore a memory card to its original state as it's showing double it's size when I try to partition it in fdisk?

I have a 2 GB memory card that I used as install media for Fedora 23 Design Suite. I want to reuse the same memory card for another Linux install media so I tried re-partitioning it with fdisk. The ...
2
votes
1answer
181 views

Linux Mint 17.3 doesn't detect Win10 partitions

I've installed Win10 and I want to install Linux Mint 17.3. When I'm installing Linux Mint, it doesn't see Win10 partitions. It's just showing whole disk size. By the way, I'm installing Linux Mint ...
2
votes
0answers
905 views

Cancelled hung GParted operation; didn't 'Force Cancel'; How do I get out without losing data?

In GParted, I was moving a partition over 200mb to the left. However, when it got to 76.13gb of about 330gb done, it stopped (it was stuck at 76.13gb all night). So, I hit cancel (without properly ...
1
vote
2answers
32 views

Rearranging partitions

How can I use the 500Gb of free space? I deleted Windows, and now there is a big gap of space, which I can't use. / Isn't big enough for an update, but I can not move it without un-mounting it, which ...
1
vote
1answer
34 views

meaning of a backtick (`) in front of one partition inside cfdisk

I have a disk with a potentially bad partition (du -sh * in a particular directory gives me Structure needs cleaning). I fired up cfdisk /dev/sda to look at the partitions and what I see is: Disk: /...
1
vote
1answer
4k views

How to use zerofree on a whole disk?

My VirtualBox filesystem looks like: # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 29799396 5467616 22795012 20% / devtmpfs 1929980 0 1929980 0% /...
1
vote
1answer
150 views

is it possible to create partition table inside crypt mapper?

i.e. not fdisk /dev/sda; cryptsetup create xxx /dev/sda1 but vice versa cryptsetup create xxx /dev/sda ; fdisk /dev/mapper/xxx is it allowed?
1
vote
2answers
809 views

Revive HDD after murdering it with dd?

Situation: we have an old, unused laptop that we want to give to my father and mother in law but Windows kept complaining that the hard drive will fail soon, it should be changed. But unfortunately I ...
1
vote
2answers
3k views

Resize partition table using gdisk

I want to change my partition table (using openWRT Linux OS) due to a new flash memory card - 1GB instead of 256MB. For this, I've installed gdisk tool, and ran it using 'gdisk /dev/mmcblk0' command. ...
1
vote
1answer
504 views

linux: Class10 SD card different device and block device size

A have a brand new 16GB class 10 SD card and produce a very strange behavior. After I attached the the card with an USB SD-Card reader, the device appeared as /dev/sdb. I tried to copy a 2GB raw image ...
1
vote
2answers
2k views

Move a LVM partition

I have a dual boot, and I never use Windows, but because I'm nice I wanted at the beginning to cut my hard drive in two equal parts, Windows on the left part, Linux on the right part. But then Linux ...
1
vote
1answer
300 views

How to re-order partitions safely? Safe to use gdisk 'sort' option? Edit fstab + grub.cfg necessary?

I have a system that used to have 3 different Linux flavours running. I no longer wanted one of them so I moved and expanded with gparted and all is well, except I now have /sda3, /sda4, /sda7, /sda8 -...
1
vote
1answer
2k views

What is PARTUUID from blkid when using msdos partition table?

I use msdos partition table, so there is no PARTUUID supported (it's only on GPT partition tables) root@xenial:~# fdisk -l Disk /dev/sda: 200 GiB, 214748364800 bytes, 419430400 sectors Units: sectors ...
1
vote
1answer
307 views

xenix (sysv) file system doesn't support since kernel 2.1.21

xenix filesystem equvalent sysv filesystem, man mount says: Note that,cohorent, sysv and xenix are equvalent and that xenix amd cohorent will be removed at some point in future use sysv instead. ...
1
vote
1answer
49 views

How ID_PART_ENTRY_UUID is computed in GPT?

How the tag ID_PART_ENTRY_UUID is computed? Can I get ID_PART_TABLE_UUID from ID_PART_ENTRY_UUID? I have a disk with GPT partition table and some partitions. I need to identify which partitions are ...
1
vote
2answers
323 views

Accidentally run dd on my main drive

I accidentally run dd if=image.img of=/dev/sda instead of /dev/sdb and sda is my main partition. When i realised i misstyped it i immediately stopped the process with CTRL+C, so it run only for like 2 ...
1
vote
1answer
295 views

How to make openSUSE installer see my boot partition?

I would like to install openSUSE Leap 15.0 next to my old openSUSE (dual boot). But I am stuck at the partitioning stage. I have such partitions: old (unused here) /dev/sda1 (1GB) EFI System ...
1
vote
3answers
48 views

Disk setup on laptop with regular HDD plus SDD [closed]

This is going to be a question about your opinions on setting up a new laptop with both a regular 1TB HDD and a 250G SSD. Let's suppose that... /dev/sda = 1,000 GB HDD (931 TiB) /dev/sdb = 250 GB ...
1
vote
1answer
140 views

Initialise NTFS-Filesystem from old $MFT

I lost a partition table with one partition formatted as NTFS. testdisk and parted don't work (due to another mistake), but I could restore the filesystem tree using RecuperaBit. Unfortunately, this ...