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

learn more… | top users | synonyms

0
votes
1answer
18 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
49 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
0answers
31 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 ...
1
vote
1answer
57 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 ...
2
votes
1answer
33 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
70 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
53 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
58 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
297 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
219 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 ...
1
vote
3answers
230 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
174 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 ...
0
votes
1answer
99 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
259 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
239 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 ...
0
votes
0answers
104 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 ...
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 ...
0
votes
1answer
155 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 ...
3
votes
2answers
248 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 ...
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 ...
0
votes
0answers
128 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
920 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
138 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
69 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 ...
0
votes
0answers
183 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 ...
1
vote
1answer
224 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 ...
1
vote
1answer
147 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
136 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 ...
2
votes
2answers
206 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 ...
1
vote
0answers
144 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
53 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
55 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, ...
1
vote
2answers
337 views

Cannot mount external USB drive

I'm on Debian Jessie and I have an external USB drive with NTFS. I plugged it into my Raspberry Pi, which then spontaneously restarted (probably the power consumption was too high for the adapter I'm ...
1
vote
1answer
845 views

Understanding syslinux and partitioning

I am trying to learn and especially understand how partitionning and boot-loaders work. The problem is that I got it all twisted in my mind. In the end I don't understand anything anymore. I know ...
1
vote
1answer
55 views

FDISK human error

I was trying to extend my root partition when I realised that I was not on my liveCD. But I already wrote the fdisk table. After rebooting, the filesystem is corrupted. I tried to restore the fdisk ...
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 ...
1
vote
1answer
89 views

Why do I need mkswap if swap space has been created via fdisk?

I created a partition called /dev/sda3 as a swap partition, and changed the ID to 82 (Linux Swap) via fdisk. If this partition was recognized as a swap partition (seen in the output of fdisk -l and ...
1
vote
1answer
2k views

resize root volume with lvextend insufficent space error

My root partition is running out of space, so I'm trying to extend/resize it. Filesystem Size Used Avail Use% Mounted on /dev/mapper/u64-root 19G 18G 823M 96% / none ...
1
vote
1answer
161 views

Creating disk device in a file

I'm trying to create disk device in a file with: dd if=/dev/zero of=file.img bs=516096 count=1000 sudo losetup /dev/loop0 file.img (echo n; echo p; echo 1; echo ""; echo ""; echo w;) | sudo fdisk -u ...
1
vote
0answers
76 views

Two fdisks seeing different MBRs on same external drive (OpenBSD 4.2/5.5)

I'm trying to use an external USB hard drive to copy data between a legacy production OpenBSD 4.2 system (on a slow, fragile network — that's not an option) and a new OpenBSD 5.5 box, and I'm running ...
1
vote
0answers
566 views

Creating partition tables on USB ATA drives fails with fdisk and KDE partitionmanager

I have a couple old ATA (yes, not SATA) hard drive around with USB enclosures. One of them gave me some EXT4 journal error, so I am not sure whether they have a physical problem. Since they are just ...
5
votes
2answers
7k views

Getting the extra GPT info; a “fdisk -l” equivalent

What is the equivalent for GPT using HDDs of: # fdisk -l /dev/hda > /mnt/sda1/hda_fdisk.info I got this from https://wiki.archlinux.org/index.php/disk_cloning (under "Create disk image") for ...
0
votes
0answers
345 views

unable to format usb drive

I'm trying to read an usb drive that until a few day ago seemed to be perfectly working. Today windows started to be unable to access or modify its content. Trying to reformat it with linux (arch ...
-1
votes
2answers
1k views

Can not create new partition

I have Centos that have 508G free space i want to create new partition from it. it locates in extended partition I create new partition and format it as anything (ext4, fat32), after apply it can't ...
1
vote
0answers
427 views

Unable to boot into Mac OS after installing Fedora[Dual Boot]

I installed Fedora on my Mac and now when I boot, it says "booting in insecure mode" an then see a typical Linux "choose what to boot" screen. The List goes like: Fedora Fedora Recovery Mac OSX ...