You are not logged in.

#1 2009-11-05 17:50:51

jackmetal
Member
From: US
Registered: 2005-06-13
Posts: 164

dm-crypt / LVM install issue [SOLVED]

--SOLVED--

Jeez..  I've been doing encryption and lvm for a long time..  I can't believe I had a brain fart on the install..  LOL
-------------

Well, I didn't think I'd need to ask for help this quick after coming back to Arch..  LOL

But....

I'm attempting to install an encrypted/LVM system. 
For some reason, I'm getting a busy fs error "Can't open /dev/sda2 exclusively. Mounted filesystem?", when I attempt my pvcreate.

I've done the following:
1) partitioned my drive: /dev/sda1 as unencrypted /boot of 256MB and /dev/sda2 as LVM type for the rest of the disk.
2) then I did my cryptsetup for sda2 (cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/sda2)
3) then open the vol (cryptsetup luksOpen /dev/sda2 root)

Then I attempt my pvcreate (lvm pvcreate /dev/sda2) and get the error above.  I must be forgetting something, does anyone have any idea?

Thanks!!

Last edited by jackmetal (2009-11-05 18:14:23)


--

Some of the world's greatest feats were
accomplished by people not smart enough
to know they were impossible.
-- Doug Larson

Offline

#2 2009-11-07 12:27:28

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: dm-crypt / LVM install issue [SOLVED]

the installer has built-in support for lvm/dm_crypt btw. the advantage of doing it like that is that fstab, rc.conf, mkinitcpio.conf etc will be adjusted accordingly automatically.


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

Board footer

Powered by FluxBB