fdisk (for "fixed disk") is a command-line utility that provides disk partitioning functions.

learn more… | top users | synonyms

1
vote
1answer
665 views

Problem creating raw disk image and mounting it in rescue mode to QEMU

I am trying to create booting system from raw disk image. This is what I do: $ dd if=/dev/zero of=system2.img bs=1M count=6000 6000+0 records in 6000+0 records out 6291456000 bytes (6.3 GB) copied, ...
0
votes
1answer
597 views

How to check integrity to HDD with UDF format

I'm having problem with a USB external drive, which seem to be formated with UDF and was being used for MAC and Windows (or at least that is what told). When I attached the HDD to my Linux system ...
1
vote
1answer
2k views

How can I extend VMware Partition on Centos 7 using GParted?

I've a problem with increasing a partition from 20GB to 120GB, VMDK file. Here is what I've done: using vmware-diskmanager to increase vmdk file from 20 GB - 120 GB. It's ok. download and boot from ...
1
vote
1answer
2k views

Unknown hard disk partition?

I want to mount my second hard disk from my Linux VMware guest but when I try mount -t ext3 /dev/sdb2 it is not available. fdisk -l /dev/sdb gives me unknown format: /dev/sdb1 2048 ...
4
votes
2answers
793 views

How do I make use of unused space on my boot drive on FreeBSD

I have an old FreeBSD Server (running 7.3-RELEASE) that desperately needs additional storage. In fact, it has some-- the original 20G SCSI drives have been replaced by 300G SCSI drives, so in theory ...
0
votes
1answer
20 views

tmpfs and disk partitionning (incoherent partition size between df and fdisk)

I will soon run out of space on my hard drive. Therefore I tried to change the partitions and I discovered something that I don't understand. df -h gives mes this output : Filesystem Size Used ...
0
votes
1answer
51 views

cant see disk partition /dev/sdb in linux

I did a successful partition for a new volume /dev/sdb , after that I mounted it /etc/fstab. The thing is that I cant see /dev/sdb volumes along side with /dev/sda volumes using df -h command nor the ...
0
votes
1answer
26 views

Innacurate lv_root size after extend

I wanted to increase the disk size of 2 VMs from 20GB to 100GB. I followed the normal procedure, increased vmdk size, fdisk to create a new partition with the free space (sda3), vgextend, then ...
0
votes
3answers
4k views

“blocks” column in output of fdisk

On my machine, fdisk -lu /dev/sda displays following output: Device Boot Start End Blocks Id System /dev/sda1 * 2048 73947135 36972544 83 Linux /dev/sda2 ...
1
vote
1answer
58 views

Swap suddently vanished from Debian?

Everything has been going fine for 6 months now until my swap suddently vanished today. Now that I look into it, I find that my disk partitionning is a bit weird. What happened to it and what should I ...
0
votes
0answers
32 views

fdisk and fdisk -cu

Can someone please assist me with the difference between fdisk and fdisk -cu? when use fdisk only, it shows me the below warning WARNING: DOS-compatible mode is deprecated. It's strongly ...
2
votes
2answers
219 views

Transforming a disk from MBR to GPT

I have a disk with classic MBR and want to transform it to use GPT without data loss. I have seen several more or less useful tutorials, but most of them are dealing with the specific problems related ...
2
votes
1answer
35 views

swapon command is not listing the lvm name

I am facing issues with swapon -s command. It is displaying some other filename instead of my lvm name which i have given ( swap is LVM partition ) swapon -s command is not listing my LVM Name for my ...
3
votes
0answers
74 views

Expanding root partition CentOS 6 With using fdisk

I am trying to expand the root partition on a VM which is not using LVM and I do not have (nor want to try and create then use) a disk to boot from. As such I followed what I felt was the logical ...
4
votes
1answer
55 views

How to write to an .img file with two different partitions?

I have been working on building a Linux based OS for Raspberry-pi using buildroot. I am generating the required empty .img file using "dd" and "fdisk" utilities. I am creating two empty partitions ...
3
votes
1answer
59 views

Odd output from fdisk -l: overlapping and missing partitions? [duplicate]

I am running Debian 8 as the only operating system on my Toshiba Satellite laptop, though I previously had other operating systems installed. Running the command sudo fdisk -l produces the following ...
0
votes
1answer
345 views

“fdisk -l” output: what are Disk label type“ and ”Disk identifier"

