LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 04-20-2006, 08:58 PM   #1
cerealdaemon
Member
 
Registered: Dec 2004
Distribution: Fedora Core 5 (Bordeaux), Kubuntu Dapper Drake
Posts: 92

Rep: Reputation: 15
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
 
Old 04-21-2006, 02:58 AM   #2
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372

Rep: Reputation: 42
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'
 
Old 04-23-2006, 08:41 PM   #3
cerealdaemon
Member
 
Registered: Dec 2004
Distribution: Fedora Core 5 (Bordeaux), Kubuntu Dapper Drake
Posts: 92

Original Poster
Rep: Reputation: 15
how do I install lvm on ubuntu?
 
Old 04-24-2006, 12:59 AM   #4
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372

Rep: Reputation: 42
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) ?
 
Old 04-25-2006, 11:52 PM   #5
cerealdaemon
Member
 
Registered: Dec 2004
Distribution: Fedora Core 5 (Bordeaux), Kubuntu Dapper Drake
Posts: 92

Original Poster
Rep: Reputation: 15
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?
 
Old 04-26-2006, 12:31 AM   #6
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372

Rep: Reputation: 42
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...?
 
Old 04-26-2006, 07:37 PM   #7
cerealdaemon
Member
 
Registered: Dec 2004
Distribution: Fedora Core 5 (Bordeaux), Kubuntu Dapper Drake
Posts: 92

Original Poster
Rep: Reputation: 15
thanks alot, it worked great!
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem mounting LVM conalmc Linux - Newbie 3 02-15-2006 12:29 PM
Problems mounting LVM-partition RacerDude Fedora 1 11-22-2005 11:04 AM
Mounting a JFS LVM vbtalent Fedora 4 08-29-2005 11:28 AM
LVM at boot time Ubuntu 64 bits HellSpawn Ubuntu 1 07-13-2005 07:53 PM
LVM volume mounting trouble SergeyAC Linux - Software 3 04-11-2005 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:20 PM.

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