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.
13
questions
94
votes
18
answers
175k
views
Reread partition table without rebooting?
Sometimes, when resizing or otherwise mucking about with partitions on a disk, cfdisk will say:
Wrote partition table, but re-read table failed. Reboot to update table.
(This also happens with ...
6
votes
2
answers
13k
views
How can I set the disk partition alignment using linux tools?
After reading Disk Partition Alignment Best Practices for SQL Server, I just want to give those advices a try, but on my linux test server. What are the required parameters in order to set the ...
1
vote
3
answers
7k
views
Cant find my harddrives in ubuntu installation?
I was trying to setup a Microserver with two 1TB harddrives as a software RAID. Somehow it didnt work and now ubuntu 14.04 is not starting. My problem is that I dont see the drives anymore when I go ...
67
votes
9
answers
270k
views
Deleting All Partitions From the Command Line
How do you delete all partitions on a device from the command line on Linux (specifically Ubuntu)? I tried looking at fdisk, but it presents an interactive prompt. I'm looking for a single command, ...
8
votes
2
answers
6k
views
Is the fdisk partition type important when using lvm
I have inherited a few LVM volumes and I noticed that fdisk reports the disks that make up the volume group as partition type 83 (Linux) and not 8e (Linux LVM). Is this a problem and how important ...
5
votes
2
answers
6k
views
Repurposed disk - Linux blkid command returns incorrect information
I'm working with an SSD drive removed from a VMware ESXi installation. I'm trying to reuse the disk in an existing Linux installation (CentOS 6.2). The drive sits behind an HP Smart Array P410 RAID ...
4
votes
2
answers
5k
views
Cannot mount /dev/sdc1 on Debian 5.0, special device /dev/sdc1 doesn't exist
I'm trying to fix an odd problem I'm having that I've never seen or heard of before. I have a disk, /dev/sdc and I'm trying to mount it, but cannot.
sudo mount /dev/sdc1 /mnt
mount: you must ...
2
votes
1
answer
1k
views
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 ...
2
votes
1
answer
19k
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 ...
2
votes
3
answers
970
views
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 ...
2
votes
1
answer
7k
views
how to sync/flush after fdisk in linux (busybox)
when I change the partition table in Linux (busybox) and exit fdisk I'm still able to mount the old partitions, until I perform a reboot
for example
a) system is setup and has a /dev/sda1 and /...
0
votes
1
answer
4k
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:...
0
votes
1
answer
2k
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
...