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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 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 ...
Antonio Bonifati 'Farmboy''s user avatar
0 votes
0 answers
100 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 ...
Estatistics's user avatar
3 votes
1 answer
189 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 ...
Beta Carotin's user avatar
0 votes
1 answer
119 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 ...
Anton Gomes's user avatar
0 votes
1 answer
963 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 ...
molko's user avatar
  • 1
0 votes
1 answer
45 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: ...
Piyush B's user avatar
  • 131
0 votes
0 answers
852 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 ...
Grant Peltier's user avatar
0 votes
0 answers
43 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) ...
Nilabja Saha's user avatar
0 votes
0 answers
100 views

linux + extend (grow) root file systems without downtime on RHEL production machines

I want to share the following procedure that we did on lab (RHEL 7.2 machine) in order to increase The root file system (XFS filesystem) from 130G to 150G Details from VM RHEL 7.2 machine are df -h / ...
King David's user avatar
0 votes
1 answer
48 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 ...
Arvind Gupta's user avatar
0 votes
1 answer
769 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 ...
Tango's user avatar
  • 147
0 votes
0 answers
64 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 ...
StiglCZ's user avatar
0 votes
1 answer
40 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, ...
Richard Gomes's user avatar
2 votes
1 answer
744 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 ...
Barné Lighthead's user avatar
1 vote
2 answers
5k 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 ...
ntripod's user avatar
  • 11
2 votes
0 answers
2k views

linux. extend partition space with unallocated space BEFORE it

I have a dual boot (win + ubuntu). How I can extend the disk space of /dev/nvme0n1p6 (Ubuntu, is a partition of the current OS) with preceding free space? I tried to do it with GParted but the right ...
Давид Шико's user avatar
0 votes
1 answer
450 views

Cloning a 2 TB disk with dos label to a 4 TB one with gpt label

Hello everybody out there using Linux, Cloning disk using dd usually works fine for me, but I ran into troubles when cloning a 2 TB disk to a 4 TB one: the dos label would need to be changed to a gpt ...
NicolasBourbaki's user avatar
0 votes
1 answer
82 views

ubuntu - use a disk without paritioning it?

i added a hard disk to my ubuntu install today. i previously had 2 hard disks. i added a 3rd today. The 3rd harddisk is sdc running lsblk it looks like sda 8:0 0 35G 0 disk ├─sda1 8:1 ...
w--'s user avatar
  • 1,053
0 votes
0 answers
14 views

Mount a detected but not listed in disks list SD card [duplicate]

My problem is a bit complicated to describe knowing that I'm not really a passionate about partitioning, but here's what I'm trying to do, What I tried and what doesn't work : Goal My goal is to ...
Kyrela's user avatar
  • 1
1 vote
1 answer
1k views

LVM: Problems in adding disk to an existing Logical volume

I have a disk under a Logical Volume. $ lvdisplay --- Logical volume --- LV Path /dev/vg_prod/lv_prod LV Name lv_prod VG Name vg_prod LV UUID ...
Muhammad Tauseef's user avatar
0 votes
1 answer
308 views

linux + how to extend sdd1 partition based on that sdd disk have enough space

We have rhel server 7.2 version ( VM machine ) with sdd disk sdd disk have parted partition sdd1 , and our goal is to increase the sdd1 partition to 10g from current 1K size From lsblk sdd ...
sheffadmin's user avatar
0 votes
0 answers
141 views

How to enlargen a specific partition in Centos7 with several partitions

My /home directory quickly runs out of disk space, so I want to expand it from 32GB to 64GB. [me@centos7 ~]$ df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 7....
hermit.crab's user avatar
0 votes
0 answers
577 views

Clone/Mirror Proxmox Drive into Another Proxmox Drive that uses GPT

A Proxmox VM (Xpenology DSM) currently has a 4 TB virtual hard disk that has the wrong partition table msdos. Instead, one with GPT should be used (to be able to resize it larger than 2 TB). How can ...
Nyxynyx's user avatar
  • 375
1 vote
1 answer
386 views

How come I can't write to the last byte of the the last block?

I was doing some tests by writing random patterns of data at a block size of 512 bytes (the size of blocks on my drive) and dd fails at the last block saying that the device ran out of space. I was ...
Myronaz's user avatar
  • 13