fdisk -l output: . . Disk label type: dos Disk identifier: 0x0006a8bd . . what are Disk label type" and "Disk identifier" Also, apart from the manuals, where else can I find more information ...
1
vote
0answers
31 views

Change Partion Drive Space

Okay I am having some trouble here - pretty new to the Linux environment and need some help. I have a 2.7 TB RAID array, and someone configured a partition at around 200 GB but it really needs to be ...
2
votes
1answer
263 views

/dev/mapper in fdisk

After installing CentOS, I see several lines like /dev/mapper/centos_jackpc--11-swap and /dev/mapper/centos_jackpc--11-root when I issue fdisk -l. What is the purpose of these? And why do they not ...
4
votes
2answers
3k views

How do I use new fdisk table without reboot (kpartx)?

When I run fdisk and change the size of a partition, fdisk says at the end of its output: The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) I'd like to do so ...
1
vote
3answers
251 views

My SD card has a partition but Linux doesn't create a device entry for the partition

OK, I don't know what's going on here, at first I thought it was a problem I remember having some time ago where I couldn't mount a vfat partition because it had some flag set that it had not been ...
1
vote
0answers
188 views

Issues while eMMC partitioned using sfdisk

I am writing firmware(MLO,u-boot.img, uImage(ver 3.12), dtb, rootfs.tar.gz) programming script for am335x based custom board. Rootfile system is to be put onto the eMMC. Firmware programming script ...
3
votes
3answers
6k views

Format windows (NTFS) hard drive on Ubuntu using command line

This is really a two part question. I've never formatted a hard dirve on Linux/Unix, so please bear with me. I had an old Windows machine which recently died. So I decided to put the hard drive into ...
0
votes
1answer
106 views

fdisk - defaults to non Dos but yet uses Dos disklabel

My version of fdisk man page states default is DOS mode is disabled, which is what I want.... but why is it stating 'Created a new DOS disklabel'? localhost four # fdisk /dev/sdc Welcome to fdisk ...
1
vote
1answer
278 views

Is fdisk needed with lvm?

Most documentations about LVM have roughly these steps: fdisk /dev/sdb pvcreate /dev/sdb1 vgcreate fileserver /dev/sdb1 lvcreate --name share --size 40G fileserver mkfs.ext4 /dev/fileserver/share ...
2
votes
1answer
271 views

cfdisk or fdisk?

While reading the man page for fdisk I came across this interesting text: There are several *fdisk programs around. Each has its problems and strengths. Try them in the order ...
3
votes
2answers
4k views

Copy MBR and boot partition to a smaller disk

I'm using a 32GB SD card for my raspberry pi. I have successfully transferred the operating system (Archlinux ARM) to a usb harddrive. Which means that I only need the boot partition on the SD card. ...
7
votes
6answers
16k views

Change the number of the partition from sda1 to sda2

I have a disk with two partitions: sda1 and sda2. I would like change the number of sda1 to sda2 and sda2 to sda1. It's possible but I don't remember the procedure. i.e. My first partition will be ...
0
votes
0answers
106 views

Debian..Can't format and mount external HDD

I have been trying to format my 640GB external Hard Drive in command-line and can't seem to get it working. I have done the following in order: sudo fdisk /dev/sda (Deleted any partitions, created ...
0
votes
1answer
162 views

