Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
#fdisk -l

/dev/sdb1   *           1        9702    77931283+  8e  Linux LVM

I tried the following command:

#mkdir /media/backup
#mount /dev/sdb1 /media/backup

mount: unknown file system 'LVM2_member'

How do I mount it?

share|improve this question
add comment

3 Answers

up vote 4 down vote accepted

I found the solution

#pvs
/dev/sdc5 intranet lvm2 a- 372,37G 0

# lvdisplay /dev/intranet
LV Name                /dev/intranet/root

#mount /dev/intranet/root /media/backup
share|improve this answer
add comment

You probably want to look at the *scan commands, pvscan, vgscan and lvscan. This will search for the various lvm components. If /dev/sdb1 is a physical volume that has a volume group with a logical volume, it should show up. If lvscan produces something like:

ACTIVE '/dev/vg00/home' [9.00 GB] inherit

Then you can mount /dev/vg00/home as /home.

share|improve this answer
add comment

Did you create a filesystem on the new device?

mkfs -j /dev/sdb1

or mkfs.ext3 /dev/sdb1

share|improve this answer
    
the "new device" is the old hard disk that were already working in another machine as the boot partition. I don't want to overwrite nothing on it –  Jader Dias Jul 6 '09 at 19:40
    
Indeed you don't. Sorry for the assumptions... After re-reading it is a bit more plain but I see you have the answer below. –  oneodd1 Jul 6 '09 at 20:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.