You are not logged in.
I have two hard drives (sda and sdb), one is 2T of memory (sda) where I am trying to partition
as suggested in https://wiki.archlinux.org/index.php/beginners'_guide#Partitioning_tools
I am using cfdisk for doing so. The issue is that when I select [ Write ] it returns to me
Failed to write disklabelHow I overcome this?
Ps.
I saw this post https://bbs.archlinux.org/viewtopic.php?id=171056 but I don't know how
to find out if it's the ssd device that I am trying to rewrite the partition table (I think this
is not the case because the other device has 30GiB of size)
Last edited by Thorvald (2016-05-11 22:19:06)
Offline
Is this bare metal or inside a virtual machine? Some VM do not allow you to write to sector 0 of your disk so you can not change the MBR, msdos partition table.
Is there anything in `dmesg`? Do other programs (such as `parted`, `gdisk`, regular `fdisk`) work?
Offline
There's no virtual machine.
Using parted gives me a warning when creating the first partition (EFI)
(parted) mkpart ESP fat32 1MiB 513MiB
Warning: You requested a partition from 1049kB to 538MB (sectors ...)
The closest location we can manage is 1048kB to 1048kB. Is this acceptable to you?dmesg gives me a bunch of things, I don't know what exactly I have to look in there.
Last edited by Thorvald (2016-05-11 22:32:11)
Offline
The parted message suggests that there is already a partition there.
In parted, this should show you (in sectors and MiB) what's there and what's free. (Unfortunately, parted uses the stupid unit by default)
unit s
print free
unit mib
print freeLast edited by frostschutz (2016-05-11 22:36:16)
Offline
Indeed I am formatting (erasing) windows partitions. Before the message from parted that I posted it appeared to me
something like Fix the partition, similar to http://serverfault.com/questions/716270 … d-argument
"I managed to solve this rather simply. I installed parted and when I ran that it informed me that the partition table didn't cover the full disk (duh), so it asked me Fix/Cancel to which I responded with Fix. Apparently, that did the trick as I was able to modify the partition to the full size using sudo fdisk /dev/vda, but afterwards I did need to run sudo resize2fs /dev/vda3 to have the changes applied."
Running cfdisk and rebuilding the partition gave me no problems. I ran also resize2fs /dev/sda but there's an error here saying that the device is busy.
Now I cannot format the partitions, there are warning messages as the resource is busy or apparently in use by the system.
After rebooting I could format all the partitions.
Last edited by Thorvald (2016-05-11 23:22:43)
Offline