With a little side of applesauce...

Friday, January 13, 2012

Root your box, and mount LVM partitions

I was teaching a friend how to root a box by adding:

init=/bin/bash
to the kernel line in grub, and then wanted to show him how to install some apps from the command line. I had never done this with LVM partitions, and was surprised when I got the following error:

File based locking initialization failed
Doh! I forgot to remount root read/write:

mount -o remount,rw /
Finally, I was able to mount all my LVM partitions with:
lvm vgscan
lvm vgchange -ay
lvm lvs
mount -a
haha! I'm getting rusty :P

 
 

2 comments:

srart said...

Awesome. I was having a hell of a time figuring this out.Glad you had the answer, would have taken hours to figure it out on my own.

Bruno Pinheiro said...

Thank you friend, that your post has saved hours of work.

RO/Brasil