As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [fdisk]

fdisk was a command-line disk partitioning tool in Linux and old versions of Windows/MS-DOS. It is deprecated on Linux by its inability to handle GPT disks. New systems should use diskpart (Windows) or parted (Linux) to partition disks.

Filter by
Sorted by
Tagged with
1 vote
0 answers
15 views

Differences between sfdisk and fdisk on LVM disk extend

In order to semi-automate LVM partitions extend on Debian 11 VMs clones from a template, I feel a bit stuck when I try to script it through sfdisk compared to interactive fdisk. Here's the original ...
motorbass's user avatar
  • 153
0 votes
1 answer
31 views

Can we use fdisk to partition a disk bigger than 2 TB without recompiling the kernel?

Here is my problem. Our operating system is Debian 11. The main hard disk is doing fine. I have a 6TB external volume. If I choose to use parted to format this disk it will entail recompiling the ...
user2338823's user avatar
0 votes
0 answers
18 views

How to remove msdos parition table label completely on Rocky Linux 8.7 [duplicate]

How to remove msdos partitions on Rocky Linux 8.7, while the command fdisk -l provides no partition table label, the command partprobe shows msdos label, which I want to remove # fdisk -l /dev/nvme0n1 ...
Mohamed Abujami's user avatar
0 votes
0 answers
37 views

OS doesn't recognize harddisk at inital startup but after reboot

I have a Debian 11 server with 4 HDD. Two of them are in a Raid 1 array. When I shutdown the server completely and then turn it on again, the boot routine stops because it cannot find the Raid 1 ...
matzr's user avatar
  • 1
0 votes
0 answers
30 views

Shrinking ESXi volume to reclaim unallocated space

We have a number of VMs (VMware ESXi) running Ubuntu. As a result of the installation time 'feature' which only allocates half the amount of the requested space, we have a lot of wasted/unallocated ...
MikeBrom's user avatar
0 votes
0 answers
94 views

how to setup 4 drives on hetzner servers, every two are mirror

I've a new dedicated server from hetzner, will install cPanel on it. 2x HDD SATA 6,0 TB Enterprise 2x SSD M.2 NVMe 512 GB OS is AlmaLinux v8.7.0 how can I set up the installimage so the OS be on the ...
Ashraf Sayed Gomaa's user avatar
0 votes
0 answers
20 views

Extending virtual device and then fdisk now gives unknown physical volume on centos 7

