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

learn more… | top users | synonyms

3
votes
1answer
28 views

Partition table consuming 32K of data?

I create a file of 100MB size, and using losetup assign it to /dev/loop0. Consequently I use fdisk to create an empty DOS partition table, and a new partition that spans the entire disk. One thing ...
0
votes
1answer
23 views

Create a partition with fdisk in bytes

i would like to create a partition with fdisk with exact number of bytes. But fdisk only let me input K,M,G,T,P: Last sector, +sectors or +size{K,M,G,T,P} (2048-7814037134, default 7814037134)
1
vote
1answer
18 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 ...
0
votes
1answer
39 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
34 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 ...
0
votes
0answers
22 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
20 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 ...
2
votes
1answer
59 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
28 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 ...
3
votes
1answer
48 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 ...
0
votes
0answers
29 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
66 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
1answer
119 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 ...
1
vote
2answers
76 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 ...
2
votes
1answer
51 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 ...
1
vote
1answer
44 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 ...
1
vote
2answers
104 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 ...
0
votes
1answer
134 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
25 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
972 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
240 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
74 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 ...
1
vote
2answers
40 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
349 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
64 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 (...
0
votes
1answer
37 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
749 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
121 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
12 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
60 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 ...
5
votes
1answer
40 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 ...
0
votes
1answer
315 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
28 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 it....
4
votes
1answer
224 views

“Can't have a partition outside the disk!” for vdi created from a truncated image

I have used dd to create a partial/truncated image of a disk which only includes allocated spaces, then converted it to a vdi file for VirtualBox. I have successfully used the vdi image to run the ...
0
votes
1answer
68 views

why are DATA partitions not consistently reported in CentOS 7?

Why am I getting inconsistent/conflicting pictures of the DATA partitions that were created in the CentOS 7 installation process when I use df -T -h, parted ... print, and fdisk -l? In case it ...
0
votes
1answer
64 views

Volume size larger using fdisk, but not df [duplicate]

I'm trying to increase disk space available on /dev/mapper/centos-root, however, I'm not sure why df -h is not reporting increased size. $ sudo fdisk -l Disk /dev/sda: 68.7 GB, 68719476736 bytes, ...
0
votes
2answers
239 views

Debian Linux root disk getting full, need to transfer /var folder to another disk

One of the disks got out of space, however other disk is nearly empty. Need suggestions how to transfer biggest folder(/var) to the other disk and mount at /var. For now /var folder was in / partition....
0
votes
1answer
113 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
605 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 ...
0
votes
1answer
32 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
144 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
96 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 ...
2
votes
1answer
79 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
216 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
114 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 as ...
4
votes
1answer
154 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
3k 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
60 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 ...
6
votes
1answer
12k 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 ...