LinuxQuestions.org
Help answer threads with 0 replies.
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-06-2008, 08:27 PM   #1
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Rep: Reputation: 15
Question How do I mount existing Fedora LVM after new Kubuntu install?


Hi,
I have a 500gb hdd with xp, and fedora8 installed. There are 170+gb free space after those two. I installed Kubuntu here.

I assumed that Kubuntu would edit grub to include kubuntu, xp as well as fedora, but it only does kubuntu and xp.

Unfortunately, the Fedora8 was installed as LVM, but all my files are here and want to be able to transfer betweed the kubuntu and fedora partitions.

I tried to make sure Kubuntu wasn't touching the LVM partition during install, but when I go to kmenu> System Settings> Advanced> Disk & Filesystems It's showing what should be a Fedora LVM as a mount point of /proc. What does this mean? There's nowhere to change that and I'm not sure I want to risk it.


fdisk -l shows this:


Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xeca89011

Device Boot Start End Blocks Id System
/dev/sda1 * 1 3187 25599546 7 HPFS/NTFS
/dev/sda2 3188 19122 127997887+ 7 HPFS/NTFS
/dev/sda3 19123 19135 104422+ 83 Linux
/dev/sda4 19136 60801 334682145 5 Extended
/dev/sda5 19136 38913 158866753+ 8e Linux LVM
/dev/sda6 38914 39423 4096543+ 82 Linux swap / Solaris
/dev/sda7 39424 60801 171718753+ 83 Linux


fstab has this (looks like my windows partitions and my optical drive.)

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda7
UUID=335ad472-2db4-4ba5-b28f-febac34f4713 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda1
UUID=9E4837134836EA23 /media/sda1 ntfs defaults,umask=007,gid=46 0 1
# /dev/sda2
UUID=58C0F711C0F6F45A /media/sda2 ntfs defaults,umask=007,gid=46 0 1
# /dev/sda3
UUID=a9b0ea94-7d62-4b2a-b87f-76f05598c94b /media/sda3 ext3 defaults 0 2
# /dev/sda6
UUID=0324973b-4f17-4adb-b8bd-7c10deb06028 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0


I've thought about just adding /dev/sda5 to fstab but how do I find out its UUID?

This is getting frustrating.

Help me out guys. I need those files off my LVM.

I can post grub's menu.lst from pre and post Kubuntu if needed 'cause I can kept copies before I did the install.

So far I like Anaconda LOTS better.

Any thoughts?
 
Old 04-12-2008, 11:27 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
Since the LVM is present as a partition, try these steps

# pvscan
# vgscan
# vgchange -a y

After this the logical volumes must be visible. Try mouting them and getting the data

After the command of vgchange, you must get some information on the numberof logical volumes which got activated.
 
Old 04-23-2008, 02:35 AM   #3
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Original Poster
Rep: Reputation: 15
Hi!
Sorry, I've taken so long to reply.
I tried those commands. Here is what they displayed.

Quote:
pvscan
No matching physical volumes found
Quote:
vgscan
Reading all physical volumes. This may take a while...
No volume groups found
Quote:
vgchange -a y
No volume groups found
Is this because the LVM isn't in fstab?

... or am I doing something wrong?

Thanks for your help!
 
Old 05-15-2008, 11:31 AM   #4
thanquol
Member
 
Registered: Aug 2003
Location: Northern Sweden
Distribution: Fedora Core 3
Posts: 52

Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by bhaslinux View Post
Since the LVM is present as a partition, try these steps

# pvscan
# vgscan
# vgchange -a y

After this the logical volumes must be visible. Try mouting them and getting the data

After the command of vgchange, you must get some information on the numberof logical volumes which got activated.
Thanq you!

This solved my problems. I got the following:

