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

1
vote
0answers
25 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
32 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
30 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
98 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
190 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
79 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
1k 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 ...
-1
votes
1answer
788 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
156 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 ...
0
votes
0answers
103 views

Parted does not display partition created in IBM Storwize 3700

My server is running CentOS 6.5. I created a LUN on Storwize 3700 and had named it /dev/mapper/lun1 (I used multipath). And then I created a partition on it and formated it as ext4. When I type ...
3
votes
1answer
182 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
140 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
110 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
120 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
294 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
1k 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: ...
4
votes
1answer
1k 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
141 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
386 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
105 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
861 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
295 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
93 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
41 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
137 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
206 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
474 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
137 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
349 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 ...
1
vote
3answers
3k 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
991 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 ...
1
vote
3answers
1k 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
120 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
1k 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. ...
1
vote
1answer
2k views

How to increase my `/` of Fedora installed on a virtual box?

I used virtualbox4 to create a box(8G disk) and installed a Fedora 16. Soon I found the space is not enough that I can't download anything in ~/download. I use VBoxManage to increase the disk size to ...
5
votes
2answers
2k 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 ...
2
votes
1answer
3k views

How can I change a partition mount to var and still boot up?

My first question here on server fault. In my haste, I set up a local server with Centos 6.2 and let the Centos installer handle the partitions. Big mistake, I know. Anyway, the only problem I have ...
2
votes
1answer
891 views

Where did the free space go?

I have installed CentOS 5.7 64 Bits in my server which has 4x300 GB SAS drives on hardware RAID 10. At the installation, I chose default partitions. Here are the commands output: [root@server ~]# ...
1
vote
2answers
1k views

Partition size inconsistency after dd clone

We have recently upgraded a system HDD - it was 160GB, now 2TB. We upgraded as we were running low on space, mainly on /usr, and also on /home. I prepared the new drive with a Live CD and GParted ...
6
votes
2answers
6k views

I used “dd” to clone a drive to a larger drive. How can I leverage the additional space (linux)?

Fdisk can't see extra space I upgraded my trusty 74gb Raptor hard drive to a 600gb Velociraptor behemoth. I used "dd" to clone the drive, (i.e. "dd if=old-drive-device of="new-drive-device), swapped ...
2
votes
1answer
920 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 ...
7
votes
1answer
979 views

Non-interactively create one partition with all available disk size

This is disgusting to me, but it works: echo -e "n\np\n1\n\n\nt\nc\na\n1\nw" | fdisk /dev/sdb I would like to know a more prudent or elegant way to accomplish this. The entire boot record and ...
3
votes
2answers
1k 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 ...
1
vote
1answer
1k views

Whats wrong with my partition table?

I'm a bit lost here. I got my trusty old external 500Gb USB drive but it refuse to mount: I think my partition table is invalid: sudo fdisk -lu /dev/sdb Disk /dev/sdb: 500.1 GB, 500107862016 bytes ...
3
votes
2answers
475 views

same harddrive on the same controller, but different cylinder/head/sector

I have a pair of identical SATA harddrives connected to the same controller, but for some reason, fdisk under Debian 6 reports different CHS: user@host:~$ sudo fdisk -l /dev/sdc Disk /dev/sdc: ...
2
votes
3answers
2k views

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 ...