0 votes
1 answer
756 views

Unable to Mount HDD Removed from NAS & Connected to Ubuntu via USB-SATA Adapter

I am trying to access data from a 8TB HDD that is removed from a non-functining QNAP NAS device. The HDD is connected to an Ubuntu 20.04 machine using a USB3-SATA adapter. When the HDD is connected to ...
Nyxynyx's user avatar
  • 375
0 votes
0 answers
35 views

Is this USB flash disk dead ? Can't write and reads only zeroes [NOT DUPLICATE - READ IN FULL] [duplicate]

This is an old flash disk that I have not used in a while. It was a small drive I was planning to use for TinyCore Linux. I plug it in, and it does not show up in KDE Partition Manager. I query lsblk, ...
An Ant's user avatar
  • 77
1 vote
1 answer
494 views

Does HP Proliant ML110 Gen9 Support SAS DISK

so i did Buy Proliant ML110 Gen 9 That have Dynamic Smart Array B140i Raid with inside in the first look the Server has 4 Disk port in the front that can connect to SAS Disk so i did buy 2 SAS disk ...
Killua Zoldyck DK's user avatar
1 vote
1 answer
309 views

How to wipe Chrome OS partition from Dual Booted Acer c720

Ok, I have a dualbooted Acer c720, with Chrome OS and Gallium OS. Gallium OS supports steam. I have been able to use blender on the Gallium OS partition. However, I want more space for projects. Is ...
bean delivery man's user avatar
0 votes
1 answer
2k views

Resized Windows partition (using cfdisk) is treated as RAW by Windows

In an attempt to make room for my Linux installation, I did the following: Booted using a live Linux USB Used cfdisk to Resize the Windows partition Selected Write to save the new partition size ...
Farzad's user avatar
  • 155
0 votes
1 answer
756 views

fdisk partition "n megabytes" less than total physical size

Is there a way to use fdisk to define a new partition that is e.g. "100MB less" than the maximum possible size? Background: Due to deviation between nominal disk size and physical disk size, ...
mkk's user avatar
  • 103
0 votes
0 answers
181 views

Can I recover data from deleted hard drive partitions on a Windows 95-98 PC? [duplicate]

I have some old Windows 95-98 era PCs that I would like to recover data from if possible. They have all had the hard drive partitions deleted using 'fdisk' and have not been used since. Would it be ...
natenaten's user avatar
0 votes
1 answer
1k views

How can I extend / dev / sda6 is it possible?

