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.

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.

157 questions
0
votes
1 answer

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 ├─sda14 8:14 0 4M 0 part └─sda15 8:15 0 …
0
votes
1 answer

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 20G 15G 5.4G 74% / /dev/sdb5 …
Bob C.
  • 75
  • 1
  • 1
  • 7
0
votes
0 answers

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 8:48 0 20G 0 disk └─sdd1 …
King David
  • 549
  • 6
  • 20
0
votes
0 answers

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 Id: 83 Type: Linux Start-C/H/S: 0/32/33 …
0
votes
1 answer

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 MOUNTPOINT sda 8:0 0 800G 0 disk ├─sda1 …
0
votes
0 answers

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 how to extend it. I can see the additional…
e7zkw9120
  • 173
  • 3
  • 8
0
votes
1 answer

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 Usage: parted [OPTION]... [DEVICE [COMMAND…
sheffadmin
  • 49
  • 1
  • 3
  • 11
0
votes
1 answer

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 ├─sda1 8:1 0 500M 0 part…
sheffadmin
  • 49
  • 1
  • 3
  • 11
0
votes
1 answer

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 the main target is to have under PFree the value - …
sheffadmin
  • 49
  • 1
  • 3
  • 11
0
votes
1 answer

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 RM SIZE RO TYPE MOUNTPOINT sda 8:0…
sheffadmin
  • 49
  • 1
  • 3
  • 11
0
votes
1 answer

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 cfdisk hang when trying to create the new…
Dorothy
  • 179
  • 7
0
votes
2 answers

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 Avail Use% Mounted on udev 993M 4.0K …
MohammedSimba
  • 369
  • 2
  • 4
  • 15
0
votes
1 answer

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 also start at sector 2048. Below is just an…
Azize
  • 128
  • 5
0
votes
0 answers

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 seems to be no primary partition surprisingly and…
0
votes
1 answer

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: /mnt: device is busy. (In some cases useful…
1 2 3
10
11