I'm trying to extend space on sdb. It was 800G before, I've added 1TB to it, making it 1.8T total (extended the disk from VM's Vmware settings). Extended the 800G disk with 1TB more making it 1.8TB ...
yegeg58572's user avatar
3 votes
1 answer
697 views

Why is disk label type dos but the partition system is GPT?

And how can it be larger than 2TB if it's dos? Disk /dev/sdi: 6000.6 GB, 6000606183424 bytes, 11719933952 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / ...
Dr. Chocolate's user avatar
0 votes
0 answers
65 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
0 answers
143 views

Debian 11 (+OMV) not booting with attached HDD

I have experienced some Issues with my current NAS. I have used OpenMediaVault 5 for years, but yesterday I decided to upgrade to OMV 6. My NAS is equipped with 3 x 4TB RAID 5 and one 20TB seperate ...
Michael K.'s user avatar
0 votes
1 answer
210 views

How to reduce /dev/sda1 primary partition size and create new partition with it

Hi I'm facing an issue OS : Ubuntu 20.04.5 LTS i have my storage set up like this : lsblk : sda 8:0 0 400G 0 disk ├─sda1 8:1 0 399.9G 0 part / ├─sda2 8:2 0 512B 0 part ├─...
ossama assaghir's user avatar
0 votes
1 answer
180 views

Can I extend a Centos 7 partition while preserving its contents

I inherited managing a Centos 7 server where I am frequently running out of space in the root directory because its size is only 20Gb as shown bvelow. df -h (excerpt) /dev/sdb2 ...
Bob C.'s user avatar
  • 75
0 votes
0 answers
32 views

How to resize KVM host VM os partition

I have resized my KVM VM host's OS disk partition. And i can see below information for the OS Disk. # fdisk /dev/vda Welcome to fdisk (util-linux 2.27.1). Changes will remain in memory only, until ...
Ekam's user avatar
  • 11
0 votes
0 answers
263 views

Calculating the difference of size between fdisk and df

Say I have a 1TB SSD and I want to create a 400GB partition with ext4. So I use fdisk and mkfs to achieve that: #### fdisk #### sudo fdisk /dev/sdb # New primary partition, with partition 1 starts ...
Plus's user avatar
  • 1
1 vote
1 answer
481 views

Different output of parted and fdisk

I have a strange CentOS behaviour, When I type parted -l command on my server I got following results : Model: DELL PERC H730P Adp (scsi) Disk /dev/sda: 5758GB Sector size (logical/physical): 512B/...
Someone Sometime's user avatar
1 vote
1 answer
133 views

Is there any kind of complete RFC document for MBR (master boot record) format - better with explanations? [closed]

I am designing the code enumerating the partitions in the system. Reading numerous documents I can not devise complete and definite list of constraints for the algorithm, and find out why constraints ...
Anonymous's user avatar
  • 171
0 votes
0 answers
133 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 ...
King David's user avatar
0 votes
0 answers
186 views

Weird discrepancy in size between fdisk and df

fdisk reports the following info about a partition Device: /dev/sda1 Boot: * Start: 2048 End: 209715166 Sectors: 209713119 Cylinders: 443369 Size: 100G ...
Radu Stoenescu's user avatar
1 vote
1 answer
711 views

Ubuntu 20.04 new fresh LVM on 5TiB shows just 4.1 TiB space

On a fresh installed Ubuntu 20.04 I attached second disk with size of 5 TiB. I used following commands to create LVM. Disk /dev/sdb: 5 TiB, 5497558138880 bytes, 10737418240 sectors Disk model: Virtual ...
wojcieh's user avatar
  • 158
0 votes
1 answer
548 views

How i revert creating partition table inside a partition

I wanted to add a partition to the /dev/sda mistakenly, I started fdisk with /dev/sda2 and treated It like a disk. How do i revert it? ghostrider@dev1:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE ...
Sudip Bhattarai's user avatar
2 votes
2 answers
568 views

Failed to Partition a 10TB HD?

Before I tried to partition a 10TB HDD again, parted saw it: # parted /dev/sdb (parted) print list Model: ATA ST10000NM0016-1T (scsi) Disk /dev/...
HCSF's user avatar
  • 245
0 votes
0 answers
3k views

Extend file system on Ubuntu 18.04 to use added disk space

Hi I am using a cloud provider (not AWS) to extend the file system on an Ubuntu VM. The provider has extended it, and notified that the extension is on the same volume, but I cannot seem to figure out ...
e7zkw9120's user avatar
  • 173
0 votes
1 answer
956 views

parted + usage help not described the resizepart

we need to use parted command as example on rhel server 7.2 version parted -s /dev/sda resizepart 2 but from parted help we not find the option resizepart example: parted -s /dev/sda resizepart 2 ...
sheffadmin's user avatar
2 votes
1 answer
4k views

How to extend partition in CentOS 8

I hope someone can help me here. I have below partition in my CentOS 8 which is a VM hosted in hyper-v 2012. [root@appliance ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs ...
PGP's user avatar
  • 21
0 votes
1 answer
141 views

rhel + parted failed after increasing OS VM disk and rescan

we have VM rhel machine version 7.6 example from lsblk lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT fd0 2:0 1 4K 0 disk sda 8:0 0 300G 0 disk ...
sheffadmin's user avatar
0 votes
1 answer
1k views

How to increase the free space in a Volume Group in LVM after expend VM disk size

We want to increase the space in a Volume Group in our VM centOS server For example from pvs we see pvs PV VG Fmt Attr PSize PFree /dev/sda2 VLwol lvm2 a-- <100.00g <5.09g ...
sheffadmin's user avatar
0 votes
1 answer
549 views

add additional partition after increasing OS disk size

As part of add additional partition – sda3 we extend the OS disk from 50g to 120g from the vsphere client ( VM Linux server ) And we perform rescan , instead of reboot lsblk NAME MAJ:MIN ...
sheffadmin's user avatar
0 votes
1 answer
1k views

Hang on FDISK New Partition

I am attempting to reformat a drive. Was originally formatted for Solaris with a ZFS filesystem. I am reformatting for my Linux (debian). I used fdisk to remove all existing partitions. Both fdisk and ...
Dorothy's user avatar
  • 179
1 vote
5 answers
2k views

Added 4Tb HDD to Iomega IX2-200 but cannot extend the volume

I have a Iomega IX2-200 which came with 2Tb (1.8Tb usable) space. It has two disks set up as RAID1. I am trying to upgrade this to 4Tb disks. So far this is the process I have followed: Remove the ...
TenG's user avatar
  • 143
1 vote
0 answers
60 views

Increase EXT4 size on Debian whilst preserving Data in a VM?

I've been trying to increase the partition size on one of our servers as it was created years ago and was set too small. I've increased the size in the VM that hosts this but now I'm trying to get ...
Shikoki's user avatar
  • 53
0 votes
2 answers
1k views

BLKRRPART: Device or resource busy, scale up EBS root volume failed using growpart on AWS

Usually i use growpart to rise up size of my root partition on aws, so that i don't have to reboot For some reason in one of my instances, it doesn't work anymore: # df -h Filesystem Size Used ...
MohammedSimba's user avatar
3 votes
3 answers
2k views

LVM2 vgreduce unknown physical volume from root logical volume CentOS8

I have a removable disk in my CentOS8, but I can't reduce the volume group: [root@localhost ~]# vgs WARNING: Couldn't find device with uuid 3GDhRA-KZjA-iDum-8Ut0-s9s0-NnW2-4QQEUv. WARNING: VG cl ...
benxymr's user avatar
  • 41
1 vote
0 answers
1k views

unable to convert MBR disk to GPT

I've got a MySQL DB running in EC2 that I've had to continually add space to the EBS volume, then grow it (using growpart/xfs_growfs). I finally hit 2TB and couldn't figure out why I could no longer ...
skrewler's user avatar
  • 308
0 votes
1 answer
2k views

Filesystem without partition

It is common to create a partition in order to create a filesystem. Modern Linux fdisk will do block alignment automatically, starting the partition at sector 2048. In this case the filesystem will ...
Azize's user avatar
  • 128
0 votes
0 answers
102 views

Disk with no primary partition mounted on disk-name itself

I have a ec2-machine setup with an EBS attached of size 200 GB. I obtain the following with the commands I perfomed Screnshot for the lsblk and df -hT commands As I could figure out from these, there ...
Saurav Joshi's user avatar
0 votes
1 answer
2k views

How can I umount /dev/sda1 partition in ubuntu?

I have a Ubuntu VM which has an unmanaged OS disk associated with it. I want to shrink my OS disk of size 50 GB to 40 GB. However, when i try to unmount /dev/sda1 partition it tell me umount: /...
Sameer Keluskar's user avatar
1 vote
1 answer
306 views

Possible to extend /DEV/SDB1 on Centos machine without downtime/data loss?

on CentOS6 I would like to extend /dev/sdb1 to get more free space: df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_www-lv_root 18G 2.9G 14G 18% ...
Timon's user avatar
  • 11
1 vote
3 answers
3k views

Increase the size of LVM after adding virtual disk space

I have asked for a hard drive upgrade for my virtual server running centos 6.5 i can see that the space has been increased as /dev/sdb now is 214.7GB and used to be 150.3GB root@webhost [/sys/class/...
Meni's user avatar
  • 91
0 votes
1 answer
294 views

SDA Input / Output error when trying to install OS

We are getting error tryint to zero out data on /dev/sda, see quote below, is there anything that might cause this or any tip on how we could fix this issue? The disk was working perfectly but a ...
Toffe's user avatar
  • 1
0 votes
1 answer
338 views

How to move physical partition into extended partition?

Given a disk layout like this Disk: /dev/sdc Size: 119.9 GiB, 127865454592 bytes, 249737216 sectors ...
Max Coplan's user avatar
2 votes
2 answers
8k views

Ubuntu: /dev/sdb1 is apparently in use by the system; will not make a filesystem here

I get this error when I try to format dev/sdb1: $ mkfs.ext4 -L data /dev/sdb1 mke2fs 1.42.13 (17-May-2015) /dev/sdb1 is apparently in use by the system; will not make a filesystem here! where /...
loretoparisi's user avatar
0 votes
1 answer
131 views

google cloud resize partition

New Cloud Compute VM instance with the Centos 7 image. Even though I picked 100GB disk size the Centos image had 10GB boot disk. I have tried extending the /dev/sda2 to utilize the unused space but so ...
OldSkoolDev's user avatar
1 vote
1 answer
296 views

fdisk -l show 500GB, df -h show 240 gb

after incrase the disk space of my centos vm (in esxi hypervisor) when i execute fdsik [root@sopiqecommerce ~]# fdisk -l Disk /dev/sda: 504.7 GB, 504658657280 bytes, 985661440 sectors Units = ...
Quentin Merlin's user avatar
0 votes
2 answers
586 views

remotely destroy all data windows 7 [closed]

we are downsizing our organization and closing several stores. This may sound malicious but actually involves complete remote data destruction for company equipment. My team has been tasked with ...
Eric Goldenberg's user avatar
0 votes
1 answer
4k views

Extending a partition on a VMware disk in Linux

I'm having some problems trying to extend a Disk. I'm using a VMware Debian 9 virtual machine on an ESXi host. After extending the virtual disk-size by 32 GB and rebooting the VM I see: bob@apollo:...
Stewart's user avatar
  • 321
1 vote
1 answer
183 views

Raid 0 disk outside

by mistake I run a fdisk /dev/sdb and then w to a raid 0 member, I see a message like the disk is now outside the raid but I ignored that and keep working on the machine. Then I make a reboot and pfff ...
mijailr's user avatar
  • 13
1 vote
0 answers
87 views

How to resize linux partition with RAID1? [closed]

I have a Proxmox disk with 130Gb LVM image. I moved it to 235Gb disk. And resized in the Proxmox. Done. But in my Linux distro, the partition still 130Gb (disk become 235Gb). The partitions: /dev/...
test123's user avatar
  • 11
0 votes
1 answer
13k views

How to recover an ext4 signature deleted with fdisk?

While resizing an EBS volume on Amazon AWS I accidentally deleted the ext4 signature. root@server:~# fdisk /dev/xvdf Welcome to fdisk (util-linux 2.31.1). Changes will remain in memory only, until ...
jeremyjr's user avatar
  • 375
0 votes
0 answers
222 views

creating a partition makes the server unbootable

I have a server that comes with a softRaid of 2x450gb nvme disks. Since all my data is backupped, I don't need the raid and I want to use the full space instead. From the hosting (OVH) control panel ...
the_nuts's user avatar
  • 410
-1 votes
1 answer
71 views

0B size partition

I have one 0B partition in my disk as the 2nd partition in my CentOS machine. How can I delete it? In fdisk , it shows could not delete the partition. I want to increase vda1 size using growpart ...
Jevin Gala's user avatar