VirtualBox

source: vbox/trunk/doc/manual/en_US/dita/topics/rawdisk-access-entire-physical-disk.dita

Last change on this file was 107390, checked in by vboxsync, 8 weeks ago

Docs: bugref:10705. bugref: 10829. The docs build has been modified to split generated refentry dita files and the user manual files and the following commits from doc's team git repo has been applied:

0946136c74dda0483704db891345cb39548b4e28 Started consolidating known issues and troubleshooting information
845b847e6a8e778b38a57867e25ee5e086a73800 Added individual topics for list of known issues, integrated into Troubleshooting section.
bb574836aac775889bd61e4a72f489617fcb7d18 Removed EFI firmware from experimental features for 7.2
6d2e68b244869991e713d170ecd239739d99ba56 Moved known issues into Known Issues section
e2630c896561587718b5c3197c384a38d07014d5 Merge branch 'VBP-1461_experimental-features' into 'main'
0512e2cce51f49ccdc56f3381a2a0c924f2bd278 Feedback on known issues
a77d6c980f6ff5cad9d32b2fb9290990093a03fa Restructured host and guest OS topics
988af5cc9628f5de0806531bc98686f691a911fd Updates with feedbback from Jacob
982a61c9f25b22b745ec483e763e3d88efe59c40 Included feedback from Jacob
93181c8c6cc2d9a26bcccb1145cb0423c0d9f4c9 Updated known issues with feedback from Klaus
8bc369561c383f09b409fe5e44f507440b3735fb Created Legacy Guest OS section
d7932f55accdab7a03666302d58b8c941cd48be2 Moved known issues to more appropriate places for the info
2a4aa094ba8a7ac6894d2a777316eabf41746580 Further moving of known issues
baeabd5308c5519a4dc26b4197be9b00e419a85a Updated links to cli_topics

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1<?xml version='1.0' encoding='UTF-8'?>
2<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
3<topic xml:lang="en-us" id="rawdisk-access-entire-physical-disk">
4 <title>Access to Entire Physical Hard Disk</title>
5
6 <body>
7 <p>While this variant is the simplest to set up, you must be aware that this will give a guest operating system
8 direct and full access to an <i>entire physical disk</i>. If your <i>host</i> operating system is also booted from
9 this disk, please take special care to not access the partition from the guest at all. On the positive side, the
10 physical disk can be repartitioned in arbitrary ways without having to recreate the image file that gives access
11 to the raw disk. </p>
12 <p>On a Linux host, to create an image that represents an entire physical hard disk which will not contain any
13 actual data, as this will all be stored on the physical disk, use the following command: </p>
14 <pre xml:space="preserve">$ VBoxManage createmedium disk --filename <varname>path-to-file</varname>.vmdk --format=VMDK
15 --variant RawDisk --property RawDrive=/dev/sda</pre>
16 <p>This creates the <filepath><varname>path-to-file</varname>.vmdk</filepath> file image that must be an absolute
17 path. All data is read and written from <filepath>/dev/sda</filepath>. </p>
18 <p>On a Windows host, instead of the above device specification, for example use
19 <filepath>\\.\PhysicalDrive0</filepath>. On a macOS host, instead of the above device specification use for
20 example <filepath>/dev/rdisk1</filepath>. Note that on Mac OS X you can only get access to an entire disk if no
21 volume is mounted from it. </p>
22 <p>Creating the image requires read/write access for the given device. Read/write access is also later needed when
23 using the image from a virtual machine. On some host platforms, such as Windows, raw disk access may be restricted
24 and not permitted by the host OS in some situations. </p>
25 <p>Just like with regular disk images, this does not automatically attach the newly created image to a virtual
26 machine. This can be done as follows: </p>
27 <pre xml:space="preserve">$ VBoxManage storageattach WindowsXP --storagectl "IDE Controller" \
28 --port 0 --device 0 --type hdd --medium <varname>path-to-file</varname>.vmdk</pre>
29 <p>When this is done the selected virtual machine will boot from the specified physical disk. </p>
30 </body>
31
32</topic>
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette