fdisk raw file issue

hamed

Member
Sep 6, 2010
36
0
6
I stopped my VPS and ran the following command to expand it:
Code:
dd if=/dev/zero of=vm-100-disk-1.raw bs=512 count=0 seek=209715200
After this, I run "fdisk vm-100-disk-1.raw", but fdisk gives the following error:
Code:
You must set cylinders.
You can do this from the extra functions menu.


Command (m for help):

when I enter "n" to partition the system, still fdisk gives the above output and does not allow me to create new partitions.

Could anyone please assist me on this?

Thanks
 
Hi tom,
I've already checked that link.
The problem is with fdisk (or cfdisk).
even the un-resized disk image gives that error.
As to cfdisk, it gives the following error:
Code:
  FATAL ERROR: Cannot get disk size
     Press any key to exit cfdisk