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.

learn more… | top users | synonyms

2
votes
1answer
36 views

How can i split a partition on Ubuntu?

I just purchased a brand new server on OVH with disk specification: 2 x480GB of SSD SOFT. When i do df -h, the output is: Filesystem Size Used Avail Use% Mounted on /dev/root 20G 13G ...
0
votes
1answer
67 views

How to reset a Harddisk (delete Mbr & delete Partitions) from the Command Line with a script without rebooting?

To start from a clean state I need to reset the hard disk to an empty state from command line. It is not about running a wipe utility, the data don't have to be overwritten. This question is quite ...
0
votes
2answers
24 views

How to unlist partitions from fdisk command in linux

While working on one of my server I noticed that there are no partitions listed under "fdisk -l" command. However the machine is working just fine. Wanted to know following things if anyone can help. ...
0
votes
1answer
47 views

Merge Logical Volume groups

I want to increase root LVM volume space. Is it possible to merge LogVol01 to LogVol00? My LVM setup looks like this: [root@server~]# lvs LV VG Attr LSize Origin Snap% Move ...
0
votes
0answers
32 views

fdisk forces me to start at sector 16384 instead of 2048

I am using fdisk (on Debian Jessie) to create the first partition on a block device /dev/sdc and fdisks default starting sector is 16384. If I enter 2048 instead fdisk prints "Value out of range". I ...
0
votes
1answer
51 views

How do I add storage to a VM so that the added storage is dedicated to a new directory?

I have an Ubuntu server with virt-manager. I have an Ubuntu VM running on this host from a qcow2 file. I don't use separate disk files or img files besides the qcow2 file. I want to allocate 50 GB ...
0
votes
1answer
134 views

LSI replace disk in raid1 with larger drives, how to expand raid to use free space

LSI MegaRAID SAS 9240-8i Situation: 2 - 128GB drives in a raid1 I've replaced each drive, one at a time to let the raid rebuild. The raid now consists of 2 - 256GB drives in raid1 Filesystem ...
0
votes
1answer
39 views

Why third partition of /dev/sda is shown as /dev/sdb instead of /dev/sda3?

I have two 3 TB disks in hardware RAID-1 (mirroring), controller DELL PERC H310 (it is a Dell PowerEdge R420 server). I have three partitions on the same disk. df and fdisk commands shows the third ...
1
vote
1answer
54 views

fdisk partition is unmounted and mounted at the same time

