2010年11月21日

Mount extend partition - LVM using Knoppix LiveCD

Referenced from this article

- Burned a Knoppix LiveCD - version 5.1.1 (Newest:6.2)
(it has lvm-tools available)
- Booted the PC with Knoppix Live CD
- Started a Terminal

$ su
# lvm vgchange --ignorelockingfailure -P -a y
Code:

Partial mode. Incomplete volume groups will be activated read-only.
2 logical volume(s) in volume group "ubuntu" now active

It shows the name of the "volume group"


# lvm lvs
Code:

LV VG Attr LSize Origin Snap% Move Log Copy%
root ubuntu -wi-a- 142.92G
swap_1 ubuntu -wi-a- 5.89G

# mkdir /vg_mnt
# mount /dev/ubuntu/root /vg_mnt
# ls /vg_mnt/
Code:
bin cdrom etc initrd lib media proc sbin sys usr vmlinuz
boot dev home initrd.img lost+found opt root srv tmp var

# ls /vg_mnt/home/satimis/
all my work displayed here.


Inserted an USB pendrive and copied all my work on it.

# umount /vg_mnt

Now I have my work saved on the USB pendrive. Then I successfully copied my files on another PC.