You are not logged in.
Pages: 1
I had an LVM partition with /, /home, and swap and everything was working fine. For irrelevant reasons I decided to reinstall my system the same way I did the first time around. I deleted the existing partitions, re-created them fresh and went to start setting up the logical volume with "pvcreate /dev/sda2" only this time I get an error "Can't initialize physical volume "/dev/sda2" of volume group "vg_arch" without -ff"
I'm lost here, I just want to reformat and reinstall but running into this hang up. I'm copying from the same instructions I used to install the system the first time around and it worked with no issues. The fact that its throwing this error now leads me to believe its somehow conflicting with my previous partitions, even though I thought i dumped those.
Offline
man pvcreateOffline
-f, --force
Force the creation without any confirmation. You can not recreâ€
ate (reinitialize) a physical volume belonging to an existing
volume group. In an emergency you can override this behaviour
with -ff
I dont understand why it thinks there is already a physical volume that belongs to a volume group if I already removed the partitions.
Offline
Well I tried pvcreate -ff /dev/sda2 and got this error now.
"Can't open /dev/sda2. Mounted filesystem?"
Offline
You said that you "deleted the partitions": that doesn't suggest to me that you zero'ed the first sector.
You second error is self-explanatory. Unmount the filesystem.
Offline
As far as I was concerned I did delete the partition. I've never heard of zeroing a "first sector"
And how can /dev/sda2 be mounted if I'm in the live CD and not booted to any system or drive?
Last edited by GunnDawg (2015-06-28 01:51:33)
Offline
The partition table is just a mapping of disk space. Basically, if you create a partition of 500 GB at offset x on the disk and then format it, you have a block of data from x to x+500 GB that represents a formatted disk partition. Deleting the partition does not delete the data between x and x+500 GB.. It just forgets that it should be considered a partition and can thus be used by something else. If you recreate the partition with the same size and offset then it will point to the same data again.
Incidentally, this is what happens when you "delete" files. You only delete the "address" of the data so it's still there on the disk. This is how people can recover deleted files from disks and why you should use secure wipe utilities to delete sensitive data (on non-SSD disks at least... not sure how it works on SSDs).
For your second question, you likely mounted it during the installation procedure or when trying to reformat the disk. Check /proc/mounts and unmount it. You can mount disks from a live CD. That's what enables the live CD to install a system on the host machine.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Pages: 1