Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Ive been tearing my hair out for about a week now trying to figure out how to do this.

I have two HDD's in my server, both 250gig. They both have ubuntu installed, one is currently booted. I want to mount the second (old) drive to /mnt/external

If I mount through /dev/disk/by-uuid It just mounts the boot partition, and not my actual data.

I also tried vgs-v to determine, but the names are the same, and don't know where to go from here.

root@onlinelabtests:~# vgs -v

Finding all volume groups

Finding volume group "SysVolGroup"

Archiving volume group "SysVolGroup" metadata (seqno 3).

Archiving volume group "SysVolGroup" metadata (seqno 3).

Creating volume group backup "/etc/lvm/backup/SysVolGroup" (seqno 3).

Finding volume group "SysVolGroup"

Archiving volume group "SysVolGroup" metadata (seqno 3).

Archiving volume group "SysVolGroup" metadata (seqno 3).`

Creating volume group backup "/etc/lvm/backup/SysVolGroup" (seqno 3).

VG Attr Ext #PV #LV #SN VSize VFree VG UUID

SysVolGroup wz--n- 4.00m 1 2 0 233.72g 0 812dMv-qSf3-xnpP-khlB-mkIf-q64l-Z2Rawf

SysVolGroup wz--n- 4.00m 1 2 0 233.72g 0 Z3IbWM-FEvq-n6fs-lhm9-5uQq-mdxj-QNfDLJ

and this

root@onlinelabtests:~# vgchange -a y

2 logical volume(s) in volume group "SysVolGroup" now active

2 logical volume(s) in volume group "SysVolGroup" now active

But /dev/disk/by-uuid still doesnt show anything else. Any help appreciated.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

What is in /dev/SysVolGroup and/or dev/mapper

ls /dev/SysVolGroup

Now mount the partitions listed there

sudo mkdir /media/LVM{1,2}
sudo mount /dev/SysVolGroup/first_lvm /media/LVM1
sudo mount /dev/SysVolGroup/second_lvm /media/LVM1

Please take care, Volume groups with the same name can cause problems, I would change the name of one of the two.

share|improve this answer
    
all that is in /dev/SysVolGroup is root and swap_1. I tried that before and if I mount root, its just mounting itself again! –  Cameron Aziz Mar 5 '12 at 18:07
    
Disconnect one of the hard drives, boot a live (desktop) cd , and change the name of the volume group. –  bodhi.zazen Mar 5 '12 at 18:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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