[wellylug] problem mounting debian partition under ubuntu

Cliff Pratt enkidu at cliffp.com
Tue Sep 22 20:17:33 NZST 2009


Colin Lewis wrote:
> having just had Ubuntu installed on Sunday's installfest, I am now 
> wanting to access my existing documents from my 2nd HDD that my previous 
> Debain install was on.  I was given a set of instructions for using LVM2 
> to identify the Debian partition details in order to then mount it for 
> access from Ubuntu.  These have not worked however, so any assistance in 
> being able to access my second HDD would be appreciated.
> The following are the instructions and the results I obtained using them:
> 
> 1. Install lvm2 using command "$ sudo apt-get install lvm2"
>     appeared to be successful
> 
> 2. Load necessary modules using "$ sudo modprobe dm-mod"
>     got result "FATAL: module mod_dm not found"
> 
> Persevered to step 3 anyway to scan system for LVM volumes to identify 
> the volume group name using "$ sudo vgscan"
>     received result "Found volume group "Debian" using metadata type lvm2"
> 
> 4. Activate the volume using "$ sudo vgchange -ay <volume name>"
>     gave result "3 logical volume(s) in volume group "Debian" now active"
> 
> 5. Find the logical volume that has the root file system using "$ sudo lvs"
>     received result:
>      LV   VG     Attr   LSize   Origin Snap%  Move Log Copy%  Convert
>   home Debian -wi-a- 122.45G                                     
>   root Debian -wi-a-  15.00G                                     
>   var  Debian -wi-a-  10.00G
>     This is where I don't think I got sufficient detail back to proceed 
> further
> 
> Step 6 was to create a mount point using "$sudo mkdir /mnt/debianhd"
>     this appeared to work
> 
> last step which I also haven't done was to mount the Debian volume using 
> "$ sudo mount /dev/<volume name>/<logical volume> /mnt/debianhd -o ro,user"
> 
> Any ideas on how I proceed from here appreciated.
> 
Looks like all you have to do is:

$ sudo mount /dev/Debian/root /mnt/debianhd -o ro,user

Cheers,

Cliff



More information about the wellylug mailing list