I installed Mint on VBox. I want to learn how to create, delete, and actually, manage partitions in Linux console (yeah I know GParted, that's not the point). The problem is, when I want to delete ...
1
vote
0answers
141 views

fdisk and parted won't work on a USB stick with Fedora 23 alpha 2 x86_64

So I burned a Fedora 23 alpha 2 on a 16GB USB stick through dd if=path/to/fedora.iso of=/dev/usb_device bs=512 I used bs=512 because the sectors on the stick are 512 bytes. Opening the stick in ...
0
votes
2answers
450 views

Resizing partition fdisk fails with invalid argument

I recently resized a VPS from a 50GB SSD to a 300GB SSD through my hoster's control panel. I now am trying to resize my main partition with fdisk to be able to use all the new space. However, fdisk ...
0
votes
3answers
80 views

Truncate empy space from a raw dd image

I have a raw disk image I took using dd of a Ubuntu instance. The total disk size is 300 GB, but only 5.5 GB used. Is there a way to resize the raw dd image down to 20 GB, keeping all of the 5.5 GB ...
0
votes
0answers
32 views

Discrepancy between total sectors and calculated total sectors using fdisk

I use ubuntu on vmware. With fdisk command I got this output: Disk /dev/sda: 42.9 GB, 42949672960 bytes 255 heads, 56 sectors/track, 5874 cylinders, total 83886080 sectors Units = sectors of 1 * 512 ...
1
vote
0answers
123 views

How to add a partition to CentOS without losing data on it

we had a CentOS 6.4 server with two RAIDs. One RAID-1 and the other RAID-5 RAID-1 had multiple partitions with OS installed on it. RAID-5 had two partitions with some data on it. In order to ...
0
votes
1answer
93 views

FreeBSD10 resize virtual server image to smaller partition

I have a VPS on the new Vultr system and I am noticing that they do not have pv-grub ready and available which makes my dilemma even more interesting. I have a 40gig image I need to migrate to a 15 ...
1
vote
1answer
150 views

After resizing NAS box new size does not show up under df -h

We have a 500GB NAS box attached to a Linux box and it appears as /dev/sdb. However after re-sizing from 345GB to 500GB the new size is not registering. [root@localhost iscsi]# df -h Filesystem ...
0
votes
2answers
279 views

How can I check the partition name in FreeBSD?

I am currently running my server in the rescue mode, due to the firewall issues. In order to disable the firewall thing I would have to mount the / partition. My problem is that I dont know/remember ...
0
votes
0answers
449 views

External HDD wrong size

I have an very interesting problem with a Seagate HDD (3TB): Under Windows the HDD has a size of ~3TB. When I connect it to Ubuntu 14.04 and try to format it with GParted, GParted tells me that the ...
1
vote
0answers
148 views

fdisk with lvm: Why is first sector at 3072 instead of 2048?

Using ubuntu 12.04, i have a xen-server and several vms. Considering /dev/vm-disks/testes - an lvm volume partitioned during OS install /dev/vm-disks/testes-home - another lvm volume, unpartitioned ...
1
vote
2answers
3k 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 ...
0
votes
2answers
3k views

using fdisk: show size in a unit such as MB or GB

doing a fdisk -l is a quite convenient command, but how to make fidsk print the partition size in a unit such as MB or GB?
-1
votes
1answer
308 views

ubuntu 12.04 combine hard disk partiions

I´ve a Vm with Ubuntu 12.04 installed. Thus the hard disk is running out of disk space my plan was to increase the disk space and after that expand the existing root logical volume with a newly ...
3
votes
1answer
273 views

LVM in Linux with fdisk?

This question is similar to Is the fdisk partition type important when using lvm however will ask it for clarity. On a CentOS 6.5 insall, I accidentally took a new 3TB virtual disk and performed the ...
1
vote
0answers
205 views

shrink live mdadm partition with LVM

My goal is to shrink an mdadm RAID 1 partition while the system is running. I have to disks sda and sdb, which build my two RAID partitions md0 and md1. On md1 I use LVM, md0 is the /boot partition. I ...
4
votes
1answer
201 views

Why does fdisk have a discrepancy in translating units between cylinder and sectors?

We were re-partitioning a virtual disk to increase the size of an LVM's physical volume. This is how we initially performed this: $ fdisk /dev/sdb # delete partition fdisk> d ? 1 # create new ...
2
votes
1answer
151 views

Drawbacks with smaller fdisk partitions, mdadm RAID10, LVM and KVM?

I am setting up a new virtualized server with KVM and LVM. The KVM host and all guests will be installed on a SSD drive. Each guest will have access to a RAID10 array made of 4x3TB sata drives, used ...
-1
votes
3answers
1k views

Any way to find what is filling up my disk? [duplicate]

This morning I was greeted with low disk warning on my root partition. So I started with usual investigation path and obviously the result of my first command become the one as shown below. ...
0
votes
1answer
2k views

sfdisk given size exceeds max allowable

Hello i have a failed driver in a raid so i had to replace it with a new hard disk. The problem is that although both hard disk are Seagate 1TB they differ slightly in size # sfdisk -s /dev/sda: ...
5
votes
1answer
2k views

What is the difference between the Linux and Linux LVM partition type?

Fdisk shows multiple partition types. What is the difference between choosing 83) Linux and 8e) Linux LVM? Choosing 83) Linux also works fine for using LVM, even creating a physical volume on ...
-1
votes
1answer
213 views

fdisk -l ouputs nothing [closed]

I have a dedicated server at 1and1. If I try to boot normally the server never initializes and I'm unable to contact it either by ssh or serial console. I can only reach it if I boot in rescue mode. ...
1
vote
1answer
465 views

How do I rebuild my software RAID1 array after a drive replacement?

So I have 1and1 dedicated host with RAID 1 setup. One of the drive went bad, and they had just replaced it with a good one. Now I need to the build, but I'm not sure which drive is the old one, and ...
0
votes
0answers
118 views

why cant I set the correct partition size in fdisk

