fdisk

Is it possible to correct partition table errors without a reboot?

When trying to partition a hard drive on ESX server I frequently run into the following problem: $ fdisk /dev/sdd Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous co...

fdisk fix mis-aligned SSD to correct head and sector count

maletor@denmark:~$ sudo fdisk /dev/sdc WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): p Disk /dev/sdc: 64.0 GB, 64023257088 bytes 255 heads, 63 sectors/track, 7783 cylinders Units =...