HDD Won't connect / system won't read it. Not sure what dmesg output means`

I have a hdd that I pulled from an old windows laptop, I don't think there's any information on it that I want to keep. I was going to format it to ext4 or something. Yesterday when I connected and ...
4
votes
3answers
10k views

Problem mounting GPT disk partition

I am trying to mount a partition on a GPT disk, but I get the following error: $ sudo mount -t ext4 /dev/sda1 disk/ mount: special device /dev/sda1 does not exist Looking at dmesg, I don't see any ...
3
votes
2answers
254 views

How can I mount this .img file and browse its contents?

I am interested in mounting a firmware image and browsing its contents. I attempted this with the mount command but received some errors ("you must specify filesystem type"). However I think there may ...
0
votes
1answer
35 views

Why aren't sda3 and sda4 displayed with fdsik -l?

I wanted to display all my partitions, so I entered "fdisk -l". AFAIK, the format of the device file for a scsi hard disk reads like: sd_whichharddisk_whichpartition. To my surprise, after hitting ...
0
votes
0answers
129 views

Live shrinking of root partition has failed on Linux Mint

Steps taken: *Used fdisk to delete the existing root partition and created a new root partition (PV) starting on the same block *Added the 'a' flag using fdisk to make it bootable as /boot is under ...
8
votes
1answer
950 views

reference whole disk (/dev/sda) using UUID

On my system (Debian), I can see the UUID identifier for all of my disks partitions (i.e. /dev/sda1, dev/sda2, ..) ls /dev/disk/by-uuid/ However, I don't see the UUID identifier for /dev/sda ...
1
vote
1answer
31 views

fdisk delete mounted partition

What kinds of problems will occur by deleting partitions with fdisk that are currently mounted. I tested this on a mounted usb partition and it gave me some peculiar errors. I know it is something you ...
1
vote
1answer
141 views

External HDD partition not showing [closed]

I have problem with an external HDD. I am using Debian Jessie. The partition is not showing, I can see only the device: # ls /dev/sd* /dev/sda /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4 /dev/sda5 ...
1
vote
3answers
71 views

Why is grub showing a windows 7 option?

I've recently in installed mint 17 on my pc. $ parted -l Model: ATA PLEXTOR PX-256M5 (scsi) Disk /dev/sda: 256GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Number Start End ...
2
votes
2answers
167 views

Does `/proc/partitions` and/or `fdisk -l /dev/sdX` provide me a reliable device size?

I have two 3TB disks, which I hope to be exactly the same size. This means that I can use dd to copy them without being short or in excess of some bytes. Therefore I tried to find out the ...
0
votes
0answers
184 views

External hard drive can't be mounted on linux(windows says: Format it)

I have a hard disk and I can't mount it on linux. These are information may be helpful: # fdisk -l Device Boot Start End Blocks Id System /dev/sdb1 * 63 1250258624 ...
2
votes
2answers
9k views

Partition table not recognized by Linux kernel

I experience relatively often that the partition table of a USB stick or SD card is suddenly no longer recognized by the kernel while (g)parted and fdisk still see it, as do other systems. I can even ...
1
vote
1answer
240 views

Recover partitions Mac OS internal hd

I booted to a live ubuntu USB, wanting to delete partitions on an SD card, and ended up deleting all my partitions on my mac book pro's internal hd. I have already tried gpart (which gets stuck at ...
1
vote
1answer
74 views

Replacing a partition within a .img with another one

I have 2 .img files (embedded Linux images, each with 2 partitions- a boot partition and a rootfs). I need to replace the rootfs partition in one with the other's. How can I do this In the .imgs ...
5
votes
2answers
9k views

How do I check how much free space left on a device to create a partition

Let's say I have this virtual machine running: [root@centos ~]# fdisk -ul Disk /dev/sda: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 cylinders, total 16777216 sectors Units = sectors ...
1
vote
1answer
150 views

FAT file-system between the MBR and first partition

I have an old 64MB USB flash-disk which seems to have MBR: root@3:~# fdisk -lu /dev/sdd Disk /dev/sdd: 64 MB, 64880640 bytes 2 heads, 54 sectors/track, 1173 cylinders, total 126720 sectors Units = ...
0
votes
1answer
30 views

MBR not corresponding to fdisk -l?

I'm trying to map the shown with sudo fdisk -l and what is written in the MBR. However they seem to differ. What fdisk shows: Device Boot Start End Blocks Id System /dev/sda1 ...
0
votes
1answer
138 views

Delete labelled partition non interactively with one command

I know about fdisk and parted, but I was not able to figure out an non interactive way to delete a labelled partition. I imagine something like <command> <action> /dev/disk/by-label/LABEL ...
1
vote
0answers
146 views

Why are USB partitions & disk capacity not coherent between fdisk, parted, dmesg & /dev/sdXy

Disclaimer: I initially posted this on SF : http://serverfault.com/q/645670, but I think it better fits here First, a word of context: I'm trying to burn an ISO on a 16 Gb USB key, but I'm having ...
1
vote
0answers
55 views

4k mode hard disk partition

I am trying to create a 256 MB primary partition for my 320 Gig hdd using fdisk. Since, the drive support 4k I wanted to try the emulation mode. so, for 256 Mb of 512 K blocks leads me with below ...
0
votes
1answer
56 views

Increase a partition without data loss

If there is a partition, ex.: /dev/sdb1 Then how can I increase the partition (with fdisk?), if it was 10 GByte before, and there are still place to increase the partition with another 10 GByte, ...