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

-2
votes
0answers
11 views

Set sector size on a disk dump file

I'm trying to recover some files deletes by accident from workmates. Basically the story is that i gave a uSD with some files on it and the person left far away with it. After warnings of deletion, I ...
0
votes
1answer
29 views

Reclaim 100GB on disk not “seen” by fdisk but shown in parted

I am running Ubuntu 14.04 and am using lvm for the root and swap partitions. When I use parted ( or gparted) I see 110GB unpartitioned on /dev/sda . hari@Ubuntu02:~$ sudo parted /dev/sda unit GB ...
0
votes
1answer
53 views

How to create a primary NTFS partition on Raspberry Pi 3?

Questions: How to create a primary NTFS partition on Raspberry Pi 3? Context: I'm trying to create a new primary NTFS partition on an external drive on Raspberry Pi 3. Normally, I could use fdisk to ...
0
votes
0answers
48 views

Problems with multiple FAT32 partitions on (micro)sdcard

I have a smallish problem for which I could not find help yet. When my device (on RaspPI) boots up for the first time, it creates the partitions needed for media data. This media partition should be ...
0
votes
0answers
36 views

Error when tried to install 3 operation systems

I would like to have 3 Operation Systems on my Hard disk drive ,namely 2 Linux (e.g. Ubuntu and Debian) and 1 windows(e.g. Windows 7). How should I partition my HDD? (Which file systems and What ...
1
vote
2answers
76 views

What flash drive geometry depends on? Can I change it on my preference?

I have an USB flash drive. Here is its initial info generated by fdisk (Linux): # fdisk -l /dev/sdc Disk /dev/sdc: 8053 MB, 8053063680 bytes 16 heads, 60 sectors/track, 16384 cylinders, total ...
0
votes
0answers
15 views

Dual boot linux partitions

I have Debian installed. Partitions are as follows: Disk /dev/sda: 931.5 GiB, 1000204885504 bytes, 1953525167 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / ...
0
votes
1answer
35 views

Sanity check ext partition size?

I ran resize2fs on a ext4 linux partition and I want to create a partition after it. However I want to sanity check that the size I put into fdisk afterwards was correct. What's the best way to ...
1
vote
1answer
63 views

How to tell fdisk to erase the partition's content like GParted does?

I'm trying to write a script to do some proceedings with an USB pendrive, deleting any partitions it encounters and creating new ones (more in this link). When I do the proceedings using GParted, ...
0
votes
0answers
158 views

fdisk show the wrong size of micro SD card

I have a 32GB micro SD card. when I use fdisk to partition the SD card, it show that my SD card was 2TiB, here is the message of fdisk, how should I solved this problem Welcome to fdisk (util-linux 2....
2
votes
1answer
791 views

How to set a partition type to ef02 with fdisk?

Setting a partition's type to ef02 is easy in gdisk. You just type it. However, I could not find a similar type code in fdisk. I don't want to use gdisk, because it force convert my drive to GPT which ...
0
votes
1answer
127 views

sfdisk geometry warning / how to repair

I have problem with superblock in an ext4 disk : usr@rpb ~ $ sudo fsck -v /dev/sda fsck from util-linux 2.20.1 e2fsck 1.42.5 (29-Jul-2012) ext2fs_open2: Numéro magique invalide dans le super-bloc ...
3
votes
1answer
2k views

How to force partition to value out of range

I have an ubuntu desktop system (VM guest), whose partitions were created by the install media. I wanted to expand the disk, so I shutdown the guest, and increased the disk size of the guest in the ...
0
votes
0answers
429 views

Why does fdisk fail to create a new partition with “You must set cylinders.” if the disk image file is smaller than 8Mb?

On Ubuntu 14.04 AMD64 fdisk 2.20.1, if I do: dd if=/dev/zero of=my.img bs=1024 count=$((8*1024)) printf 'o\nn\np\n1\n\n\nw\n' | fdisk my.img it works creates a new partition table and one partition ...
0
votes
0answers
121 views

Recover mdadm raid5 with XFS

I am trying to recover data from an old Buffalo Terastation that failed. A previous attempt to recover the data by someone else was unsuccesful and I have been left with the following situation. NB: ...
1
vote
0answers
272 views

managing disk using fdisk utility

i m new to fedora, I want to create 8GB disk and then want to make three partitions with different sizes. -first partition with 8MB -Second partition with 192MB -Third partition with 7.8GB but it ...
0
votes
1answer
455 views

Error regarding blockdev /dev/sdb1 “BLKRRPART: Invalid argument”

i had to extend an lv on an enterprise server that belongs to sdb1, i added/allocated the space i needed from the storage array. I rescanned the ports of SAN and then i wanted to blockdev --rereadpt ...
1
vote
0answers
36 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
1answer
98 views

EXT4 partition didn't get any free space after expansion

I have expanded the root partition on my Banana Pi using the following script: fdisk /dev/mmcblk0 <<EOF p d $PART_NUM n p $PART_NUM $PART_START p w EOF After a reboot I got a 32 GB partition ...
2
votes
4answers
219 views

How To Format A Disk Image To Be Recognized By MS-DOS?

I'm trying to emulate windows with bochs on my android device. I've got the following drives: an empty disk image to install windows on, a virtual vvfat drive with the setup files, and a cdrom drive ...
0
votes
1answer
748 views

Creating GPT partition using sgdisk on emmc 2GB

I am trying to partition my 2GB emmc using sgdisk to have a GPT partion table. The commands show success and also the GPT partition table looks updated (even on reboot) but the partitions are not ...
0
votes
2answers
603 views

mount root (/) again after mistake, without /etc/

I think I accidentally mounted /dev/hde1 to / after formatting another disk with mkdosfs -F 32 -I /dev/hde1 /dev/hdc1 should be mounted on / but now there is no way to remount it again since /etc/...
0
votes
1answer
55 views

Partition size from “df -h ” vs “fdsisk -l”

Partition size using "df-h" Filesystem Size Used Avail Use% Mounted on /dev/sda5 19G 17G 516M 98% / none 4.0K 0 4.0K 0% /sys/fs/cgroup udev ...
2
votes
2answers
303 views

Can't see Linux fdisk created GPT disk partitions in Windows 7 (64-bit)

I just added 2 new disks (only for data, no OS booting) and had them set up equally with GPT and equal partitions, to use the partitions as RAID1 in Arch Linux, and the rest of the storage for Windows....
0
votes
1answer
240 views

SSD Not Detected - Fallback on EFI Shell

Want to assess what are the odds of a hardware failure in a particular case. I have a laptop with an Intel SSD (160GB). I just installed Windows 8.1 on it and all was working fine, up until the point ...
0
votes
1answer
288 views

Not able to create more than 7 partitions on the am335x(beaglebone black) based custom board

I am trying to partition eMMC of BBB(am335x) based custom board, I am using sfdisk to do that. I am using following command to do that, #Partition emmc sfdisk -D -H 255 -S 63 -C 467 /dev/mmcblk0 -uM ...
0
votes
2answers
255 views

QEMU guest system starts off /dev/sdc but won’t start from disk image file

I have a copy of Windows XP installed on a hard drive which I would like to run with QEMU. When I start it directly from the HDD it runs fine: qemu -m 256 -hda /dev/sdc Starting Windows...etc...etc.....
0
votes
1answer
43 views

fdisk shows existing partition in brand new hdd

I just bought a hard disk (Seagate ST2000DM001) and got from fdisk that it is already partitioned. crown mnt # fdisk -l /dev/sdc Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/...
0
votes
1answer
32 views

Fdisk lists total hard drive space as 500G but lists a partition as 922G

Here is my fdisk output in the picture below. There seems to be some major discrepancies here. You can see that /dev/sda is only a 500 gig drive but contains nearly a 1 TB size partition on sda3. What ...
1
vote
0answers
99 views

Combine free space Ubuntu

I want to "merge" or combine a free space that i have on my main Ubuntu partition, i have tried with Gparted but i can't resize the main partition. This is the results of fdisk -l: Device Boot ...
4
votes
1answer
268 views

How to learn what `gparted`, `partitionmanager`… libcalls or `fdisk`, `parted`… commands are wrapping?

Querying partitionmananger --help does not document any verbose mode. Even gparted --help is not implemented. I wish I could use any --verbose mode without more esoteric thingy like using ltrace, ...
0
votes
1answer
161 views

Clonezilla gives disk in use on restore ( sfdisk This dis is currently used )

I am trying to automate a clonezilla imaging, Thie issue is that the restore fails due to it saying that the device is in use When I type "mount" /dev/sda is not anyware in the list ( and there mdadm ...
0
votes
1answer
257 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
1k 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
381 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
52 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
713 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
408 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
1k 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
1k 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
271 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 done:...
0
votes
2answers
445 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
87 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
1k 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
471 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
1answer
1k 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 ...
1
vote
1answer
2k 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
5k 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 ...
4
votes
2answers
7k 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 high-...
5
votes
2answers
9k 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 ...