5
#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?

Izzy
  • 8,224
  • 2
  • 31
  • 35
Jader Dias
  • 4,705
  • 19
  • 50
  • 51

3 Answers3

7

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
Jader Dias
  • 4,705
  • 19
  • 50
  • 51
  • 2
    Note that on Ubuntu 14+, if you just `sudo apt-get install lvm2` and reboot, the lvm2 volume will auto mount in the file browser. – Josh Hibschman Jan 06 '16 at 16:46
  • @y3sh Thanks! My Ubuntu 17.10 system for some reason was no longer booting. "Welcome to emergency mode!" it would print on the screen. Used LiveCD to boot and comment out the LLVM partition in /etc/fstab, and it finally booted again. Installed lvm2 package as you wrote, put the original entry back in fstab, everything works as it used to. – Stéphane Dec 26 '17 at 06:37
2

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.

Alex
  • 6,603
  • 1
  • 24
  • 32
0

Did you create a filesystem on the new device?

mkfs -j /dev/sdb1

or mkfs.ext3 /dev/sdb1

oneodd1
  • 608
  • 1
  • 6
  • 11
  • 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 06 '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 06 '09 at 20:28