Ubuntu – How to mount vhd disk to Ubuntu (Hyper-V)

ext4hyper-vmountUbuntuvhd

I use windows server 2008r2 with role Hyper-V. The guest system is Ubuntu 12.04 LTC. It is situated on the dynamic virtual hard disk VHD1.

I add another VHD2 disk as SCSI. Now I want to mount this disk to Ubuntu. How can I do this?

I'm novice. My problem is that I do not know where new VHD situated. I add this VHD2 disk in hyper-v manager, but I cannot find it in Ubuntu

I can not find this VHD2 in media

Image1

Image 2

Is /dev/sdb my VHD2?

Best Answer

At first you tell Hyper-V to use the VHD as a Harddrive for the Ububtu.

Second you thell ubuntu to mount the disk to a directory. (in general this is done by ubuntu at boot time via automount more about this by googling fstab or automount).

If it is not done automatically you could mount it yourself with:

mkdir -p /mnt/<diskname>
chmod 755 /mnt/<diskname>

mount /dev/sdX /mnt/<diskname>

X is the corresponding letter a,b,c,d... for the disk you will mount a is the first/system disk so if you have no sticks etc. mounted, b is what you need).

Related Question