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
0answers
17 views

Interpret fdisk output for HPE ProLiant ML350

I am a newly baked server owner and I bought the above mentioned model which nominally has 4*1.2TB of physical disks. I was wondering if my amateurish ubuntu installation "caught" them all. ...
0
votes
0answers
27 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 ...
0
votes
0answers
18 views

Debian mount hardware RAID array

I have a Debian 10 box, that has hardware RAID capability. I have set up the two drives to be a striped RAID set through the RAID BIOS. But when I boot into the OS, They are not mounted They just ...
1
vote
1answer
60 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 ...
0
votes
1answer
64 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 ...
2
votes
1answer
132 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/...
0
votes
0answers
113 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 ...
0
votes
0answers
28 views

How to add space to /home in LVM when HDD is detected and hard disks are in the same location

I have a website having around 25TB disk space in /home partition. Tonight I figured out I'm running out of space, so I checked my hard disks (they are in raid 0 array) and found I had a file around ...
0
votes
1answer
173 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 ...
2
votes
1answer
1k 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 ...
0
votes
1answer
52 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 ...
0
votes
0answers
22 views

fdisk + exclude the boot partition

I am trying to exclude the boot partition , and get the next partition/device - /dev/sda2 example fdisk -l /dev/sda Disk /dev/sda: 236.2 GB, 236223201280 bytes, 461373440 sectors Units = sectors of 1 ...
0
votes
1answer
59 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 ...
0
votes
1answer
94 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 ...
0
votes
1answer
144 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 ...
1
vote
3answers
439 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 ...
1
vote
0answers
21 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 ...
0
votes
1answer
496 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 ...
2
votes
3answers
924 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 ...
1
vote
0answers
784 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 ...
0
votes
1answer
232 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 ...
0
votes
0answers
30 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 ...
0
votes
1answer
1k 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: /...
1
vote
1answer
27 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% ...
1
vote
3answers
635 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/...
0
votes
1answer
131 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 ...
0
votes
1answer
193 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 ...
1
vote
1answer
3k 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 /...
0
votes
1answer
46 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 ...
1
vote
1answer
136 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 = ...
0
votes
2answers
333 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 ...
0
votes
1answer
2k 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:...
1
vote
1answer
128 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 ...
1
vote
0answers
55 views

How to resize linux partition with RAID1?

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/...
0
votes
1answer
10k 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 ...
0
votes
0answers
106 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 ...
-1
votes
1answer
65 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 ...
3
votes
0answers
2k 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 ...
0
votes
3answers
1k 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 ...
0
votes
1answer
10k 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 ...
0
votes
1answer
776 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 ...
1
vote
2answers
95 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 ...
2
votes
1answer
317 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 ...
1
vote
2answers
419 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 ...
0
votes
0answers
67 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 ...
0
votes
0answers
39 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 ...
-1
votes
1answer
313 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 ...
0
votes
0answers
170 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 ...
0
votes
1answer
462 views

linux mdraid: sfdisk partition table copy fails

One of the disks in my MD RAID 1 failed, and I had it replaced. Now the system runs on /dev/sdb, /dev/sda is blank. Although the disks are not identical (SAMSUNG HD753LJ vs. SAMSUNG HD754JJ), I made ...
2
votes
1answer
13k views

Can't run drbdadm up with DRBD 8.4 on CentOS 7.3

Nodes: node1 node2 Use this way installed DRBD on both nodes: rpm -ivh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org yum -y ...