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
2
votes
1 answer

swapping out a faulty drive in a raid array with a new one... but WD changed the block size?

I got a brand new (same model) WD Caviar Green drive to replace the faulty one in my 5x2TB Raid 5 array. However, the new disk appears to be slightly different. According to the internet, Western Digital changed their block size? Here's one of the…
colinmarc
  • 197
  • 1
  • 7
2
votes
3 answers

Recover partition table for lvm

I managed to run fdisk on the wrong disk. However I was able to save a log of the terminal session. Fdisk before the accident: ~$ sudo fdisk -l /dev/sda Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units…
ordnungswidrig
  • 123
  • 1
  • 1
  • 6
2
votes
2 answers

The Linux SCSI layer does not automatically remap LUN assignments

I've got some iSCSI/FC storage, currently using only iSCSI. I have in general no problems with mounting LUNs - under Linux and under Windows. Unfortunately - when I add LUN for my Linux iSCSI initiator - I receive info in messages: Warning!…
Arek B.
  • 317
  • 1
  • 3
  • 12
2
votes
3 answers

How to move a directory to newly mounted drive?

What is the easier way to move a directory to newly mounted drive Example, if I have a directory called /example and mounted a new drive to /vol, how I can easily move /example to /vol Since database data is stored in /example, if I copy the folder…
user58329
2
votes
3 answers

Cannot allocate additional space after growing RAID array

I added three new drives to a Dell 2950 (running RHEL 5) with a PERC 6/i storage controller. The machine was previously running RAID 1 on two drives + hotswap. Rather than create an identical RAID 1 array with the new drives, I opted to gain…
rvf
  • 1,525
  • 1
  • 13
  • 9
2
votes
2 answers

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/sdb: 10.0TB Sector size (logical/physical):…
HCSF
  • 245
  • 3
  • 14
2
votes
1 answer

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 3.9G 0 3.9G 0% /dev tmpfs 3.9G …
PGP
  • 21
  • 1
  • 2
1
vote
1 answer

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% / tmpfs 3.9G 0 3.9G 0%…
Timon
  • 11
  • 1
1
vote
3 answers

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/block/sdb/device]# fdisk -l Disk /dev/sda: 85.9…
Meni
  • 91
  • 1
  • 8
1
vote
1 answer

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 = sectors of 1 * 512 = 512 bytes Sector size…
1
vote
1 answer

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 no system. I booted the machine from a USB and…
mijailr
  • 13
  • 4
1
vote
0 answers

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/sda1 /dev/sdb1 They are part of RAID1 volume:…
test123
  • 11
  • 1
1
vote
2 answers

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 drives on 4 nodes, but that doesn't seem to be enough…
1
vote
2 answers

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 commands below. What I expected to see was a Size of…
Paul W
  • 11
  • 1
1
vote
1 answer

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 sure they both have the exact same size: Disk…
Arno Schäfer
  • 401
  • 4
  • 5