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

learn more… | top users | synonyms

3
votes
2answers
35 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
24 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
15 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
27 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 ...
7
votes
1answer
160 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
47 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
37 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
82 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
44 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
42 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
53 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
21 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
79 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
1answer
60 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
87 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
36 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
36 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
176 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
371 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
49 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
106 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
54 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
552 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
76 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
57 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
278 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 ...
4
votes
2answers
2k 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
241 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
650 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
265 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 ...
0
votes
0answers
37 views

Discovering possible RAID configuration of a bunch of disks

I have a stack of 8 disks which were at one point all inside of one host. That host no longer exists, but it's been requested that I retrieve data from these disks. No one can tell me anything about ...
1
vote
2answers
951 views

How to format a 1GB USB stick to FAT32 with 512 bytes sector?

I am trying hard to format a 1GB USB stick so that I can use it to install a new linux OS. Because the Disk utility has failed me when creating the file system. I tried to do it manually using fdisk ...
2
votes
2answers
192 views

Partition offset at 63 or 64?

I did not wish to use the entire SSD for OpenBSD 5.5. (The SSD is new and pre-formatted with MSDOS using Gparted) During installation and at the fdisk stage, I chose Partition #: 0 to install OpenBSD ...
0
votes
2answers
71 views

change boot order

I have 2 partitions sda1 XP and sda2 CENTOS. I have reinstalled grub on /dev/sda but on rebooting, I experienced: error : 22 no such parition for Centos; while Windows boots charmingly on the other. ...
2
votes
1answer
363 views

Debian Wheezy live - gparted, dmsg, fdisk etc. do not detect local hard drive but it is shown during installation

Yesterday I finished backing up my data and it was time to wipe that HDD of mine for good and freshly install Debian Wheezy stable with Xfce as a WM. I've booted into a live session to see if things ...
1
vote
4answers
165 views

Extracting a string from fdisk command

I want to write a shell script, which will run fdisk -l and extract a string /dev/sdbn from the output of fdisk -l. Using extracted word I want to mount it to /mnt. For Example: Disk identifier: ...
1
vote
0answers
258 views

How to find hidden partition of a USB in linux

I have a USB, which has a protected partition. I think this USB has hidden partitions, which I can't see them. $ fdisk -l /dev/sdb: You must set cylinders. You can do this from the extra functions ...
2
votes
1answer
119 views

why 2TB external HDD is recognized as 800 GB only in Ubuntu 8.10

I had a 2 TB external HDD which I formatted as below. fdisk /dev/sdb After issuing the above command, I did the following steps. Then selected option p. (To print the partition table). Then ...
4
votes
4answers
165 views

Combine fdisk and df in the same output

sudo fdisk -l gives : 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size ...
-1
votes
1answer
31 views

Fdisk expert mode not available

It seems that the eXpert mode in fdisk is no longer available. When I try sudo fdisk -x, terminal returns "fdisk: invalid option -- 'x'" I have fdisk from util-linux 2.24.1 Is this a "feature"?
4
votes
2answers
5k 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 ...
1
vote
1answer
377 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
457 views

location of the “disk identifier”

According to Wikipedia, "disk signature" is a 32 bit value stored in MBR on bytes 440 - 443. According to fdisk, my "disk identifier" is 00043afc in hex: # fdisk -lu /dev/sda | grep identi Disk ...
0
votes
2answers
2k 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 ...
3
votes
1answer
2k 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 ...
3
votes
2answers
72 views

Difference between running mke2fs and setting FS type in cfdisk?

When I run cfdisk (or fdisk) to partition a storage device, there's a point where I can specify the file system type. Does this do anything with respect to the actual file system? Suppose I want to ...
2
votes
1answer
983 views

Software RAID 10 + LVM on mixed drives, sector alignment?

I have 4 2.5" 7.2k drives lying about and I'd like to build some RAID arrays for a bit of VM storage on my KVM lab box. There are 2x 320GB drives and 2x 500GB drives. I'm looking to create a RAID 10 ...
7
votes
2answers
5k views

fdisk -l shows ext3 file system as HPFS/NTFS

I have an external HDD which I formatted as NTFS partition in Windows. Now, I formatted this HDD in my linux system using the below command. mkfs.ext3 /dev/sdb1 It was formatted successfully. ...
1
vote
1answer
323 views

Can't create partition table on SSD with Slackware 14

I'm trying to install Slackware 14 from a DVD. It boots fine from the DVD. When I try to use fdisk or cfdisk to create the Linux and swap partitions on the SSD, it complains about a missing or ...
1
vote
2answers
993 views

fdisk (expert mode) options

On GNU/Linux with fdisk (util-linux 2.20.1), when using, say fdisk /dev/sda3 there are quite some options and the and even an "expert mode" (x). Most of these are explained through the m option. But ...