Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-13-2009, 10:54 PM   #1
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Rep: Reputation: 32
Question How do you mount an LVM partition with a liveCD?

I need to boot in to Knoppix and mount my root LVM2 partition... how do I do that?
Old 01-13-2009, 11:34 PM   #2
Senior Member
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,277

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Grab a terminal window, then:

su -
mkdir /mnt/tmp (if it's not already there)
vgchange -ay
lvs (determine the volume group name and logical volume name you're interested in)
mount /dev/vg_name/lv_name /mnt/tmp
cd /mnt/tmp
ls -l

If you have a very old version of Knoppix, it may not have LVM included. You can install LVM like this (you would have to do this before the vcsan command shown above):

su -
modprobe dm-mod
apt-get update
apt-get install lvm-common lvm

Newer versions of Knoppix have LVM included, so you wouldn't have to do these modprobe and apt-get's.

If you need to do something like change the root password in the volume you mounted, you will have to chroot to it:

su -
chroot /mnt/tmp
passwd ...

... otherwise, you'd be changing the root password in the booted Knoppix system, not the underlying distro who's root filesystem you are mounting on /mnt/tmp.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I mount LVM partition in ubuntu? yesglass Fedora 12 10-24-2013 10:10 AM
How to mount a LVM partition using a live cd brazilian_user Linux - General 4 06-16-2009 02:11 AM
can't mount lvm partition alris Linux - General 2 12-19-2007 04:33 PM
How to make LiveCD detect and mount extend/LVM partition satimis Linux - General 2 08-30-2007 10:01 PM
mount a LVM partition pavi Linux - General 1 10-29-2005 11:56 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration