Fedora Linux Support Community & Resources Center
  #1  
Old 1st September 2010, 05:41 PM
Chiarella Offline
Registered User
 
Join Date: Sep 2010
Posts: 4
linuxfedorafirefox
Angry HOw to mount LVM partition in fedora 7?

There ware much more data files in this partition, but i cannot mount this partition.

[root@local001fd099ab59 home]# fdisk -l /dev/sdb

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 38913 312568641 8e Linux LVM

[root@local001fd099ab59 home]# mount /dev/sdb1 /home/Pub/
mount: you must specify the filesystem type

[root@local001fd099ab59 home]# pvdisplay
--- NEW Physical volume ---
PV Name /dev/dm-0
VG Name
PV Size 298.09 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID dhbhVD-3wI2-1x8B-73Yt-tHVj-L0Xn-SVo46Y


I donot know the filesystem type for linux LVM.

This LVM was created in fedora 7.

I create a vg, and add the pe into it. And "lvscan" but nothing.


How to do?


Thanks.
Reply With Quote
  #2  
Old 1st September 2010, 06:39 PM
steelaworkn Offline
Registered User
 
Join Date: Dec 2008
Location: Pacific Northwest
Age: 48
Posts: 1,140
linuxfedorafirefox
Re: HOw to mount LVM partition in fedora 7?

There is ext2, ext3, and ext4. I would use ext4 or whatever the other discs are set at. You can actually partition the drive ext3 for /boot and then the rest of it can be ext4 believe it or not. Within that ext 4 partition, you can set up ./swap , /home and /root. I'm not sure what you would use ext 2 for any more. Someone else will know, I'm sure.

Oops, sorry. I'm giving info for Fedora 12 and 13. I think ext 2 and ext 3 is for F7.
__________________
My setup:

Intel DP35DP MB; Nvidia 440 2 gig Video Card; 8 gigs of ram; Intel Core Duo 2.20 gig; Hp Officejet Pro L7580; LVM F20 64bit using 3 320g HDs and dual monitors.

Last edited by steelaworkn; 1st September 2010 at 06:44 PM.
Reply With Quote
  #3  
Old 1st September 2010, 07:23 PM
Nord Offline
Registered User
 
Join Date: Feb 2005
Location: London, Ontario, Canada
Age: 34
Posts: 103
linuxfedorafirefox
Re: HOw to mount LVM partition in fedora 7?

try
vgchange -ay

your logical volumes will be available (hopefully) at /dev/VolGroupName/..
Reply With Quote
  #4  
Old 1st September 2010, 09:33 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,550
linuxfedorafirefox
Re: HOw to mount LVM partition in fedora 7?

Just adding on to Nord's correct information to say that with LVM, you mount logical volumes, not partitions as you tried before. After you do Nord's vgchange command, then do lvdisplay to see the names of the volume group and logical volumes. When you figure out which logical volume you're interested in, then mount it. Kinda like this...
Code:
su
vgchange -a y
lvdisplay
mkdir /mnt/temp
mount /dev/VolGroup00/LogVol00 /mnt/temp
And somewhere there must be a boot partition for this system (maybe on /dev/sda?). Anyway, I will not be surprised if another PV exists there with parts of the system, too.
Reply With Quote
  #5  
Old 2nd September 2010, 03:10 AM
Chiarella Offline
Registered User
 
Join Date: Sep 2010
Posts: 4
windows_xp_2003ie
Re: HOw to mount LVM partition in fedora 7?

Thanks for all.


Quote:
[root@leo-linux proc]# vgchange -a y
[root@leo-linux proc]#
[root@leo-linux proc]#
[root@leo-linux proc]#
[root@leo-linux proc]# lvdisplay
[root@leo-linux proc]# mount /dev/VolGroup00/LogVol00 /home/Pub/
mount: you must specify the filesystem type
[root@leo-linux proc]# mount -t ext3 /dev/VolGroup00/LogVol00 /home/Pub/
mount: special device /dev/VolGroup00/LogVol00 does not exist
[root@leo-linux proc]#

"lvdisplay" displays nothing.
"pvdisplay" displays nothing.


This hd was mkfsed in fedora 7. But i setup the fedora 7 again in this pc, and now i cannot mount this hd.



I move this hd to fedora 11.

Code:
Quote:
[root@leo-linux proc]# vgdisplay
[root@leo-linux proc]# pvdisplay
[root@leo-linux ~]# pvdisplay
[root@leo-linux ~]# pvcreate /dev/sdb1
Physical volume "/dev/sdb1" successfully created
[root@leo-linux ~]#
[root@leo-linux ~]# pvdisplay
"/dev/sdb1" is a new physical volume of "298.09 GB"
--- NEW Physical volume ---
PV Name /dev/sdb1
VG Name
PV Size 298.09 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID h7zSHY-9k7V-WqQv-6si0-h60B-1hde-0v0grX

[root@leo-linux ~]#
[root@leo-linux ~]# vgdisplay
You have new mail in /var/spool/mail/root
[root@leo-linux ~]# vgcreate vg00 /dev/sdb
/dev/sdb not identified as an existing physical volume
Unable to add physical volume '/dev/sdb' to volume group 'vg00'.
[root@leo-linux ~]# vgcreate vg00 /dev/sdb1
Volume group "vg00" successfully created
[root@leo-linux ~]# vgdisplay
--- Volume group ---
VG Name vg00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 298.09 GB
PE Size 4.00 MB
Total PE 76310
Alloc PE / Size 0 / 0
Free PE / Size 76310 / 298.09 GB
VG UUID aSiI7I-005b-5VJW-vCrJ-yV5I-2KYC-N3JaGJ

