fdisk is a utility present in many operating systems that perform partitioning on hard drives. There are versions of fdisk for Linux, DOS, Windows, FreeDOS and OS / 2. It handles DOS FAT partitions only.

learn more… | top users | synonyms

0
votes
1answer
45 views

Overwrote startup disk's partition table with gdisk; how to restore?

I installed a new hard drive in my home server today, went to format it in gdisk (larger than 2 TB), set the changes and wrote them. Then I noticed that I had selected the wrong disk, in fact I just ...
1
vote
1answer
36 views

Counting disk capacity using cylinder-head-sector model

Let's look at fdisk -l /dev/sdc output. # fdisk -l /dev/sdc Disk /dev/sdc: 786 MB, 786432000 bytes 255 heads, 63 sectors/track, 95 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector ...
0
votes
0answers
33 views

CloneZilla, what are all these files?

I am trying to restore a clone of a disk, made with CloneZilla some time ago. I'm having trouble in general, and I can't seem to find the help I'm looking for, so I have to learn some of the basics, ...
1
vote
0answers
17 views

Safe to blank MBR of a disk after adding it to an RAID1 array with mdadm?

I created a RAID1 array of two disks, /dev/sda and /dev/sdb, using mdadm. After several booting problems related to the BIOS and SATA/RAID controller of the board, I accidently created some new ...
-1
votes
2answers
63 views

LVM: How to enlarge the extended partition without data loss?

How to enlarge the extended partition without data loss? Note that I have a LVM logical partition inside of this extended partition. # fdisk -l Device Boot Start End Blocks Id ...
-1
votes
1answer
45 views

Is there something wrong with my disk partition?

# fdisk -l Device Boot Start End Blocks Id System /dev/sda1 * 2048 499711 248832 83 Linux /dev/sda2 501758 41940991 20719617 5 Extended ...
0
votes
0answers
38 views

Recover semi overwritten partition, with output from fdisk

Okay so I was trying to dd a Ubuntu disk to a USB pendrive from a Debian laptop, when I got my disk names messed up and managed to overwrite my external hdd that has all my backups on it, not the ...
0
votes
0answers
101 views

fdisk doesn't see ssd, clonezilla does but fails anyway

I'm trying to clone a Windows 7 Pro installation from one SSD to another. The current SSD is nearly full, so I'm cloning it to a larger disk. My problem is that there is something about the source ...
0
votes
0answers
156 views

Disk Cloning Probelm

I'm trying to clone a Windows 7 Pro installation from one SSD to another. The current SSD is nearly full, so I'm cloning it to a larger disk. My problem is that there is something about the source ...
1
vote
1answer
498 views

Extended partition does not start on physical sector boundary on 512e (emulated 4k) hard-drive

My fdisk -l output tells me that my extended partition (sda4) is misaligned. But partitions inside it are aligned (their start sector is divisible by 8). Will the misaligned extended partition somehow ...
1
vote
1answer
85 views

Windows doesn't boot anymore after partition change

Background: I normally use Linux as OS. I had a dual boot with Windows XP. Since I had some problems with the windows partition (too long to explain), I shifted it of a while. This is what I have ...
0
votes
1answer
105 views

ArchLinux installation - missing tools

I'm trying to install ArchLinux by following the beginners' guide on the Arch wiki. I managed to establish a internet connection, but right now I'm stuck with preparing the storage drive. Whenever I ...
0
votes
2answers
45 views

Partition Hard disk with start sector 1

I have a new Hard Disk which I want to use for NAS drive. The requirement is that the partition as seen in fdisk should be as below. Device Boot Start End Blocks Id System ...
1
vote
1answer
243 views

Interpretation of number of heads returned by fdisk

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 ...
1
vote
2answers
227 views

Installing a 3TB drives on Debian

I am using an internal hard drive USB adapter to mount backup drives. The adapter was working well with my previous 1GB backup drives. We just got two new 3TB hard drives. We connected it with the ...
0
votes
0answers
80 views

SD card never detects through card reader

