Submitted by Locutus on Sat, 10/13/2012 - 13:58
When I set the module to mode "fdisk", under Ubuntu 12, the "Total Size" column is empty.
In the details for a disk, the Cylinder count is an incorrect very high number. "Size" is given in blocks instead of GB, and the start and end cylinder are incorrect.
Also, when trying to create a new partition on an empty disk, the process fails and the webpage loads endlessly.
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Sat, 10/13/2012 - 18:29 Comment #1
Is this Ubuntu 12.04, or a later version?
Also, could you post the output from the commands
fdisk -l /dev/sda
andparted /dev/sda unit cyl print
?Replace
/dev/sda
with the root disk from your system ..Submitted by Locutus on Sun, 10/14/2012 - 08:07 Comment #2
It's an Ubuntu 12.04 LTS with all packets updated to latest versions.
I can see where you're going with your question. :) It indeed seems the default behavior of
fdisk
has changed. Output offdisk -l /dev/sda
on Ubuntu 12:For comparison on Ubuntu 10. Units was "cylinders" back then and has changed to sectors on Ubuntu 12, hence the large size values.
The output for
parted /dev/sda unit cyl print
is identical on both systems, probably due to the "unit cyl" directive which actively selects the right unit:Submitted by JamieCameron on Sun, 10/14/2012 - 18:28 Comment #3
That output format actually looks fine.
Could you attach or email me a screenshot of the page that is showing the incorrect size?
Also, on the main page of the Partitions on Local Disks module, what does it say under the title - either "Using fdisk" or "Using parted" ?
Submitted by Locutus on Mon, 10/15/2012 - 12:38 Comment #4
Certainly, please find the screenshots attached.
Under the title, it says "Using parted" when I choose "Automatically" or "parted" in the module config, otherwise it says "Using fdisk" when I force that. The problem only occurs in fdisk mode.
The first screenshot shows the disk overview, with empty size column. SCSI device A should have 25.59 GB size.
The second screenshot shows the details for device A. Cylinder count should be 3264, and the size is missing.
Also, please remember that it's not only incorrectly displayed. When I try to create a partition in fdisk mode, the page loads endlessly (script hangs).
Submitted by JamieCameron on Mon, 10/15/2012 - 13:04 Comment #5
Ok, that makes sense now. I will fix Webmin in the 1.610 release to force fdisk to output sizes in cylinders, so that my parsing code works properly..
Submitted by Locutus on Tue, 10/16/2012 - 07:59 Comment #6
Thumbs up! :D