[root@leo-linux ~]# lvscan
[root@leo-linux ~]# vgchange -a y vg00
0 logical volume(s) in volume group "vg00" now active
[root@leo-linux ~]# lv
lvchange lvcreate lvextend lvmchange lvmdump lvmsar lvremove lvresize lvscan
lvconvert lvdisplay lvm lvmdiskscan lvmsadc lvreduce lvrename lvs
[root@leo-linux ~]# lvmdiskscan
/dev/ram0 [ 16.00 MB]
/dev/ram1 [ 16.00 MB]
/dev/sda1 [ 392.18 MB]
/dev/ram2 [ 16.00 MB]
/dev/sda2 [ 3.73 GB]
/dev/ram3 [ 16.00 MB]
/dev/sda3 [ 7.46 GB]
/dev/ram4 [ 16.00 MB]
/dev/ram5 [ 16.00 MB]
/dev/root [ 62.96 GB]
/dev/ram6 [ 16.00 MB]
/dev/ram7 [ 16.00 MB]
/dev/ram8 [ 16.00 MB]
/dev/ram9 [ 16.00 MB]
/dev/ram10 [ 16.00 MB]
/dev/ram11 [ 16.00 MB]
/dev/ram12 [ 16.00 MB]
/dev/ram13 [ 16.00 MB]
/dev/ram14 [ 16.00 MB]
/dev/ram15 [ 16.00 MB]
/dev/sdb1 [ 298.09 GB] LVM physical volume
1 disk
19 partitions
0 LVM physical volume whole disks
1 LVM physical volume
[root@leo-linux ~]# lvscan
[root@leo-linux ~]#
"lvscan" is nothing. then how to do? or other way?

Last edited by Chiarella; 2nd September 2010 at 03:24 AM.
Reply With Quote
  #6  
Old 2nd September 2010, 03:30 PM
Chiarella Offline
Registered User
 
Join Date: Sep 2010
Posts: 4
windows_7ie
Re: HOw to mount LVM partition in fedora 7?

up~~~

-_-
Reply With Quote
  #7  
Old 2nd September 2010, 06:29 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,550
linuxfedorafirefox
Re: HOw to mount LVM partition in fedora 7?

You lost me there. Sorry. I thought you wanted to mount a logical volume in an existing LVM physical volume. I thought maybe you needed to access some data in an old system or something like that. Now I don't know what is happening here. Maybe someone else will. At least I legitimately bumped your thread again. I still think posting fdisk -l is a good idea. You have not done that yet. And if you do that, explain what you know about each partition.
Reply With Quote
  #8  
Old 2nd September 2010, 07:09 PM
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,851
linuxgentoofirefox
Re: HOw to mount LVM partition in fedora 7?

If the OP is trying to recover old data from a previous LVM setup, pvcreate will destroy old PVs residing on the same DOS partitions.
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
  #9  
Old 3rd September 2010, 05:37 AM
Chiarella Offline
Registered User
 
Join Date: Sep 2010
Posts: 4
windows_xp_2003ie
Re: HOw to mount LVM partition in fedora 7?

OK, "fdisk -l" was posted here.

Quote:
[root@leo-linux grub]# fdisk -l

Disk /dev/sda: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe70ce70c

Device Boot Start End Blocks Id System
/dev/sda1 1 50 401593+ 83 Linux
/dev/sda2 51 537 3911827+ 83 Linux
/dev/sda3 538 1511 7823655 83 Linux
/dev/sda4 1512 9730 66019117+ 5 Extended
/dev/sda5 1512 9730 66019086 83 Linux

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0007dc12

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 38913 312568641 8e Linux LVM
Reply With Quote
  #10  
Old 3rd September 2010, 06:05 PM
cazo Offline
Registered User
 
Join Date: Sep 2005
Location: Redneck Riviera
Posts: 362
linuxfedorafirefox
Re: HOw to mount LVM partition in fedora 7?

I had a similar problem with a drive, and had to use:
Code:
kpartx -lv /dev/sdb
which will "list partition mappings that would be added by -a". You may need to install the kpartx package for this.

The whole sequence was something like:
Code:
kpartx -av /dev/sdb
lvs
vgchange -ay VolGroup01
mount /dev/mapper/VolGroup01-LogVol00   /home/Pub
However, like forkbomb said, I think the pvcreate and vgcreate likely overwrote enough of the partition to make recovery unlikely.

You might try installing system-config-lvm and running it (from System, Administration, Logical Volume Management.
Reply With Quote
Reply

Tags
fedora, lvm, mount, partition

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Live CD installer won't mount F12 /home partition to F13. Replicant10000 Installation, Upgrades and Live Media 0 6th June 2010 07:14 AM
Auto mount NTFS partition fedora 12 time4e Using Fedora 6 26th April 2010 09:45 PM
Having trouble trying to mount ntfs partition in Fedora 10 sean1970 Using Fedora 9 19th March 2009 06:28 PM
mount other partition on fedora core 5 iamvietnamese Using Fedora 2 4th November 2006 12:20 PM


Current GMT-time: 22:26 (Wednesday, 22-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Kimhae Travel Photos - Adelfia Instagram Photos - Hemmingen