Solution discovered hours later!
This is a problem of LVM config not being preserved during the fresh install, and the install takes no interest in other disks in the system (sigh).
The clue for this came from: http://linuxwave.blogspot.sg/2007/11/mounting-lvm-disk-using-ubuntu-livecd.html
(This mini-editor makes a mess of text output!)
- pvscan
- vgscan
- lvscan
- vgchange -a y
root@argentine:/home/bruce# pvscan
PV /dev/sdb1 VG tera01 lvm2 [931.00 GiB / 0 free]
Total: 1 [931.00 GiB] / in use: 1 [931.00 GiB] / in no VG: 0 [0 ]
root@argentine:/home/bruce# vgscan
Reading all physical volumes. This may take a while...
Found volume group "tera01" using metadata type lvm2
root@argentine:/home/bruce# lvscan
inactive '/dev/tera01/teravol00' [931.00 GiB] inherit
root@argentine:/home/bruce# vgchange -a y
1 logical volume(s) in volume group "tera01" now active
root@argentine:/home/bruce# lvscan
ACTIVE '/dev/tera01/teravol00' [931.00 GiB] inherit
root@argentine:/home/bruce# mount -t ext3 /dev/sdb1 /tera
mount: /dev/sdb1 already mounted or /tera busy
root@argentine:/home/bruce# mount -t ext3 /dev/tera01/teravol00 /tera
root@argentine:/home/bruce# ls -l /tera
total 32
drwxr-xr-x. 3 root root 4096 Jun 2 2008 export
drwxrwxrwx. 5 root root 4096 Nov 15 2009 kept
drwx------ 2 root root 16384 May 16 2009 lost+found
root@argentine:/home/bruce#
Bingo!!! (I really didn't want to dig them out of the backups!)
I then tried to add the following to to /etc/fstab (for re-boot)
/dev/tera01/teravol100 /tera ext3 defaults 0 2
but that didn't work, so I finally used the GUI system-config-lvm to set it to mount on re-boot. (I think it did something in the background to also activate LVM on re-boot.)
- Hope this helps someone in the future.
Best Answer
If this is an image of a whole hard drive or as in your case this might be an image of an extended partition, you will need to know the partition layout and the offsets of each partition in the file to be able to mount them.
To do this you will need the
parted
tool, you can install it with the following command:After installing
parted
, start it with the path to your image file. Aparted
prompt will be shown:In this prompt (prefixed with
(parted)
) type the following commands:The table in the output will tell you the offsets of each partition in the file and the filesystem type in each partition. For example to mount the first partition in the exemplary output above you will need to enter following command:
Make sure that
/mnt/partition
exists first.