LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   How can I mount LVM partition in ubuntu? (https://www.linuxquestions.org/questions/fedora-35/how-can-i-mount-lvm-partition-in-ubuntu-569507/)

yesglass 07-15-2007 10:09 AM

How can I mount LVM partition in ubuntu?
 
Hi. I have fedora LVM partitions. I want to mount them in ubuntu Live CD, but I don't know how. Is there a way
Thanks.

Brian1 07-15-2007 01:22 PM

Not sure if the Live CD supports LVM but from a quick google search there are many links on the subject. This one is simply. http://www.linux-sxs.org/storage/fedora2ubuntu.html

Brian

pirulo 09-30-2008 03:18 AM

For this procedure, you need a connection to Internet.
After the system has been loaded from the live cd, install lvm, load the module and then activate the volumes
Code:

sudo -i
apt-get install lvm2
modprobe dm-mod
vgchange -a y

then lvm is ready for use. For help
Code:

lvm help
More info:
http://linuxwave.blogspot.com/2007/1...tu-livecd.html
http://www.terryburton.co.uk/blog/20...on-lvm_18.html

smurthy 11-21-2008 02:57 AM

Quote:

Originally Posted by Brian1 (Post 2824175)
Not sure if the Live CD supports LVM but from a quick google search there are many links on the subject. This one is simply. http://www.linux-sxs.org/storage/fedora2ubuntu.html

Brian


Brian, thanks

The link you provided above worked real well for me.

murthy

aktar_alam 09-29-2009 11:16 PM

Quote:

Originally Posted by pirulo (Post 3295752)
For this procedure, you need a connection to Internet.
After the system has been loaded from the live cd, install lvm, load the module and then activate the volumes
Code:

sudo -i
apt-get install lvm2
modprobe dm-mod
vgchange -a y

then lvm is ready for use. For help
Code:

lvm help
More info:
http://linuxwave.blogspot.com/2007/1...tu-livecd.html
http://www.terryburton.co.uk/blog/20...on-lvm_18.html

Thanks alot this was a mammoth task,
because all my critical data were in the hard disk and I was just lost what to do!!!!!!!!!!
Thanks a lot for your guidance

dezmond 02-24-2010 06:00 PM

Thanks much! Once more, LQ comes through for me. :)

Darxus 07-20-2010 11:46 AM

Just quoting the instructions from the linked page from archive.org since the original is down.

@#$!@$ can't link to the page on archive.org because I just registered to post this.

Quote:

Accessing a Fedora Logical Volume from Ubuntu

Submitted by: Kurt Wall
Update by:
Date Submitted: 10 Apr 2007
Document Version: 1.0
Last Updated: Sat, 02 Feb 2008 17:46:54 GMT
A while back, I started experimenting with Ubuntu after playing with Fedora. I decided to jump to Ubuntu and needed to move data from the Fedora-managed logical volume to Ubuntu. Here's what I did.

Boot Ubuntu.

Install lvm2:
$ sudo apt-get install lvm2

Load the necessary module(s):
$ sudo modprobe dm-mod

Scan your system for LVM volumes and identify in the output the volume group name that has your Fedora volume (mine proved to be VolGroup00):
$ sudo vgscan

Activate the volume:
$ sudo vgchange -ay VolGroup00

Find the logical volume that has your Fedora root filesystem (mine proved
to be LogVol00):
$ sudo lvs

Create a mount point for that volume:
$ sudo mkdir /mnt/fcroot

Mount it:
$ sudo mount /dev/VolGroup00/LogVol00 /mnt/fcroot -o ro,user

Copied my files.
You can skip the modprobe now, at least on Jaunty.

TheJaspMan 10-28-2010 07:54 AM

Does anyone have an idea why Ubuntu would be unable to locate lvm2 package? I'm trying to mount and LVM partition for an emergency recovery.

This is the error I receive:

root@chuckd-System-Product-Name:~# apt-get install lvm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package lvm2
root@chuckd-System-Product-Name:~#

dezmond 10-29-2010 02:06 PM

TheJaspMan,

Not sure what version of Ubuntu you're on. At a guess though, based on your post, your network may not be configured.

Here's what I get:
Quote:

# cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"
# apt-get install lvm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libdevmapper-event1.02.1 watershed
The following NEW packages will be installed:
libdevmapper-event1.02.1 lvm2 watershed
0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded.
Need to get 463kB of archives.
After this operation, 1,266kB of additional disk space will be used.
Do you want to continue [Y/n]?

aktar_alam 03-18-2011 06:48 AM

Installing lvm2
 
Quote:

Originally Posted by TheJaspMan (Post 4142159)
Does anyone have an idea why Ubuntu would be unable to locate lvm2 package? I'm trying to mount and LVM partition for an emergency recovery.

This is the error I receive:

root@chuckd-System-Product-Name:~# apt-get install lvm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package lvm2
root@chuckd-System-Product-Name:~#

I have no idea what version of Ubuntu you are using but I also faced the same issue while
installing lvm2 using ubuntu 5.10.
Firstly ensure that you have proper network connection(you may check by making any search on google)
And then try apt-get install lvm2.....

Hope it works for ......:newbie:

Casanogab 10-27-2011 09:14 AM

1. Boot Ubuntu.
2. Install lvm2:

$ sudo apt-get install lvm2

3. Load the necessary module(s):

$ sudo modprobe dm-mod

4. Scan your system for LVM volumes and identify in the output the volume group name that has your Fedora volume (mine proved to be VolGroup00):

$ sudo vgscan

5. Activate the volume:

$ sudo vgchange -ay VolGroup00

6. Find the logical volume that has your Fedora root filesystem (mine proved to be LogVol00):

$ sudo lvs

7. Create a mount point for that volume:

$ sudo mkdir /mnt/fcroot

8. Mount it:

$ sudo mount /dev/VolGroup00/LogVol00 /mnt/fcroot -o ro,user
OR sudo mount /dev/mapper/VolGroup00/LogVol00 /mnt/fcroot -o ro,user

9. Copied my files.

k1berpunk 10-16-2013 06:10 AM

Thanks guys, your instructions solved this problem once for me.
But now it happens again and after final step terminal returns one string: 'Killed'.
Mount folder is empty.
If I try to mount again it just stuck and not react on Ctrl+C or any.

Quote:

root@ubuntu:/~# mount /dev/myGroup/myVol /mnt/mntPoint -o ro,user
Killed
root@ubuntu:/~# ls /mnt/mntPoint
root@ubuntu:/~# mount /dev/myGroup/myVol /mnt/mntPoint -o ro,user


Also tried /dev/mapper/myVol-myPoint with same result.
Any clues?

k1berpunk 10-24-2013 09:10 AM

Problem solved by using openSUSE liveCD instead of Ubuntu.


All times are GMT -5. The time now is 11:21 PM.