Archive for November, 2012

Find strings in one file which are not present in another file

November 16, 2012

When there is one string per line and they are not sorted, the simplest solution  would be:

grep -Ffx file2 -v file1

Debian :: Accessing lvm from single user mode

November 9, 2012

We have /usr mounted on lvm,  so it’s tricky to get the commands in
/usr/bin and /usr/sbin to work in single user mode. lvm devices wont
be loded by default.

lvm vgscan
lvm vgchange -ay
lvm lvs

Now you should see your normal LVM devices in /dev (example:
/dev/LVM-GROUP/LVM-VOLUME) . You can mount and use them.