I/O size (minimum/optimal): 512 bytes / 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes Simply used for swap, so I could easily move it without losing anyĬreate a new primary partition starting at the same sector as the original one just with a bigger size (leave some for swap)Ĭreate a new extended partition with a logical partition in it to hold the swap space sudo fdisk /dev/sdaĭisk /dev/sda: 268.4 GB, 268435456000 bytesĢ55 heads, 63 sectors/track, 32635 cylinders, total 524288000 sectors You can use fdisk to change the partition table while running.Ĭreated 3 partitions: one primary (sda1), one extended (sda2) with a Now you have a bigger hardĭrive but you still need to a) increase the partition size and b) In ESXi this is simple, just increase the size of the virtual disk. If you lose your data because you didn’t perform a backup
I was doing this on a VM which I backed up Refer to Live resizing of an ext4 filesytem on LinuxĬan easily screw your data if you make a mistake. Next, the disk is may be locked by an active process, in which case a reboot generally clears the error.You can use fdisk to change your partition table while running. Resolution: Running " attributes disk clear readonly", as mentioned above, is the first step. The following are common errors you may see if there is a hardware problem: DISKPART> clean Error code: ", the hard drive itself has failed.
If the event log entry states " VDS fails to write boot code on a disk during clean operation. Check your hard drive connections and reload your storage controller driver.
Resolution: If the event log entry states "The driver detected a controller error on \Device", the problem is likely your storage controller on your mainboard. The following are common errors displayed if there is a hardware problem: DISKPART> cleanĭiskPart has encountered an error: The device is not ready.
Resolution: online the disk, create the partition, and convert to mbr before formatting. Resolution: run "clean" before trying to create the partition. There is not enough usable space for this operation. Resolution: clear all data off the disk before converting by running the clean command. CDROMs and DVDsĪre examples of disks that are not convertable. Resolution: run "attributes disk clear readonly" before trying to clean the volume and create the partition. See the System Event Log for more information. The following are common errors displayed if you miss a step: DISKPART> cleanĭiskPart has encountered an error: The media is write protected. Use Diskpart command to Create and Format Partitions Common errors