Questions tagged [fdisk]
fdisk is a utility present in many operating systems that perform partitioning on hard drives. There are versions of fdisk for Linux, DOS, Windows, FreeDOS and OS / 2. It handles DOS FAT partitions only.
194
questions
0
votes
1
answer
150
views
why fdisk -l /dev/sdX not show under system the "Linux LVM"
from fdisk -l /dev/sda , we got the following
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 2099199 1048576 83 Linux
/dev/sda2 2099200 ...
0
votes
1
answer
294
views
Resize an OpenBSD *fdisk* partition
I have cloned an OpenBSD qemu image into a physical hard drive and everything works but the fdisk partition dedicated to OpenBSD has the same size it had in the virtual machine and most of the excess ...
0
votes
0
answers
284
views
after power breaks, gparted / fdisk reports that ssd disk has incorrect table. How to fix it
After power breaks, gparted / fdisk reports that ssd disk has incorrect table. How to fix it
In every power break, same thing happens. ssd is off and gdisk says that the table exceeds disk limits. I ...
3
votes
1
answer
253
views
Enlarged partition of remote Debian server, now it does not boot
I have a Debian 10 server (hosted on IONOS).
I increased the size of my SSD from 240 to 400 GB.
Then I wanted to increase the size of the partition to use the space.
I used fdisk to delete and the ...
0
votes
1
answer
161
views
No bootable deive found for Fedora after moving partitions
As a word of caution: I am inexperienced and moved some partitions around when attempting to dual boot windows from Fedora, I didn't take note of what I was doing and so only have my current ...
0
votes
1
answer
2k
views
Remove RAID metadata from HDD so it can be repurposed as a single disk
Previous RAID config was RAID6 in a QNAP NAS, I now want to repurpose the disks as 8 individual disk in different machines.
Each disk appears to have some RAID metadata (superblock) that is stopping ...
0
votes
1
answer
94
views
Ran fdisk on wrong disk which was part of an LVM
I wanted to add space to an LVM so added a Virtual disk to my Ubuntu 20.04 Virtual Machine.
The VM already had 3 disks
/dev/sda 32.2GB # OS Disk
/dev/sdb 537GB # Data Disk, part of the LVM: ...
0
votes
0
answers
1k
views
Can't mount external USB drive. mount: /dev/sdd1 is already mounted or /mnt/sdd busy
I'm trying to mount my external hard drive with this command on my Citrix hypervisor;
mount -o rw /dev/sdd1 /mnt/sdd
But I'm getting this error:
mount: /dev/sdd1 is already mounted or /mnt/sdd busy
...
0
votes
0
answers
64
views
Mapping of Disks and underneath "Primary/Logical" Partition(s) by Unix Terminal Prompt Commands and GRUB Prompt Commands (With GRUB Naming Convention)
In Unix ("Ubuntu/lUbuntu") how do I find mapping for Disk + Logical and/or Primary Partition Information between the "ls" output at "GNU GRUB Bootloader Prompt (GRUB Prompt) ...
0
votes
1
answer
106
views
Expanding the boot drive in a Linux virtual machine without unmounting it
I wanted to know if I can expand the boot drive of a Linux machine (/dev/sda1) without unmounting it or without using any external tools (like bootable live CD or GParted disk).
I basically have a ...
0
votes
1
answer
2k
views
How to copy partition table in sfdisk and edit last partition to use all free space?
I've seen a number of variations on this, but nothing that puts all the parts together. I'm doing this on a Linux system
I know I can use sfdisk /dev/sda <table.txt to copy a partition table. Then ...
0
votes
0
answers
71
views
Broken Partition table
So I have a ssd disk and somehow the GPT partition table got removed.
From that moment, when I plug disk in, disk is still connected (image below) but when I try to access it through diskpart, it's ...
0
votes
1
answer
69
views
How do I format a pendrive quickly, with a simple one-liner, from command line?
How do I repartition and format a pendrive quickly, with a simple one-liner, from command line?
I would like to do something like this:
$ format /dev/sdb
which would destroy the existing partitions, ...
2
votes
1
answer
939
views
Fdisk outputting seemingly absurd CHS values
Take the following fdisk input:
o # Create DOS/MBR partition table.
n # Create new partition.
p # Partition type
1 # Partition ID
2048 # Starting sector
+4M # Ending sector
t # Assign ...
2
votes
2
answers
9k
views
fdisk - Hex codes list - which ones are NTFS or FAT 32 among the below list?
Is it possible to assist me finding fat32 or ntfs codes among the below list?
Command (m for help): t
Selected partition 1
Hex code (type L to list all codes): L
1 EFI System ...