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

6

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
  • 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. – y3sh Jan 6 '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 6: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.

0

Did you create a filesystem on the new device?

mkfs -j /dev/sdb1

or mkfs.ext3 /dev/sdb1

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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