Questions tagged [partition-table]

a table describing partitions on a disk

Filter by
Sorted by
Tagged with
8
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....
0
votes
1answer
77 views

Understanding and fixing partition scheme (Fedora28) [closed]

I recently wanted to dual-boot my laptop (Lenovo Yoga 710) running Windows 10 to include Fedora 28. I previously played around with the laptop and ended up messing up my partition scheme. I would like ...
-1
votes
2answers
555 views

How do I elegantly repartition my hard drive? [closed]

My /home partition (/dev/sda7) is running out of space and now I realize I should have put more space in my /home partition instead of my Windows partition (because I don't use Windows very much ...
-1
votes
1answer
30 views

A few questions about partitioning of disks

My storage device has GPT standard for the layout. Wiki says, that each LBA has 512B size of sector. This means, that I have to begin partition at: LBA0+LBA1+LBA2+LBA3 = 512*4 = 2048B or LBA0 to ...
0
votes
0answers
18 views

How to find my lost partition through Ubuntu installation process?

I am trying to install Ubuntu 16.04 but when I choose "other options" and try to format some partitions, my previously sdb5 partition with 250GB space is lost and I can not find it and there is no ...
1
vote
2answers
1k 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 ...
0
votes
1answer
458 views

Delete partition table which resides in kernel memory

I wiped (erased from device) all partitions from a logical volume (lv in LVM). Then I did partprobe -s (and other similar commands: partprobe returned no output, partx said partition: none & ...
-1
votes
1answer
497 views

partition table on a disk partition; how to access?

I've made a TrueOS VM in VirtualBox, using a vmdk that virtualises a physical harddisk partition (sda5) as a complete disk. As a result, I now have a GPT/GUID partition table on that sda5 partition (...
1
vote
1answer
193 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 -...
0
votes
1answer
4k views

Kernel Panic - not syncing: VFS: Unable to mount root fs - LFS

I have created a LFS (linux from scratch). All the files is on a secondary hdd. ie. /dev/sdb There is no partition in that like sdb1 or sdb2. Both root and boot is in the same /dev/sdb . My host ...
0
votes
1answer
65 views

How to conver each GB “manufacturer” RAM to the EXACT MB equivalent gparted uses?

I'm sorry for asking something as elementary, but the information is very confusing and, even when there are ISO recommendations, not everybody follows them. The manufacturer says my laptop has "8GB ...
1
vote
1answer
1k 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 ...
0
votes
2answers
2k views

If I shred /dev/sda, do I delete partitions?

If I am wiping my /dev/sda harddrive, do I need to first repartition it (for example, with GParted), or will shred /dev/sda wipe the partition table too?
1
vote
1answer
143 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?
0
votes
1answer
2k views

gparted not detecting USB drive partitions in Fedora 27 only

I've a 16 GB USB Flash drive with GPT partition table having 6 partition. fdisk and gdisk correctly detecting the partitions. Fedora 27, with mate desktop installed, can correctly mount all partitions ...
1
vote
1answer
110 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 ...
0
votes
2answers
447 views

How to modify an USB stick in order to have a device node as /dev/sda1 instead of /dev/sda?

I have a udev rule for USB sticks with fat32 format. The rule contains such attributes: SUBSYSTEM=="block", KERNEL=="sd?1", ... Normally, it works very well for USB sticks that I tested so far, ...
1
vote
2answers
654 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
1answer
790 views

restoring raid filesystem

I ended up with my 3-disk mdadm array not being able to assemble because each of the disks had corrupted superblocks. I tried to force reassembling the array using mdadm --create This resulted in ...
1
vote
0answers
2k views

Partition not showing when installing Ubuntu

My current OS is Windows 10.I am installing Ubuntu 17.04 from pendrive. When I run Ubuntu in TRY MODE (without installing) then it shows all partitions- sda2,3,4,5; see the screenshot: But when I the ...
4
votes
1answer
16k 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 ...
3
votes
1answer
581 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 ...
0
votes
1answer
61 views

Do I have a problem with my hard drive or software?

I bought a used Thinkpad laptop recently with no operating system installed and have tried running Ubuntu, Mint, Manjaro, Fedora and others on this machine to no avail. I'm able to boot into my live ...
1
vote
1answer
4k views

How to recover LUKS encrypted hard drive?

I was installing windows and I accidentally deleted the 2TB LUKS encrypted hard drive where I store my important things. So after realizing my mistake I immediately rebooted into a live Ubuntu disk ...
0
votes
2answers
3k views

How the disk geometry (C/H/S) was determined on the partition table of flash memory storage?

I'm going to write a disk partition creator program for flash memory removable devices, mostly controlled by SCSI based I/O and accessed with LBA address. For reference, I'm researching the ...
2
votes
4answers
4k 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 ...
0
votes
1answer
1k views

How to fix external HD?

I have an external HD which is divided into two partitions: an exFAT with 700GB and a LUKS partition with 300GB. I was copying from my computer to the luks partition but it got slow and stucked so I ...
0
votes
0answers
436 views

Auto mount attached drives with specified PARTUUID using udev?

I used to do auto-mounting with udev like this: # cat /etc/udev/rules.d/10-aaa.rules KERNEL=="sda1", SUBSYSTEM=="block", RUN+="/etc/mymount.sh" # cat /etc/mymount.sh #!/bin/sh if [ "$ACTION" = "add" ...
0
votes
1answer
867 views

How do I update the partition table on a disk image file after resizing a partition in it?

I'm trying to resize a disk image (Raspbian image) on disk. The trouble is, when I attempt to boot the RaspberryPi from the resized image (after writing to an SD card) I get: Kernel panic - not ...
1
vote
1answer
2k views

Disks not appearing in Debian installer?

I'm working with the latest Debian Stretch netboot. No disks appear in the partition manager. If I go into tty2 and run lspci (lsblk is not available in the Debian installer), the disk doesn't appear ...
4
votes
0answers
2k 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 ...
3
votes
2answers
2k 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 ...
2
votes
1answer
5k 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 ...
0
votes
1answer
35 views

How can I specify how much disk space to use for Linux OS?

I'm currently using the latest version of Kubuntu. My question: How can I specify how much disk space to use for Linux because it seems like it's 8GiB or 16GiB but I want a different amount to be ...
0
votes
1answer
54 views

Why is a Windows partition mounted while Linux is in use?

Since I haven't booted into Windows in over a month and use Linux frequently (without restarting except to boot back into Linux immediately), why did I discover it mounted? If I hadn't been looking ...
0
votes
1answer
492 views

change /dev/sda1 (95% full) to sdb drive [closed]

Here is my problem (windows 7 and Linux). They are supposed to be separate but seems they are not. $ df -h --total Filesystem Size Used Avail Use% Mounted on udev 7.8G 0 7.8G ...
4
votes
3answers
9k 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. ...
1
vote
0answers
505 views

Can't install Mint, failed to create drive

I have been trying to install Linux for almost two weeks now. Tried it with Ubuntu and Mint (I prefer Mint, but the errors are the same). error: The creation of swap space in partions #w of SCS1 (0, ...
4
votes
1answer
1k 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 ...
1
vote
0answers
439 views

Moving encrypted partition from passphrase to random keyfile?

I have a fresh install of Debian using sda2_crypt as swap. When I set it up I used a passphrase, but I would like to move to a random keyfile instead so that it won't prompt to unlock at every boot. ...
5
votes
3answers
7k 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 / ...
2
votes
3answers
1k 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): ...
0
votes
1answer
766 views

Is my partitioning scheme for a 1TB SSD valid?

Can you confirm whether I have set up my partitions correctly on a 1 TB SSD for ubuntu(mate)?
2
votes
1answer
55 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 ...
0
votes
1answer
189 views

RAID1 `mdX` looks O.K. on `/proc/mdstat`, but `blkid` and `fdisk -l` of the members report whacky/faulty values

I created a RAID1 with mdadm --create /dev/mdX --level=mirror --raid-devices=2 /dev/sdb /dev/sdc Then watched the first sync on /proc/mdstat. It says [UU]. So far so good. sd[bc] were supposed to ...
0
votes
1answer
226 views

How to backup a large multi-partition hard-disk towards a small one?

In order to help someone else to learn to get used to Linux -- and get out of the Windows version downward spiral --, I need to install Debian Linux GNOME exclusively on a Laptop. However, for the ...
2
votes
1answer
164 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 ...
5
votes
1answer
288 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. ...
1
vote
1answer
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. ...
2
votes
1answer
75 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 ...