I have a hard disc from the old mixedbredie server that was corrupted by a faulty memory module. The disk was formatted under Ubuntu 8.04 as ext3 and was part of a logical volume (LVM). Using an external SATA caddie I tried to access the disc via eSATA (didn’t work) and then USB. however, only the boot sector of the disc mounted and I couldn’t get to the data that I really needed.
So, how do I mount an ext3 formatted disc that was part of a logical volume to save the data?
- Install lvm2:
$ sudo apt-get install lvm2
- Load the necessary module(s):
$ sudo modprobe dm-mod
- Scan your system for LVM volumes and identify in the output the volume group name that has your Ubuntu volume (mine proved to be NKOSI):
$ sudo vgscan
- Activate the volume:
$ sudo vgchange -ay NKOSI
- Find the logical volume that has your Ubuntu root filesystem (mine proved to be nkosi-root):
$ sudo lvs
- Create a mount point for that volume:
$ sudo mkdir /mnt/fcroot
- Mount it:
$ sudo mount /dev/mapper/nkosi-root /mnt/nkosiroot -o ro,user
- Copied my files.
I found these instructions here and have reproduced them in this post for future reference. The original post referenced a Fedora install and I have changed the references above to Ubuntu.