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

learn more… | top users | synonyms

0
votes
1answer
9k 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
4answers
1k views

Align Partition Of HDD Using fdisk?

I first asked this question on SuperUser.com but got no responses. I have found how to align the partition of my SSD using fdisk (SSD article on Gentoo Wiki) but haven't been able to find any ...
1
vote
2answers
296 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
3answers
3k views

Can not create new partition

I have a CentOS system that has 508 G free space. I want to create a new partition from it. It locates in extended partition. I create new partition and format it as anything (ext4, fat32), after ...
1
vote
1answer
13 views

How to renumber partitions

I've seen posts in the past that advise against changing the partition number but like Fox Mulder: " All the evidence to the contrary is not entirely dissuasive " I have an old MBR disk that I used ...
4
votes
2answers
895 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 ...
2
votes
1answer
1k 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
37 views

Restoring fdisk mistakes: New partitions & table

On a deabian 8.2 system I made a new LVM partition with fdisk and wanted to issue a pvcreate command, but was constantly being called and then made this horrible horrible mistake. Before the call I ...
0
votes
1answer
849 views

How to check integrity to HDD with UDF format

I'm having problem with a USB external drive, which seem to be formatted 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 ...
0
votes
1answer
31 views

extend Disk space

i want extend my disk space : #df -h Filesystem Size Used Avail Use% Mounted on udev 10M 0 10M 0% /dev tmpfs 403M 17M 387M 4% /run /dev/sda1 19G 18G ...
2
votes
5answers
618 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: ...
0
votes
0answers
16 views

mdadm does not automount raid0 disks under /media/storage

I've beat my head against this issue all night and I can't seem to wrap my head around it. I've recently installed Linux Mint 17.3 Mate to replace my Windows 10 machine and after some tinkering I've ...
0
votes
0answers
18 views

Unable to create a filesystem on /dev/sda2 on a virtual machine , device showing busy, Kernel can't read partition table

This question has been asked several times on this platform, but none of the solution resolves my issue. Linux OS: RHEL 6.5 I created a partition /dev/sda2. # fdisk -l Device Boot Start ...
0
votes
1answer
97 views

Can't restore/reformat my USB flash drive after moving to GPT

I have 8GB flash memory stick. Sometimes ago I formatted it to be able to install Windows from it. I can't remember what exactly I did but I think I wanted to be able to install Win 7 64-bit to boot ...
3
votes
1answer
42 views

Why is the block size of a partition smaller than that of the underlying disk?

My understanding is that the block (in the phrase "block size") is like an IO buffer, or minimum IO size for a device. Since partitions are built on top of physical devices, how can they have blocks ...
2
votes
1answer
48 views

How can I merge 2 disk images into one with 2 partitions?

I have 2 (relatively small) disk images for qemu (raw format) containing different filesystems (say fat and ext4). I want to put them into an usb stick as two different partitions so that I can plug ...
0
votes
0answers
21 views

sfdisk does not create block files for corresponding partition

I have partitioned my disk using sfdisk. And the (7)partitions got created successfully. sfdisk -l also lists all the (7) partitions which I configured. But the strange thing is, the corresponding ...
4
votes
2answers
13k 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 ...
2
votes
1answer
41 views

Find device ID for partition in Solaris 11?

I have a laptop I'm setting up to multi-boot between Win 7, Solaris 11, Ubuntu 14.04, and CentOS 7. I have a common FAT32 partition for all of them to save data to. I'm less familiar with Solaris ...
3
votes
1answer
58 views

How can I see the size of a partition's unallocated size on the command line after shrinking a partition with resize2fs?

I want to shrink my /dev/sda2 partition from 463.37GB to 400GB to make room for a new partition. So I did e2fsck -f /dev/sda2 followed by resize2fs /dev/sda2 400G. As per man resize2fs, the ...
0
votes
0answers
27 views

Unknown Partition on Table

I'm not sure whether this is a problem or I'm just totally missing the mark on this one. What I "think" is going on is, there's about 123GB I'm not using of my hdd. The picture is what gparted sees, ...
3
votes
1answer
14k views

Understanding partition table with sda1 sda2 sda5

I just inherited a system and I am trying to understand it's partition table for the hard drive. (I'm new to this) machine:~# fdisk -l /dev/sda Disk /dev/sda: 250.0 GB, 250000000000 bytes 255 heads, ...
1
vote
2answers
62 views

Partition disk into two equal partitions in a shell script

I am trying to partition my disk into two equal partitions. So far I was doing everything manually using fdisk command and then modifying fstab file with UUID for both the partitions and I have around ...
1
vote
2answers
87 views

fdisk: could not detect sector size of USB hard disk on FreeBSD

I have an NTFS formatted USB hard disk that works fine (mounts and unmounts cleanly) on my windows desktop. I can't however seem to mount it on my freebsd box at all. Stripping this back to the ...
1
vote
1answer
41 views

Interpreting results of commands

I am having a hard time interpreting the results of the below commands. The more I read about them the more I'm convinced that what I am seeing is somehow not what it's supposed to be. The results ...
0
votes
1answer
92 views

Re-reading the partition table failed with error 16: Device or resource busy

When re-partitioning the USB drive on CentOS 6.x getting following error and kindly advise to solve this. Disk /dev/sdb: 31.5 GB, 31466323968 bytes 255 heads, 63 sectors/track, 3825 cylinders Units = ...
0
votes
1answer
22 views

