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
1answer
28 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 ...
0
votes
0answers
7 views

How Can I increase the PFree without extend the disk

I want to know if deleting from disk space of / will lead to PFree to be increased. pvs PV VG Fmt Attr PSize PFree /dev/sda2 rhel lvm2 a-- 299.51g 55.82g lsblk NAME ...
1
vote
3answers
140 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
70 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
43 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
25 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
214 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
22 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
124 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
58 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
108 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
928 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
37 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 ...
0
votes
0answers
42 views

Encrypted external hard drive fails to mount

I have a coreos machine that, as part of its boot process, mounts an encrypted external hard drive. In the past few days, the mount of the external drive has started failing. I'm specifically seeing ...
0
votes
0answers
35 views

How to expand /vda2 to use all available space (>2TB)?

On a KVM guest running Centos 7, lsblk gives me: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom vda 252:0 0 6T 0 disk ├─vda1 ...
1
vote
1answer
72 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
217 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
0answers
39 views

CentOS, PV increase and logical partition

I've the partition setup : PV contain CL VG on /dev/sdf6 (20.9GB) (with root, usr, tmp, home, etc. lv) Fdisk output : Périphérique Amorçage Début Fin Blocs Id. Système /dev/sdf1 ...
0
votes
1answer
1k 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
116 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
46 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
7k 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
41 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
56 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 ...
2
votes
0answers
1k 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
944 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
8k 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
480 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
90 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
257 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
302 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
46 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
33 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
250 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
134 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
307 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 ...
1
vote
1answer
9k 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 ...
0
votes
1answer
24 views

Unmatched Disk Size Partition

In Centos 7 I see this (virtualized machine on a IaaS): root@hongo developer]# fdisk -l Disk /dev/vda: 42.9 GB, 42949672960 bytes, 83886080 sectors Units = sectors of 1 * 512 = 512 bytes Sector ...
1
vote
1answer
992 views

Unable to extend partition with gdisk on XenServer 6.5

I'm having trouble extending my partition on a XenServer 6.5. I originally had a 1.4TiB device (hardware RAID5) that I since upgraded to 10.9TiB. I upgraded the RAID by swapping out one disk at a ...
1
vote
1answer
1k views

Not able to format root partition in Arch Linux installation because already labelled

I am installing Arch Linux on a previously Windows machine. I have created the partitions, with root on sda1, and now I am trying to format it with mkfs.ext4 /dev/sda1, but it's not liking that. ...
0
votes
1answer
104 views

Have I created and mounted this raid array correctly?

So I am working out how to add a new raid1 array to our server as we have a raid1 array which is almost full. I have replicated our server setup in a virtual machine and attempted to add a raid array ...
0
votes
1answer
3k views

Add a new hard drive to extend /home partition in CentOS 7

I have a new hard drive on my server ( a 2 TB drive ) . I want to add this 2 TB to my current /home partition . The output of df -h [root@localhost ~]# df -h Filesystem Size Used Avail Use% ...
0
votes
0answers
312 views

script running non interactive fdisk does not work from cron

When I run the following script from command line I get the full output in /tmp/Fdisk.sh. But if I run the same script from cron I get only partial output. Is the shell skipping some instruction ...
10
votes
2answers
1k views

After hardware RAID array expansion fdisk wont allow me to use additional available sectors

We have a large ~18TB hardware raid array on a Dell R720xd. Currently the RAID5 array consists of 6x4TB and I needed to extend it. Step 1 expand the hardware raid array. Simple enough if you have ...
0
votes
0answers
1k views

unable to mount RAID 1 removed disk

I have removed two disk(sda1 & sdb1) from soft RAID1 array. mdadm --stop /dev/md0 mdadm --remove /dev/md0 mdadm --zero-superblock /dev/sda1 mdadm --zero-superblock /dev/sdb1 Output of mdadm --...
-1
votes
1answer
750 views

fdisk - list all hard drives more simply

Is there a neater way to list hard drives with fdisk? If I run fdisk -l I get the Disk, Units, Sector size, I/O size, etc - all distracting stuff. I can run fdisk -l | grep "Disk /" but this seems a ...
2
votes
1answer
2k views

extend MBR disk with ext4 partition to over 2 TB on CentOS 7

I have a CentOS 7 machine with two disks mounted [ /dev/sda and /dev/sdb ] using ext4. I need to extend /dev/sdb1 to over 2 TB. I extended the disk from 2 TB to 2.5 TB (google cloud) After using fdisk ...
0
votes
2answers
581 views

impossible to format an internal disk

I can't format a bunch of internal disks that I have bought in second hand from a datacenter. The disks were formatted in NTFS, this is 3 2TB seagate constellation ES +2 1TB seagate constellation ES + ...
0
votes
2answers
1k views

4 TB external disk on Centos 5

I have an old server running CentOS 5(Kernel 2.6.18-92.el5). It is running a legacy application so I can't retire it yet. I had connected a 2 TB USB disk to it to take backups and the disk is almost ...
-1
votes
3answers
1k views

How do i extend the root filesystem device of xenserver linux VM?

I created a linux VM and am trying to increase the disk size of the root device /dev/xvda but not sure how to do this the right/proper way Also do i have to shutdown the VM to be able to do this? ...