mount: unknown file system type LVM2_member

So I’m planning on making a series, “mount: unknown file system type $TYPE”. I already have how to mount a ntfs partition, also how to mount a nfs on proxmox, now to be continued by another fun file system. I was going through old disks, so I came across one that had LVM2_member.

root@svennd:~# mount /dev/sdd2 /mnt/disk
mount: unknown filesystem type 'LVM2_member'

The fdisk -l already told me it is a LVM :

root@svennd:~# fdisk -l /dev/sdd

Disk /dev/sdd: 233.8 GiB, 251000193024 bytes, 490234752 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0009345d

Device     Boot  Start       End   Sectors   Size Id Type
/dev/sdd1  *        63    208844    208782   102M 83 Linux
/dev/sdd2       208845 488247479 488038635 232.7G 8e Linux LVM

 (/dev/sdi1 is /boot partition, /dev/sdi2 is where the /home data resides)

Seems lvm2 tools also provide a way to check if it is lvm or not, using lvmdiskscan (/dev/sdd2 here)

root@svennd:~# lvmdiskscan
  /dev/sdb1  [       1.82 TiB]
  /dev/sdc2  [     149.04 GiB]
  /dev/sdd1  [     101.94 MiB]
  /dev/sdd2  [     232.71 GiB] LVM physical volume
  0 disks
  4 partitions
  0 LVM physical volume whole disks
  1 LVM physical volume

Fine, now let’s scan what lv’s (logical volumes) are to be found using lvscan

root@svennd:~# lvscan
 inactive '/dev/VolGroup00/LogVol00' [230.75 GiB] inherit
 inactive '/dev/VolGroup00/LogVol01' [1.94 GiB] inherit

Since this is an old disk in an enclosure, it is not activated on system boot. So we need to “activate” this lvm volume.

root@svennd:~# vgchange -ay
 2 logical volume(s) in volume group "VolGroup00" now active

and bam, ready to mount :

root@svennd:~# lvscan
  ACTIVE            '/dev/VolGroup00/LogVol00' [230.75 GiB] inherit
  ACTIVE            '/dev/VolGroup00/LogVol01' [1.94 GiB] inherit

now to mount :

mount /dev/VolGroup00/LogVol00 /mnt/disk

success !

  • lvm, mount, error, disk
  • 3 Users Found This Useful
這篇文章有幫助嗎?

相關文章

S.M.A.R.T (smartctl) commands and test

Installation of Smartcl in Ubuntu $ sudo apt-get install smartmontools Installation of Smartcl...

How to: Replacing a failed drive in a Linux Software RAID1 configuration (mdraid)

Scenario: A drive has failed in your linux RAID1 configuration and you need to replace it....

Check disk details

lsblk -o name,label,size,fstype,mountpoint,modefdisk -l

How to Increase the size of a Linux LVM by expanding the Disk

This post will cover how to increase the disk space for a VMware virtual machine running Linux...

Setup Flexible Disk Storage with Logical Volume Management (LVM) in Linux – PART 1

Logical Volume Management (LVM) makes it easier to manage disk space. If a file system needs more...

Powered by WHMCompleteSolution