MY SD card works fine on windows when I use the inbuilt reader in the laptop. But when I use it with card read (Quantum), it does not work at all. On a linux machine (where I do not have inbuilt ...
0
votes
1answer
454 views

Error Broken pipe while install chrubuntu

Okay, I need help My chromebook is Acer c720 So., I trying to follow this guide -> http://www.amirkurtovic.com/blog/installing-chrubuntu-on-the-samsung-arm-chromebook-a-step-by-step-photo-guide/ I go ...
0
votes
0answers
52 views

Using Pipe Operator With fdisk

On my Mac OS X, I am trying to provide input to fdisk command via echo and Pipe Operator, And in this process i wants to provide bootable flag to partition number 1 of attached USB Drive and then i ...
1
vote
1answer
977 views

Kali/Ubuntu doesn't detect windows partition

I am trying to dual boot Windows 7 with Ubuntu or Kali Linux but i am unable to do so. I have backed up all my data to an external hard drive. So it is safe to work with partitioning. I have a 500 ...
1
vote
2answers
1k views

How can I merge partitions in Linux without losing data?

So, I'm working on a couple VMs for a high-profile site, and they have /home partitioned separately from / (root). The owner has asked me to merge the two partitions so that /home is not partitioned ...
1
vote
1answer
3k views

How to force a USB disk to format?

I can't seem to get my USB drive to format anymore or be recognized by the file system (including gparted). How do I just wipe the whole thing and start over!? dmesg [ 5036.408102] usb 2-3: new ...
0
votes
1answer
2k views

Partition Not Showing up in /dev

I recently unmounted a 4TB hard drive from one computer in order to access the files directly from another computer. It seemed like there were no problems with the unmounting process. When ...
8
votes
1answer
7k views

What is the equivalent of the Linux command “sudo fdisk -l” in MacOS?

In Linux, the command sudo fdisk -l produces an output the lists all the disks and partitions in the computer. The following is an example of fdisk -l output: If I try to use sudo fdisk -l in MacOS ...
0
votes
1answer
428 views

Format flash drive without partitions

I'm trying to format a flash drive with a FAT partition to use in my car stereo, but running into a small problem. I've tried making it all one big FAT 16 partition, and the stereo won't accept it. ...
0
votes
1answer
3k views

Canot format MicroSD. File system is read-only

I formatted it for my special needs some time ago using fdisk. Don't remember the partition table, but there was 1 fat32 and 1 ext4 partition. Now I want to format it fat32 clean, but I get the ...
0
votes
2answers
1k views

“mount: special device /dev/sdc1 doesn't exist” but according to fdisk -l, it does

I'm booted into a live usb linux environment, and I plugged in a hard drive. It's listed in fdisk -l as /dev/sdc{,1}, is a 3tb drive, and has a single partition containing an xfs filesystem. But when ...
1
vote
2answers
367 views

How to recover data from a USB-connected hard disk that shows no partition?

Is there a possible way to recover data on my Western Digital 2TB drive? I have tried different ways like using gparted and fdisk etc.. but nothing helped. The error I get is that it cannot find a ...
0
votes
1answer
2k views

Partitioning an SSD with sfdisk

I have been trying to partition this SSD (Samsung 840) nicely for a while now. I want to make sure the pages line up with the SSD pages to limit the amount of writes. I found this site which ...
0
votes
1answer
87 views

Is it possible to recover a hard drive which is listed by lsblk but not by fdisk -l?

Having a "dead" hard drive that spins but that is not listed by Linux's "fdisk -l" utility, nor Windows, but which is listed by lsblk Linux command as /dev/sdb, is there any way to make "fdisk -l" ...
0
votes
2answers
58 views

Should I format all disks after fdisk?

I created disks with fdisk: Device Boot Start End Blocks Id System /dev/sda1 * xxx xxx xxx 83 Linux /dev/sda2 xxx xxx ...
1
vote
1answer
412 views

linux: utility to find good partition alignment on ssd

I am getting a new SSD. is there a linux utility that aids me by recommending/choosing/checking the correct partition (and potentially ext4) parameters to avoid the performance penalty? my "default" ...
-1
votes
1answer
269 views

NTFS partition mount but doesn't show any files

The partition was bootable, but it's not anymore. I booted with an ubuntu live CD. "fdisk /dev/sda3 -l" shows this: Disk /dev/sda3: 626.4 GB, 626396585984 bytes 255 heads, 63 sectors/track, 76155 ...
0
votes
0answers
269 views

What is the largest size of HDD that can be recognised by SuSE 10?

I have a venerable but rock solid server running SuSE 10, acting as a webserver, running a relatively few, but significant, websites. The machine has multiple disks ranging from a nearly decade old ...
0
votes
2answers
2k views

Recover lost partitions ( or partition table) after fdisk in debian

I am running Debian Squeeze in my laptop. I did a big mistake. Instead of doing fdisk /dev/sdb (which is my usb pendrive), I fdisk-ed /dev/sda, which is my primary hdd. When prompted, I chose options ...
0
votes
1answer
790 views

Why is Ubuntu 12.10 listing three disks in my RAID 1?

For the same computer that I tried fixing Windows XP on, though the installation was successful, it kept blue screening so I've decided to switch to Ubuntu. The problem is that Ubuntu is also having ...
2
votes
2answers
594 views

real number of sectors on HDD

This is part of output of fdisk -l Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector ...
0
votes
2answers
437 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 ...
1
vote
1answer
3k views

Can't format or delete any files on SD card

I have a 16 GB SD card i'm trying to format for use. In Windows if I try to format it says Windows was unable to complete the format, and in Linux when I do fdisk -l -u, fdisk just hangs when the SD ...
2
votes
2answers
506 views

quick format vs format

What is the primary difference between quick format and format. Does a format write 0's before writing the inodes/allocation table and a quick format just write the allocation table/inode without ...
6
votes
2answers
710 views

What does the output of fdisk mean?

I've got a flash drive and I want to understand the properties of it as is outputted from fdisk. I inserted it and check the dmesg and I could see that it was mounted as /dev/sdb1 so I ran fdisk to ...
1
vote
2answers
2k views

Can you expand a linux partition while it's in use?

I'm running a linux server and I need to expand the /tmp partion. Everything I come across using fdisk or parted is saying that I need to unmount before expanding. Is this true, or can it be safely ...
1
vote
1answer
139 views

partition table looks different between Linux and Windows

I'm having some odd issues after deleting and resizing an NTFS partition with Gparted. Windows doesn't seem to see the same partition table as Linux. At first, the deleted partition showed up as ...
3
votes
1answer
4k views

How do you create and partition a raw disk image?

I need to create a raw disk image for use in a virtual machine, but I need to create the partitions before creating the file system or installing the operating system. Can anyone describe a process ...
0
votes
1answer
130 views

Add new partition under raid-1 array

I have small /tmp partition, and I want to create new partition with size 10 GB than current one, I have two hard disk on raid-1 array # mdadm --query --detail /dev/md0 /dev/md0: Version : ...
1
vote
0answers
244 views

TestDisk - Recovered partition not mountable

First here's my Partition Table reported by fdisk. Disk /dev/sda: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector ...
0
votes
2answers
1k views

linux can't read partition table

My laptop has a Hitachi HTS725050A7E, this is 500GB with 4k block size. It shipped with two partitions, a 10G recovery partition on the front of the disk and the remainder of disk space in one big ...
3
votes
1answer
1k views

Partition table independent of sector size

The plot I have a WD10JPVT 1Tb disk inside an IcyBox IB-290StUS-B USB/esata enclosure. When I connect the disk via USB, I get a 512 logical / 512 physical sector size. When I connect the disk via ...
3
votes
4answers
928 views

Partitioning a disk with already existing partitions

On a Linux Virtual Machine that i recently setup, I had a disk /dev/sdb of size 20G in which i created 8 partitions (3 primary, 1 extended containing 5 logical partitions), using upto 10G of space. So ...
0
votes
0answers
691 views

external USB HD doesn't show up on 'sudo fdisk -l' on one Ubuntu, shows up on another (same version)

I have a 1.5TB WD external USB HDD and two Ubuntu systems, both 'precise'. When I plug the disk on system A it doesn't show up on the output of sudo fdisk -l nor is it automatically mounted (note that ...
5
votes
2answers
3k views

Re-reading the partition table failed with error 22: invalid argument

I have Oracle Linux on a VM and I'm trying to create partitions on /dev/sda2 of size 30 gigs using fdisk utility. I made four partitions each of size 512M and they appear in the partition table. ...