You are not logged in.

#1 2015-06-28 00:19:24

GunnDawg
Member
Registered: 2015-04-14
Posts: 86

Problem reinstalling Arch

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

#2 2015-06-28 00:59:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Problem reinstalling Arch

man pvcreate

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-06-28 01:13:04

GunnDawg
Member
Registered: 2015-04-14
Posts: 86

Re: Problem reinstalling Arch

-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

#4 2015-06-28 01:20:12

GunnDawg
Member
Registered: 2015-04-14
Posts: 86

Re: Problem reinstalling Arch

Well I tried pvcreate -ff /dev/sda2 and got this error now.

"Can't open /dev/sda2. Mounted filesystem?"

Offline

#5 2015-06-28 01:48:34

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Problem reinstalling Arch

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.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2015-06-28 01:50:49

GunnDawg
Member
Registered: 2015-04-14
Posts: 86

Re: Problem reinstalling Arch

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

#7 2015-06-28 02:36:25

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Problem reinstalling Arch

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

Board footer

Powered by FluxBB