I need to extend / dev / sda6 on other occasions and used the following guide (https://www.miarec.com/doc/administration-guide/doc1012), adding a new disk to the vm, but apparently it is not ...
Antonio Lefimil's user avatar
0 votes
0 answers
643 views

/dev/sdc1 not showing under /dev/sdc for my pendrive

I am trying to connect 16 DB kingston data traveller to my Ubuntu machine. This pendrive is not being detected in other machines. Thats why I tried to check it. When I issue a lsblk command, I am ...
Jyothish Bhaskaran's user avatar
0 votes
1 answer
132 views

Does Windows remove files with invalid characters within name during disk repair?

I have some files on external HDD whose names contain ':'. These files work fine on Ubuntu but fail to open in Windows. Recently I tried doing a diskcheck on my external HDD and it poped-up that it ...
Arindam Ghosh's user avatar
0 votes
0 answers
228 views

HDD failure and format error, shows 4.1 GB instead of 1.86 TB

I have a Seagate 2.0 TB HDD. I had Ubuntu installed on it and grub on my SSD. I removed the cable when trying to change it. After that when I plugged it in grub showed the black error screen with grub&...
csgeek's user avatar
  • 1
0 votes
1 answer
139 views

How to rescue USB drives?

A dd command on CentOS 7 failed, and now my USB disk (/dev/sdf) cannot be written to. These are the outputs I get: $ lsblk /dev/sdf lsblk: /dev/sdf: not a block device $ lsblk NAME MAJ:MIN ...
boardrider's user avatar
  • 1,073
0 votes
2 answers
1k views

How to fix fdisk wrong partitions

I'm running dual boot of Linux Mint 19.2 Tina and Windows 10. I wanted to format my usb flash drive but when I open it with fdisk /dev/sdc and then type p i get shown partitions of my computer file ...
Spetto's user avatar
  • 3
0 votes
0 answers
50 views

Weird disk behaviour

Today I faced something completely strange. I run Windows 10 on a machine. On this machine I wanted to erase the internal HDD(not C drive) where just some data lays around. I booted into sparky linux ...
schgab's user avatar
  • 105
0 votes
0 answers
154 views

Deleting Files and directories on a Solid State Drive (fdisk, dd, rm)

I have been reading for a while on how rm, fdisk and dd work. I wasn't able to fully understand their source code however. Let's assume I would like to delete my /dev/nvme0n1p3 partition and the files ...
user171558's user avatar
4 votes
3 answers
5k views

increased size of disk in a Virtual machine, but gdisk doesn't want to use the new space

I have a VM with a virtual disk (visible as /dev/sdb) with a size of 10G The admin increased the size of the virtualdisk to 60G. I rebooted the machine and see now, that the disk is bigger. root@...
gelonida's user avatar
  • 315
0 votes
0 answers
888 views

Geometry of USB Memory - heads per cylinder is 124

i have a USB Stick, and this stick has some problems, how to set up for it proper geometry TestDisk 7.0, Data Recovery Utility, April 2015 Christophe GRENIER <[email protected]> http://www....
hkjz's user avatar
  • 1
1 vote
0 answers
52 views

Why BlockDeviceMapping does not create UUID?

In Linux machines, block devices have UUID Below is the CloudFormation template: "BlockDeviceMappings": [ { "DeviceName" : "/dev/sdf", "Ebs" : { ...
overexchange's user avatar
1 vote
0 answers
238 views

How to create a partition with gdsik without naming it?

I'm currently looking for alternatives to graphical programs for partitioning my hard drive. So I'm searching for an easy command line tool for it. Since my hard drive has a GPT partition table the ...
Nicryc's user avatar
  • 697
0 votes
1 answer
675 views

Understanding fdisk -l output on a virtual machine

I installed lubuntu on VirtualBox and allocated 10Gb fixed storage. Later, I made a copy of the machine and allocated dynamic storage of 20GB. I checked fdisk to see if it worked, but I don't ...
spheroid's user avatar
0 votes
0 answers
856 views

“No valid partition table was found on this device.” + “Error: Can't have a partition outside the disk!” + fdisk reads “7.3T” Size; How do I fix this?

Distro: Netrunner Blackbird (Debian) I/O: Sata to USB cable KDE Parition Editor: "No valid partition table was found on this device." me@computer:~$ sudo parted -l Model: ATA LITEONIT LCT-128 (scsi)...
Steven L's user avatar
0 votes
0 answers
20 views

Partition drive at runtime via commandline?

I am currently trying to write a bash script that when executed creates a new partition that is 100mb in size. However, I want to use the free space on /dev/sda1 - the parition on which the system is ...
Kyu96's user avatar
  • 127
1 vote
1 answer
3k views

Why do Windows and Linux leave 1MiB unused before first partition? [duplicate]

When partitioning from scratch a USB Flash drive (8GB or larger) under Windows (diskpart) or Linux (gparted, fdisk) as Master Boot Record with a single partition, that partition usually starts at byte ...
fgrieu's user avatar
  • 766
0 votes
1 answer
190 views

Why fdisk adds half kibibyte sometimes?

I'm trying to partition a 1440 KiB floppy disk image using fdisk (util-linux, v2.31.1). However, the tool is seemingly adding a 512-byte sector, no matter what units I use, and I can't tell why. ...
NiNEngine's user avatar
1 vote
3 answers
854 views

3TB Western Digital Hard drive is showing only 2TB

I do not believe this to be an issue with formatting. Both Linux and Windows (64bit) see it as 2TB drive. However it is supposed to be a 3TB drive. It is in an enclosure, and I am wondering if perhaps ...
Duxa's user avatar
  • 134
0 votes
0 answers
367 views

Fdisk doesn't recognize Macbook's file system

I need to mirror a MacBook, which was functioning properly. But when I ran fdisk -l, I got this: Disk /dev/sda: 113 GiB, 121332826112 bytes, 236978176 sectors Units: sectors of 1 * 512 = 512 bytes ...
André Cesarino's user avatar