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
0 votes
0 answers
22 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 ...
user avatar
  • 1
1 vote
1 answer
35 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/...
user avatar
0 votes
0 answers
293 views

How to restore GPT table from backup table?

I'm not sure if my disk is actually broken or just has some corrupt GPT data fdisk /dev/sda Welcome to fdisk (util-linux 2.36.1). Changes will remain in memory only, until you decide to write them. ...
user avatar
0 votes
0 answers
31 views

Need to mount GB in my vps now excluded in /dev/vda1

i'm loosing my mind through documentations, guides and so to understand/solve my problem about actually my VPS filesystem. I bought a vps from edis with 100GB space and a centos7 installation on it ...
user avatar
  • 101
1 vote
1 answer
68 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 ...
user avatar
  • 171
0 votes
0 answers
88 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 ...
user avatar
0 votes
0 answers
58 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 ...
user avatar
1 vote
1 answer
471 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 ...
user avatar
  • 158
0 votes
1 answer
228 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 ...
user avatar
2 votes
2 answers
387 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/...
user avatar
  • 245
0 votes
0 answers
2k 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 ...
user avatar
  • 173
0 votes
1 answer
480 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 ...
user avatar
2 votes
1 answer
3k 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 ...
user avatar
  • 21
0 votes
1 answer
93 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 ...
user avatar
0 votes
1 answer
323 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 ...
user avatar
0 votes
1 answer
255 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 ...
user avatar
0 votes
1 answer
665 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 ...
user avatar
  • 169
1 vote
5 answers
1k 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 ...
user avatar
  • 143
1 vote
0 answers
30 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 ...
user avatar
  • 53
0 votes
1 answer
903 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 ...
user avatar
2 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 ...
user avatar
  • 21
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 ...
user avatar
  • 298
0 votes
1 answer
896 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 ...
user avatar
  • 128
0 votes
0 answers
45 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 ...
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: /...
user avatar
1 vote
1 answer
67 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% ...
user avatar
  • 11
1 vote
3 answers
2k 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/...
user avatar
  • 87
0 votes
1 answer
202 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 ...
user avatar
  • 1
0 votes
1 answer
277 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 ...
user avatar
2 votes
2 answers
6k 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 /...
user avatar
0 votes
1 answer
95 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 ...
user avatar
1 vote
1 answer
225 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 = ...
user avatar
0 votes
2 answers
447 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 ...
user avatar
0 votes
1 answer
3k 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:...
user avatar
  • 281
1 vote
1 answer
141 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 ...
user avatar
  • 13
1 vote
0 answers
73 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/...
user avatar
  • 11
0 votes
1 answer
12k 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 ...
user avatar
  • 365
0 votes
0 answers
189 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 ...
user avatar
  • 402
-1 votes
1 answer
68 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 ...
user avatar
3 votes
0 answers
3k views

In linux, determine if a block device is being used

I'm doing automation that will reformat a new disk and mount it. I want my automation to check and make sure the disk isn't in use so I don't break something that was already running (as happened to ...
user avatar
0 votes
3 answers
2k views

Restore corrupted partition table in emergency mode without fdisk command

When I manage a VPS, I used fdisk to adjust partitions. But when I reboot, the server complained that the block count 2780624 exceeds size of device (2441472 blocks) and entered emergency mode. I ...
user avatar
  • 103
0 votes
1 answer
13k views

How to extend centos_root partition on Centos 7 and Hyper-V

I've been struggling to get this right and tried plenty of tutorials with no luck. I have a Centos 7 installed as a guest on Hyper-V and need to expand the disk space on centos root partition. I've ...
user avatar
0 votes
1 answer
1k views

Change name of GPT Partition (not label) under Windows from command line

I need to change the name of a GPT partition (not a filesystem label), and I haven't found any way to do it under Windows, except for this tool. The problem is that it's interactive and doesn't ...
user avatar
  • 151
1 vote
2 answers
110 views

Added expanded disk capacity to RHEL7

I have an Hadoop cluster that is quickly running out of room. This cluster is built on RHEL7 VMs on GCP (Google Cloud Platform) Compute Engine. I had originally provisioned the cluster with 10Gb ...
user avatar
2 votes
1 answer
350 views

fdisk with a a single command fail in the second execution

I ran a script to format a disk with fdisk like this: (echo n; echo p; echo $number_part; echo $firs_sector; echo $second_sector; echo t; echo $format; echo p; echo w) | fdisk /dev/$disk when i ...
user avatar
  • 135
1 vote
2 answers
536 views

df shows 2 GB size fdisk shows 60 GB

My newly purchased KVM based VPS (virtual server) running Centos 7 shows a - to my mind - odd result for the df -h command versus fdisk -l and ssm list. I've put the output of various disk related ...
user avatar
  • 11
0 votes
0 answers
87 views

Delete partition and create two other partitions instead one?

i have structure of my hdd, like this: Device Start End Sectors Size Type /dev/sdb1 40 2048 2009 1004.5K BIOS boot /dev/sdb2 4096 409602047 ...
user avatar
  • 501
0 votes
0 answers
62 views

How to extending a partition onto a new drive in Ubuntu Server

I have a VPS which was installed by my hosting provider. Recently I ran out of space on the original 100GB drive and so they have now allocated an additional 100GB drive to me. I would like to expand ...
user avatar
  • 630
-1 votes
1 answer
360 views

Centos 7 cannot find with fdisk [closed]

I can find /dev/vda1 with fdisk but /dev/vdb does not be found. What happened? And how I can resolve it? Thanks [root@tp-gpdb-ku05 master]# fdisk -l Disk /dev/vda: 107.4 ...
user avatar
0 votes
0 answers
207 views

why list of disks not printed with order from sfdisk or fdisk commands

we notice about this problem in last few days on one redhat machine ( version 7.2 ) we notice that order of the disks isn't according to the right order note - sda is the OS instead to get the ...
user avatar
  • 451