USB key not readable by a certain device when formatted using fdisk

My mother has a radio that can play MP3s on a USB key. I noticed something strange. When I format it with diskpart from Windows 8.1 my mother's radio has no problems playing the MP3s on a USB key, but ...
1
vote
0answers
666 views

mount: special device /dev/sda1 does not exist

I had a CentOS 6 server suddenly lock up on me after doing about 2 weeks of calculations for a project. Upon reboot, the machine would crash while attempting to mount the devices listed in the fstab ...
3
votes
1answer
212 views

How to use sudo -u option?

I have 2 users, userA and userB. userB needs to run some commands as userA. I have specified these options in /etc/sudoers as below: userA ALL=(ALL) ALL userB ALL=(vinoth) /sbin/fdisk I ran this ...
2
votes
1answer
65 views

USB flash-drive with hard-coded partition

I have a Kingston DataTraveler 2.0 16GB USB flash-drive: The weird part with this USB flash-drive is that despite the fact that I have zero-filled the flash-drive: # dd if=/dev/zero of=/dev/sdc ...
5
votes
1answer
39 views

How is the size of the block containing the “MBR” determined

I have used fdisk to move Ubuntu Mate partitions from a 1M boundary to start on a 4M boundary on a SD card. The "boot" partition now starts at block 8192. This is how the Raspbian distributions are ...
2
votes
4answers
7k 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
2answers
36 views

LVM Drive partitions missing

I have a 4 drive LVM PV Group. I had one drive fail (Ok, I broke it installing it in a new case.) so I swapped it for another drive and recovered the remaining data. After a reboot I got stuck at a ...
1
vote
1answer
268 views

Use “tune2fs” on XFS filesystem, get “Couldn't find valid filesystem superblock.”

I ran into this message two days ago=: tune2fs: Bad magic number in super-block while trying to open /dev/vdc1 Couldn't find valid filesystem superblock. The system is Ubuntu, a KVM virtual machine ...
1
vote
1answer
54 views

Remove filesystem from an unpartitioned disk

I have an un-partitioned 500GB disk with a ext3 fs using the entire disk. If I make sure there are no partitions on the disk using fdisk or parted, "ssm list" will still show an ext3 fs on the disk ...
2
votes
1answer
103 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
2answers
1k views

fdisk hangs on “Syncing disk” when resizing a raw QEMU image

I'm using fdisk to resize the partitions on a raw QEMU image. When I write the new partition table, it hangs at "Syncing disks." Note that I'm running fdisk as non-root since I don't need root to ...
0
votes
1answer
36 views

Partition system id FDISK

if I change a partition system id to FAT16 with fdisk and make another file system such as ext2 on that partition with mkfs what is problem? every thing is ok ! so what does (partition system id) do?
0
votes
2answers
516 views

How can I use fdisk to create a ntfs partition on /dev/sdx?

I would like to know how to create a ntfs partition on /dev/sdx. I could not figure out if I should use partition type 7 86 or 87. What is the full list of commands to use?
2
votes
2answers
105 views

How can I manipulate a partition table file without fdisk checking the validity of it?

I'm creating an image in memory (/tmp is a tmpfs): $ dd if=/dev/zero of=/tmp/sdcard.img bs=512 count=3147775 It's supposed to hold a partition table and the first 3 partitions of a device $ ...
0
votes
0answers
11 views

Mount external drive from old eMac with Darwin

How can I mount an external HD from a Darwin console? I've tried running fdisk, but fdisk -l fdisk: unable to stay -l: No such file or directory mount -a didn't barf but didn't do anything material ...
0
votes
1answer
26 views

Can't increase partition size due to start

I saw today that my computer didn't want to boot because my /dev/sdb2 (/ partition) was totally full. That was a big mistake from me, I'm a beginner and I've set the size at 10G, which isn't enough. ...
2
votes
1answer
58 views

Reduce the size of an existing VolumeGroup to create a new PhysicalVolume

I have test machine that is set up with default partition settings for CentOS 6. [root@base_machine ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup-lv_root ...
1
vote
1answer
2k views

Unknown hard disk partition? [closed]

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 ...
0
votes
1answer
285 views

Formatting USB stick with fdisk - negative used space?

I formatted a USB drive using fdisk, and created three partitions. Everything seems to work fine, but Disk Utility is showing a negative amount of used space for all partitions: Partition | Capacity ...
1
vote
1answer
26 views

Which raid drive is available to mount?

I have a Centos 7 system with 4 drives installed. They are setup in the bios as 2 mirrored pairs. When the system was installed, the default installation only saw one of the pairs and installed on ...
0
votes
0answers
129 views

fdisk and fdisk -cu

Can someone please help me to understand the difference between fdisk and fdisk -cu? When I use fdisk only, it shows me the below warning WARNING: DOS-compatible mode is deprecated. It's strongly ...
2
votes
1answer
94 views

Swap suddenly vanished from Debian?

Everything has been going fine for 6 months now until my swap suddenly vanished today. Now that I look into it, I find that my disk partitioning is a bit weird. What happened to it, and what should I ...
5
votes
4answers
18k 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 ...
0
votes
1answer
531 views

can't see disk partition /dev/sdb in linux

I did a successful partition for a new volume /dev/sdb. After that I mounted it in /etc/fstab. The thing is that I can't see /dev/sdb volumes along with /dev/sda volumes using df -h command nor with ...