[root@Loke ~]# pvscan
PV /dev/sdc1 VG datadisc lvm2 [698,64 GB / 0 free]
PV /dev/sdb1 VG datadisc lvm2 [698,64 GB / 0 free]
PV /dev/dm-0 VG VolGroup00 lvm2 [148,84 GB / 32,00 MB free]
[root@Loke ~]# vgscan
Reading all physical volumes. This may take a while...
Found volume group "datadisc" using metadata type lvm2
Found volume group "VolGroup00" using metadata type lvm2
[root@Loke ~]# vgchange -a y
1 logical volume(s) in volume group "datadisc" now active
2 logical volume(s) in volume group "VolGroup00" now active

after that I mounted the device manually:
[root@Loke ~]# mount -t ext3 /dev/datadisc/LogDatadisc /home/<my home dir>/dl/

when it worked I edited /etc/fstab with the new mounting point.
 
Old 08-03-2009, 02:52 PM   #5
nyeates1
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 1
not logged in as root

Quote:
Originally Posted by Erik765 View Post
Hi!
Sorry, I've taken so long to reply.
I tried those commands. Here is what they displayed.

pvscan
No matching physical volumes found

Is this because the LVM isn't in fstab?

... or am I doing something wrong?

Thanks for your help!
Those commands results are what happen when you run those commands with user of not high enough privileges (root user).

Either use sudo in front of each command, or su - to login as root user.

If you want some LVM notes and tips see my wiki: http://nickyeates.com/technology/uni...filesystem_lvm

-Nick Yeates-
http://www.nickyeates.com
 
Old 08-03-2009, 02:59 PM   #6
nyeates1
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 1
I got my issue solved cause of this thread!

Quote:
Originally Posted by thanquol View Post
Thanq you!

This solved my problems. I got the following:

[root@Loke ~]# pvscan
PV /dev/sdc1 VG datadisc lvm2 [698,64 GB / 0 free]
PV /dev/sdb1 VG datadisc lvm2 [698,64 GB / 0 free]
PV /dev/dm-0 VG VolGroup00 lvm2 [148,84 GB / 32,00 MB free]
[root@Loke ~]# vgscan
Reading all physical volumes. This may take a while...
Found volume group "datadisc" using metadata type lvm2
Found volume group "VolGroup00" using metadata type lvm2
[root@Loke ~]# vgchange -a y
1 logical volume(s) in volume group "datadisc" now active
2 logical volume(s) in volume group "VolGroup00" now active

after that I mounted the device manually:
[root@Loke ~]# mount -t ext3 /dev/datadisc/LogDatadisc /home/<my home dir>/dl/

when it worked I edited /etc/fstab with the new mounting point.
THANKS bhaslinux and thanquol!!! You helped solve a 1.5 year long problem of data being stuck on some drives of mine. I had made the LVM2 group with EVMS a few years back, and all a sudden EVMS didnt know how to mount it anymore. EVMS was a graphical raid and LVM creation utility, that has since gone under. Luckily these commands brought it right up!

Code:
pvscan
pvdisplay (physical volume display)
vgdisplay (volume group display)
lgdisplay (logical group display)
Code:
root@lms:~# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "Media" using metadata type lvm2

root@lms:~# vgchange -a y
  1 logical volume(s) in volume group "Media" now active
Saw in file listings of /dev/Media/ and /dev/mapper/ that devices existed!

Code:
root@lms:/dev/mapper# mkdir /media/olddocuments
root@lms:/dev/mapper# mount -t ext3 /dev/Media/CargoPlane /media/olddocuments/
 
1 members found this post helpful.
  


Reply

Tags
lvm, restore


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
upgrade to fedora 8 how to mount old lvm ? gfem Fedora 1 12-10-2007 01:53 PM
Raid array resized - Cannot mount LVM - Fedora Core 5 rimfire Linux - Software 0 11-29-2006 01:08 AM
how to mount an LVM to existing system? fc3_fan Linux - General 6 08-04-2006 06:32 PM
accessing fedora lvm on Kubuntu Dapper cerealdaemon Ubuntu 1 04-26-2006 03:49 AM
existing LVM partition won't mount anymore dehuszar Linux - Software 1 09-10-2004 02:26 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration