I mounted a .hd, and don't know how to unmount...

Questions about applications and software
Forum rules
Before you post please read this

I mounted a .hd, and don't know how to unmount...

Postby Acid_1 on Tue Feb 26, 2008 5:04 am

I followed these instructions to a t.

Open a Terminal, change the current directory to the directory containing

the "ReactOS.vmdk" file and execute the following command:



qemu -m 128 -hda ReactOS.vmdk



You can improve the speed of the virtual machine by installing the appropriate

Kqemu package for your system.



If you want to access and modify files of the virtual hard disk, you have to

convert it to the "raw" format.

To convert it, execute the following commands in the directory containing the

"ReactOS.vmdk" file:



qemu-img convert ReactOS.vmdk -O raw ReactOS.hd



Beware that this takes 2 GB of hard disk space, since a raw hard disk image

is not growable.

Now you can easily mount the image with the following command:



mount -oloop,offset=32256 -t vfat ReactOS.hd /mnt/vhd



In this case, I assume that you want to mount the hard disk image to /mnt/vhd.

Otherwise modify the command line accordingly.



After you unmounted the changed hard disk, you can boot it by executing the

following command:



qemu -m 128 -hda ReactOS.hd


And now i don't know how to unmount it. Any help would be appreciated :P
User avatar
Acid_1
Level 5
Level 5
 
Posts: 817
Joined: Thu Nov 01, 2007 11:12 pm
Location: Saskatchewan, Canada

Linux Mint is funded by ads and donations.
 

Re: I mounted a .hd, and don't know how to unmount...

Postby Slocker on Tue Feb 26, 2008 8:36 am

I pressume should be as any other thing (I've never worked with .hd files) just type:

Code: Select all
sudo umount /mnt/vhd

Notice not to be running qemu, or to have the vhd folder open or something similar, because it won't umount for it's been used at the moment. If you can't this way, you can force it to umount:

Code: Select all
sudo umount -fl /mnt/vhd
Alex Slocker
User avatar
Slocker
Level 2
Level 2
 
Posts: 73
Joined: Thu Nov 01, 2007 2:14 pm
Location: Madrid, Spain


Return to Software & Applications

Who is online

Users browsing this forum: Exabot [Bot] and 17 guests