I am currently attempting to setup a raid array. At this point in time I am setting up partitions of the same size on each hard drive that I would like to use in the array, although when I used fdisk ...
0
votes
1answer
1k views

Error: partition length of 6442450944 sectors exceeds the loop-partition-table-imposed maximum of 4294967295

I'm trying to create a partition on a RHEL 6.3 machine, but parted is giving me the following error: $ sudo parted /dev/vdb mkpart logical 1 Error: partition length of 6442450944 sectors exceeds the ...
2
votes
1answer
381 views

Replacement raid1 drive is one block smaller. What to do?

Apparently once should always leave a bit of empty space at the end of each raid1 partition. But if we're too late for that, what can be done if a replacement RAID1 drive is slightly smaller than the ...
1
vote
1answer
102 views

aligning partition boundaries of already installed system

I have qemu raw disk which includes two partitions. The second partition is not aligned according to ssd principles. I will move this into Smartcloud environment and they suggest aligning according to ...
3
votes
3answers
1k views

Aligned partitioning of 2TB disk with Linux fdisk

Is there a way to create a single 2TB partition, which is 4096-byte-sector aligned, on a disk using the standard Linux fdisk (I have tried version 2.17.2)? I've tried the following things and ran ...
0
votes
2answers
45 views

Scripted partition creation

I need to routinely do these steps on various machines that have the same hardware: delete any partitions on /dev/sda create a 100G primary partition on /dev/sda change partition type of created ...
0
votes
2answers
2k views

Ubuntu: How to find unallocated partition/free space?

I've a legacy dedicated server with Ubuntu onboard (console mode only). Based on docs (prices etc.) I see that server must have 250+ GB, but I see significantly less: $ df -h Filesystem ...
-2
votes
1answer
147 views

how to increase HD in RHEL 5 within VMware

I have increased the HD from the setting of VMware while the rhel was shut down. I increased it to 20 GB (before it was 5 GB). But the problem was There is no free allocated space !! please tell me ...
2
votes
2answers
273 views

OpenBSD - Image on a new, bigger disk - how to use the extra space

Our present OpenBSD server needed more disk space, so we replaced the 13 GB disk (it's pretty old too) with 150GB. An image was made and then restored on the new disk. So far, so good. The new disk ...
0
votes
0answers
559 views

Ubuntu Server - Screwed up partition table?

So I think I've screwed my Ubuntu server after using PING (it's a tool like Norton Ghost) to try and create a backup image. Basically the system got to an unbootable state just with the grub ...
1
vote
1answer
168 views

Mount file systems from complete disk image with several partitions and logical volumes

I have a complete disk image (dd if=/dev/sda of=foo.bin) that contains several partitions and LVM logical volumes on which there are ext4 filesystems. How do I mount one of the filesystems on this ...
0
votes
2answers
631 views

how to mount additional space to existing partition?

This is the original output of fdisk -l: Disk /dev/sda: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot ...
2
votes
3answers
5k views

e2label Bad magic number in super-block?

This is the output of fdisk: [root@ns1 ~]# fdisk -l Disk /dev/sda: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device ...
1
vote
1answer
1k views

How do you get iSCSI multipath to discover new LUNs that have not been partitioned yet?

Oracle Linux 6.3 iscsi multipath shows LUNs with existing file system but not the raw block devices that have not been partitioned yet. When I run multipath -ll it will show a LUN that has previously ...
2
votes
4answers
2k views

How to view if partitions primary or secondary in Linux

How do I view my partitions if they are primary or secondary in Linux CentOS? I tried df -T but it does not show if partitions are primary or secondary. Thanks.
2
votes
1answer
1k views

Fedora 17 - Dropping into debug shell after attempted partitioning

So I tried creating a new partition on Fedora 17 using fdisk as follows: Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder ...
1
vote
1answer
138 views

fdisk -l only displays boot partition

I have a SAN, and it's able to read and write to the 50TB RAID just fine, but when I run fdisk -l it only lists the boot partition of the SAN server, and doesn't display anything about the other ...
1
vote
1answer
2k 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 ...
2
votes
1answer
1k views

Adding Extra Hard Drives Debian Fdisk

well I just got a new server and it's a little different than what I'm use to, when I run cfdisk I get WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. ...