Submitted by Locutus on Fri, 06/28/2013 - 09:32
I want to create a swap partition with the Webmin "Paritions on local disks" module, using FDISK, since using PARTED doesn't work for that (error message about "don't use parted to create filesystems..." occurs).
I know I did that successfully in the past, but now, when I try to create a primary Linux Swap partition on an empty (virtual) disk, the GUI hangs, a process "/sbin/fdisk /dev/sdb" is visible in ps, and the Webmin debug log shows:
3290 [28/Jun/2013 16:19:13.521792] root MYIP proc CMD "cmd=/sbin/fdisk /dev/sdb uid= gid="
I guess something's missing there... :) I tried Webmin versions 1.631 and 1.630.
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Fri, 06/28/2013 - 12:25 Comment #1
If you SSH in and run
fdisk /dev/sdb
manually, are you able to create a new partition?Submitted by Locutus on Fri, 06/28/2013 - 13:03 Comment #2
If I type just "fdisk /dev/sdb", it says: "Command (m for help):".
But when I enter the command that Webmin (assumedly, as per debug log and atop) performed, "/sbin/fdisk /dev/sdb uid= gid=", fdisk just prints its Usage information and exits. Incorrect parameters? "man fdisk" doesn't say anything about "uid=" or "gid=".
In case this is helpful:
Submitted by JamieCameron on Fri, 06/28/2013 - 13:23 Comment #3
What if after running
fdisk /dev/sdb
you use it to create an additional partition?If this works, please let me know what commands you ran inside fdisk, and what they output.
Submitted by Locutus on Fri, 06/28/2013 - 16:00 Comment #4
Okay, I played a bit with that command, and here's the screendump. I'm a bit surprised though that you'd need that info, because I know with high certainty that I used that Webmin module before to create partitions... Did you break it somehow? ;)
Don't forget to do "w" at the end (write and exit), which I omitted here.
Submitted by JamieCameron on Fri, 06/28/2013 - 16:38 Comment #5
Ok, so that looks fine. And also it seems that the swap partition was already there?
What kind of VM was this, and which Linux distro and version is it running?
Submitted by Locutus on Fri, 06/28/2013 - 17:15 Comment #6
The swap partition was already there because I had already created it manually, since I needed it. :) For distro see my post #2. Can you specify "what kind"?
Submitted by JamieCameron on Fri, 06/28/2013 - 18:04 Comment #7
By what kind, I mean is the VM Xen, KVM or something else?
Submitted by Locutus on Sat, 06/29/2013 - 03:24 Comment #8
Oh, it's VMware ESXi 5.
Submitted by JamieCameron on Sat, 06/29/2013 - 20:01 Comment #9
I haven't been able to re-produce this problem, perhaps because I don't have a VMware ESXi install to test on.
Any chance I could login to one of your VMs that is showing this problem?
Submitted by Locutus on Sun, 06/30/2013 - 04:49 Comment #10
Yes, certainly! I'll test it again later when I'm on the PC. IIRC it occurs on my experimental VM, I'll send you root access via Virtualmin.
To add to this, I was able to create a partition just fine yesterday on another VMware VM with Ubuntu 10. Maybe the fdisk syntax has changed from 10 to 12?
EDIT: Root login was sent via Virtualmin "Support Login Privileges".
Submitted by JamieCameron on Mon, 07/01/2013 - 01:20 Comment #11
Thanks for the login - looks like there are a couple of issues here :
On your system, fdisk is by default using sectors instead of cylinders. I fixed this though.
The first cylinder is numbered 2 instead of 1 .. and trying to create a partition starting at cylinder 1 fails! I am still digging into this one.
Submitted by JamieCameron on Tue, 07/02/2013 - 21:43 Comment #12
The next release of Webmin will handle this case properly.
Submitted by Locutus on Wed, 07/03/2013 - 02:04 Comment #13
Thumbs up, as usual! :)
Submitted by Issues on Wed, 07/17/2013 - 04:11 Comment #14
Automatically closed -- issue fixed for 2 weeks with no activity.