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

0
votes
0answers
27 views

Interpretation of number of heads returned by fdisk [migrated]

Info about HDD: $ sudo fdisk -l Disk /dev/sda: 250.1 GB, 250058268160 bytes 255 heads, 63 sectors/track, 30401 cylinders, total 488395055 sectors Units = sectors of 1 * 512 = 512 bytes Sector size ...
3
votes
1answer
30 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
33 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 ...
0
votes
0answers
10 views

cfdisk hangs while writing table to USB disk - cannot kill

I plugged in my brand new Transcend StoreJet 23H3 and bullishly went into cfdisk to recreate the partition table. I just want a Linux partition on it to perform incremental backups. So, after making ...
3
votes
1answer
50 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
56 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
100 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
381 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: ...
3
votes
1answer
401 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
72 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
139 views

How do I rebuild my software RAID 1 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
78 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
403 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
96 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
71 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
608 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
33 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
499 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
120 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
116 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
292 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
108 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
176 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
2answers
930 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
551 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 ...
0
votes
3answers
251 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
781 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
102 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
653 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
898 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
1k 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 ...
4
votes
2answers
1k 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
2k 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
702 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
812 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 ...
4
votes
2answers
4k 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
806 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 ...
6
votes
1answer
377 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 ...
1
vote
2answers
560 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
766 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 ...
2
votes
2answers
323 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
1k 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 ...
0
votes
1answer
432 views

sfdisk - partition creation problem

I'm trying to create disk image with 2 partitions: First partition: 1Mb for boot and second partition of the maximum capacity dd if=/dev/zero of=flash.img bs=1M count=10 /sbin/sfdisk flash.img ...
0
votes
3answers
110 views

Paritition an LVM LV

I have an LVM logical volume (LV) and would like to create partitions within this LV to provide an ext3 partition and a swap partition. This LV would then get mounted as a disk to a virtual machine ...
0
votes
1answer
165 views

Partition Centos | Raid

I have 4 HDD, the system is installed on /dev/sda2 # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 884G 2.1G 836G 1% / /dev/sda3 2.0G 159M 1.7G ...
1
vote
2answers
8k views

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 ...
4
votes
2answers
2k 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 ...
3
votes
2answers
1k views

df showing wrong disk size

Df -h is showing a wrong empty space on my server, for one of the disks: /dev/sda2 450G 393G 34G 93% / Cpanel shows that it has only 34GB free, but there is a lot more. A few ...
1
vote
3answers
775 views

fdisk - partition in single line

Can you create a partition in a usb disk using fdisk command in a single line. fdisk command is interactive in nature, But I want to automate partition creation in a single line using fdisk command.
4
votes
4answers
5k 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, ...