Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-20-2006, 08:58 PM
|
#1
|
Member
Registered: Dec 2004
Distribution: Fedora Core 5 (Bordeaux), Kubuntu Dapper Drake
Posts: 92
Rep:
|
mounting a fedora LVM from Ubuntu
I installed Fedora 4 to an LVM across two 60 gig disks, but I don't know the syntax to mount that to a seperate Ubuntu install on a different disk. Data and whatnot are on the fedora install, and to the best of my knowledge, you can't just mount a single drive of an LVM and get a drive with useable data.
root@Akona:/home/zack# /sbin/fdisk -l
Disk /dev/hda: 60.0 GB, 60040544256 bytes
255 heads, 63 sectors/track, 7299 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 7299 58524795 8e Linux LVM
Disk /dev/hdb: 60.0 GB, 60040544256 bytes
255 heads, 63 sectors/track, 7299 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 7299 58629186 8e Linux LVM
Disk /dev/hdc: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 23943 192322116 83 Linux
/dev/hdc2 23944 24321 3036285 5 Extended
/dev/hdc5 23944 24321 3036253+ 82 Linux swap / Solaris
|
|
|
04-21-2006, 02:58 AM
|
#2
|
Member
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372
Rep:
|
You can't just mount an lv.
if your ubuntu has lvm installed you can try the following ( as root! )
Code:
vgscan (say your volumegroup is VolGroup00)
vgchange -ay VolGroup00
lvs (check which name the fedora root filesystem has, say /dev/VolGroup00/LogVol00)
cd /mnt
mkdir fedora_root
mount /dev/VolGroup00/LogVol00 fedora_root
This should mount your fedora root filesystem on /mnt/fedora_root. You will have to fill in the blanks, that's all.
Hope this helps?
if the commands ' vgscan' and ' vgchange' don't exist, you can try it with preceding them with ' lvm', so they will be: ' lvm vgscan' and ' lvm vgchange -ay'
|
|
|
04-23-2006, 08:41 PM
|
#3
|
Member
Registered: Dec 2004
Distribution: Fedora Core 5 (Bordeaux), Kubuntu Dapper Drake
Posts: 92
Original Poster
Rep:
|
how do I install lvm on ubuntu?
|
|
|
04-24-2006, 12:59 AM
|
#4
|
Member
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372
Rep:
|
I am not familiar with ubuntu, so I cannot answer that question.
Don't you have the package lvm2 installed (as root, isn't the command lvm available) ?
|
|
|
04-25-2006, 11:52 PM
|
#5
|
Member
Registered: Dec 2004
Distribution: Fedora Core 5 (Bordeaux), Kubuntu Dapper Drake
Posts: 92
Original Poster
Rep:
|
I got the lcm command working, but I don't know where to go from there. How do I pull the data off of the lvm onto the other hard drive using the lvm command?
|
|
|
04-26-2006, 12:31 AM
|
#6
|
Member
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372
Rep:
|
The commands I provided in my first response can be preceeded with the lvm command (for example 'vgchange -ay' can also be achieved with: 'lvm vgchange -ay'.
Try the list of commands I replied above to see if you can get any further...?
|
|
|
04-26-2006, 07:37 PM
|
#7
|
Member
Registered: Dec 2004
Distribution: Fedora Core 5 (Bordeaux), Kubuntu Dapper Drake
Posts: 92
Original Poster
Rep:
|
thanks alot, it worked great!
|
|
|
All times are GMT -5. The time now is 10:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|