Questions tagged [fdisk]

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

491 questions
11
votes
1 answer

Why does fdisk prefer 512 byte sector size even when the physical sector size of the block device is 4096?

I have a disk with 4096 byte sectors: # cat /sys/class/block/sda/queue/physical_block_size 4096 # For some reason, fdisk prefers to show the information about the disk using 512 byte sectors: Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168…
Martin
  • 7,516
6
votes
4 answers

"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 73949182 78139391 2095105 5 …
Martin
  • 7,516
3
votes
1 answer

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 identifier: 0x00043afc # However, I can not confirm…
Martin
  • 7,516
2
votes
1 answer

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 shouldn't do, just curious as to why.
1
vote
1 answer

Why fdisk show truncated partition types?

I tried fdisk command on latest Debian 11 and Slackware-current, on both I use the l command to show the partitions types, it show the types in 4 columns, only one problem: the 4th column has truncated names, how to see the full names? 00 Empty …
elbarna
  • 12,695
1
vote
1 answer

fdisk output explanation

I am a beginner in Linux. I created a Hard-Disk size 1GB through VM and am using CentOS 6.4 I scanned and discovered it using echo command. When I do fdisk -l /dev/sdi , I get the following output Disk /dev/sdi: 1073 MB, 1073741824 bytes 255…
1
vote
1 answer

fdisk warning: (Extended) Partition does not start on physical sector boundary

is there a problem if an Extended Partition does not start on physical sector boundary? Partition 4 does not start on physical sector boundary. ... /dev/sda4 639635454 1953521663 1313886210 626.5G f W95 Ext'd (LBA) /dev/sda5 …
User8461
  • 134
1
vote
1 answer

Meaning of "e" and "ee" in "Id" column of `fdisk -l`?

I am trying to inspect an SD card which may or may not be failing, on Ubuntu 14.04. This is the output I get from fdisk -l: $ sudo fdisk -l /dev/sdc ... Disk identifier: 0x000a671b Device Boot Start End Blocks Id …
sdaau
  • 6,778
1
vote
1 answer

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. I am now trying to figure out which drive to…
1
vote
1 answer

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 with the old values which I took in picture with my…
0
votes
1 answer

fdisk vs. vgdisplay - increase size of VG

After getting error messages that I was running out of disk space, I looked at the disks and found that the output from fdisk (127.101 GiB) did not coincide with the output from vgdisplay (57.43 GiB). How can I allocate the full disk space to the…
undigit
  • 41
0
votes
1 answer

Exit fdisk list known partition types

when setting up my linux installation I used the following command to create new partitions: fdisk /dev/sda After creating my partitions I was curious about the other optionsthe command has: From this i tried option l to list all known partition…
0
votes
1 answer

the output of the fdisk on centos

I'm looking for a meaning of the output of the fdisk command on centos , because it is a little different from other system , because other systems uses sectors ,but here the size can be determined by the cylinders ! so i wanted to create a new…
0
votes
0 answers

Is there a way to safely change the order of devices?

i used to extend contiguous device space,But today i can't extend my /root space Here is the fdisk-l's output command : Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size…
Simon
  • 1
  • 1
0
votes
1 answer

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 if I do the same with fdisk, the radio just says…
mkdrive2
  • 662
1
2