How to mount an LVM2 filesystem? (Solved)

Filemanagers, partitioning tools, etc.
Post Reply
Message
Author
williepabon
Posts: 64
Joined: Mon 16 Sep 2013, 22:52
Location: Puerto Rico(USA)

How to mount an LVM2 filesystem? (Solved)

#1 Post by williepabon »

Hi:
I was triying to troubleshoot a laptop using my PupRescue stick and found out that my Puppy wasn't able to mount an LVM2 partition. So, I had to stop the activity. Is there an update for Puppy that solves this problem? Thanks.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#2 Post by rcrsn51 »

Try here.

williepabon
Posts: 64
Joined: Mon 16 Sep 2013, 22:52
Location: Puerto Rico(USA)

#3 Post by williepabon »

rcrsn51 wrote:Try here.
@rcrsn51:

Sorry, I get an error when I try to download from the url you suggested. Are there alternative locations? Thanks.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#4 Post by rcrsn51 »

williepabon wrote:Are there alternative locations?
You would have to ask tempestuous.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#5 Post by tempestuous »

LVM dotpet now uploaded to new location. Details here -
http://www.murga-linux.com/puppy/viewto ... 667#483667

williepabon
Posts: 64
Joined: Mon 16 Sep 2013, 22:52
Location: Puerto Rico(USA)

#6 Post by williepabon »

Thank @tempestuous and @rcrsn51. Found the file and installed it. After installation, do I have to do anything else? Because still, the LVM partition doesn't show in the list of mounted drives. Thanks for your help.
wp

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#7 Post by tempestuous »

williepabon wrote:After installation, do I have to do anything else?
Ooh yes. LVM setup is non-trivial.
I provided the LVM utilities as part of my RAID forum thread, thinking that some RAID configurations might require LVM ... however ...
I don't actually know anything about LVM/LVM2 myself.
But your query has prompted me to do a bit of reading about LVM, mainly from these 2 links -
http://www.linuxquestions.org/questions ... ost4509822
http://superuser.com/questions/116617/h ... lvm-volume
Here's what I THINK you need to do:
First load the dm-mod driver -

Code: Select all

modprobe dm-mod
Scan your system for LVM volumes and identify in the output the volume group name that contains the volume you need -

Code: Select all

vgscan
It will be something like "VolGroup00"

Activate the volume group you just identified -

Code: Select all

vgchange -ay VolGroup00
Find the logical volume that has the files you wish to access -

Code: Select all

lvs
This will list logical volumes. The result(s) will be something like "LogVol00"

Create a mountpoint for your LVM partition. The aforementioned links suggest /mnt/fcroot
but I would think that something like /mnt/lvm would be more intuitive. It's your choice.

Code: Select all

mkdir /mnt/lvm
Finally mount the logical volume -

Code: Select all

mount /dev/VolGroup00/LogVol00 /mnt/lvm
Obviously replace "VolGroup00" and "LogVol00" with your own values.
Now you can access your newly mounted LVM volume at /mnt/lvm

williepabon
Posts: 64
Joined: Mon 16 Sep 2013, 22:52
Location: Puerto Rico(USA)

#8 Post by williepabon »

@tempestuous:

Thanks for answering. I really appreciate your effort to provide a thorough answer to my request, and as you say, this is no trivial matter. In my ignorance I thought it would be a simple app that would run like a daemon, that would detect LVM partitions and would mount them accordingly. You see, I have a PupRescue memory stick that I use to troubleshoot computers, and lately, I've encountered some with LVM partitions. I was looking for a utility that I install on my stick to do the job of detecting and installing LVM partitions. Thank you for your enlightment on this matter and showing me that this is not as simple as I thought. Your diligence on this issue is sincerely appreciated.
wp

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#9 Post by darkcity »


Post Reply