js 调试重定向终端输出

mount raw disk in VirtualBox

Craynic posted @ 2017年9月08日 20:55 in 未分类 , 4187 阅读

先贴结论

vboxmanage internalcommands createrawvmdk -filename "c:\physical.vmdk" -rawdisk "\\.\PhysicalDrive2"
RAW host disk access VMDK file c:\physical.vmdk created successfully. 

起因很简单,我装了一个 portable 的 Archlinux,打算可以即插即用。但是后来发现,一个是新买的本子屏幕太差了(浪费钱),另一个是 PC 机性能严重过剩,同时多系统之间交互也很麻烦,想想还是虚拟机大法好。但是可怜的硬盘空间没剩多少了,装个系统二十个 G 就没了,如果能直接从 U 盘启动就好了。

搜了一下发现是可行的。可以用前面贴的命令生成一个执行裸硬盘的 vmdk 文件,然后在虚拟机里加载就可以了。照着示例找到了磁盘名称,发现是这样的:。这是什么鬼嘛,就算我不大懂 Windows 也明白一个设备是不会在同一个目录有两个名字的。

最后通过各种神奇的办法找到一个方法:wmic diskdrive list brief

Caption                              DeviceID            Model                                Partitions  Size

Samsung SSD 850 EVO 250GB            \\.\PHYSICALDRIVE0  Samsung SSD 850 EVO 250GB            4           250056737280
JetDrive Transcend SCSI Disk Device  \\.\PHYSICALDRIVE1  JetDrive Transcend SCSI Disk Device  7           250994419200
Cenda C5 USB Device                  \\.\PHYSICALDRIVE2  Cenda C5 USB Device                  3           250056737280

可以很明确的找到设备的名称了。

然后塞到前面的命令行里面。

C:\Program Files\Oracle\VirtualBox>vboxmanage internalcommands createrawvmdk -filename "c:\physical.vmdk" -rawdisk "\\.\PhysicalDrive2"
VBoxManage.exe: error: Cannot open the raw disk '\\.\PhysicalDrive2': VERR_ACCESS_DENIED
VBoxManage.exe: error: The raw disk vmdk file was not created

纳尼?是我姿势不对吗?然后我就放弃了。

后来某一天又想起来。试了一下用管理员身份运行。

RAW host disk access VMDK file c:\physical1.vmdk created successfully.

就搞定了……然后还有要注意的是在 VirtualBox Manager 里面打开的时候也要用管理员身份。

再一次败给了 Windows 的奇怪设定。

现在还有一个问题,就是 Windows 启动的时候先看见那块硬盘是不固定的,也就是说这回的 PhysicalDrive2 到了下一回可能就是 PhysicalDrive1 了,我还得重新生成这个 vmdk 文件。目前没找到什么方法能更明确地指定一块驱动器,不过还好我也不经常重启。

  • 无匹配
Avatar_small
move In & move out c 说:
2021年11月08日 23:31

It's vital to have an office cleaning crew that you trust and that show up when they say they should. It's important to get referrals from friends, other business owners and even the Better Business Bureau. Going online and looking for reviews is another way to obtain feedback. Be sure to find a variety of information online, however, as anonymous posts can be misleading, especially if there are only one or two. Ask the cleaners for references and check up on them to ask about the quality of their total service. They should also be licensed, bonded, and insured in case anything goes wrong.

Avatar_small
click here 说:
2024年11月06日 15:06

Windows 10 is the latest version of microsoft windows. For the very first time it was released for the public on July 30, 2015 all over the world. Microsoft gives a free upgrade to Windows 8.1 and Windows 7. All the windows 7 and 8.1 users got the fully featured windows10 for free. The interface of the windows is inspired by both the windows 7 and 8.1. As this windows is quite new in the marketplace. To get the help in windows 10 click on the top links and you will find the best way to get help with the windows 10 with tutorials.

Avatar_small
Learn more 说:
2024年11月06日 15:19

i, i suppose that i saw you visited my site so i got here to “return the desire”. I am searching for matters to enhance my website! I assume its ok to apply some of your ideas!! I’m actually glad i’ve located this information. These days bloggers post most effective approximately gossips and net and that is sincerely tense. A terrific weblog with interesting content, this is what i need. Thanks for maintaining this net-website online, i can be visiting it. Thanks plenty for giving all people remarkably marvellous danger to check suggestions from here. It may be very high-quality and as well , stuffed with a amazing time for me and my workplace pals to visit the blog <a

Avatar_small
카이소 说:
2024年11月06日 15:21

They always treat you like a king; therefore, we will request that you treat them like a queen instead, and you will notice a significant difference. For a very long time, we have been Islamabad's top 

Avatar_small
토토시대 说:
2024年11月06日 15:22

The teacher just told me that I should write a descriptive essay. Your advice will help me. I don’t like writing essays at all. The reason is that I don’t have the relevant skills and I get low grades. That’s why I use

Avatar_small
here 说:
2024年11月06日 15:24

thank you for penning this simple and thrilling weblnew weblog which gives high quality emotions and encourages me in my destiny steps. Thank you for importing this distinctive submit. This blog is straightforward to capture subscribers and attract the reader. I am feeling proud to be your subscriber; your post is so wonderful. Keep it up.

Avatar_small
good contents 说:
2024年11月06日 15:24

How to become an Interior Designer: The first step isfter graduation, you’ll be ready to start your own firm or work for an established one. With hard work and dedication, you can build a successful career as an interior designer.

Avatar_small
토크리 说:
2024年11月06日 15:24

hi, i assume that i saw you visited my web page so i got here to “return the prefer”. I am attempting to find matters to enhance my website! I think its good enough to use some of your ideas!! I’m genuinely happy i’ve located this records. In recent times bloggers put up only about gossips and net and this is honestly tense. An excellent weblog with interesting content, that is what i want. Thank you for retaining this web-website, i could be visiting it. Thank you loads for giving everyone remarkably marvellous chance to test guidelines from right here. It may be very first-rate and as nicely , full of a excellent time for me and my workplace friends to visit the blog

Avatar_small
먹튀타운 说:
2024年11月06日 15:25

How to become an Interior Designer: The first step is to decide After graduation, you’ll be ready to start your own firm or work for an established one. With hard work and dedication, you can build a successful career as an interior designer.

Avatar_small
read more 说:
2024年11月06日 15:27

KIMKOO is Specialized in Manufacturing Mattress Machines. You Can Find the Most Complete Mattress Machines and Euipments From Here.

Avatar_small
마사지매거진 说:
2024年11月06日 15:28

In today's world any thing which could be done offline is now can bn for people having too much interest in sports and many people in various parts of the world have adopted it as a profession or mean of earning income.

Avatar_small
website 说:
2024年11月06日 15:29

I finally found what I was looking for! I’m so happy. Your article is what I’ve been looking for for a long time. I’m happy to find you like this. Could you visit my website if you have time? I’m sure you’ll find a post of interest that you’ll find interesting.

Avatar_small
토토디펜드 说:
2024年11月06日 15:30

I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. 

Avatar_small
View data 说:
2024年11月06日 15:31

now for inspirational entertainment. Lewabo is an online Christian inspirational movie streaming website. Enjoy Action, Thrillers, Romance, Family drama, Kids, Faith, Suspense, Comedy. An entertainment platform for the whole family. Enjoy hundreds of inspiring and uplifting films, african films, american films, nigerian nollywood films, south african films, christian movies. Lewabo is good content entertainment.

Avatar_small
get more info 说:
2024年11月06日 15:36

I have a hard time describing my thoughts on content, but I really felt I should here. Your article is really great. I like the way you wrote this information. 

Avatar_small
meoghyugo 说:
2024年11月06日 15:46

There is so much in this article that I would never have thought of on my own. Your content gives readers things to think about in an interesting way. Thank you for your clear information. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info.

Avatar_small
check here 说:
2024年11月06日 15:54

I am happy to find this post very useful for me, as it contains lot of information. I always prefer to read the quality content and this thing I found in you post. Thanks for sharing 

Avatar_small
good data 说:
2024年11月06日 16:10

Windows 10 is the latest version of microsoft windows. For the very first time it was released for the public on July 30, 2015 all over the world. Microsoft gives a free upgrade to Windows 8.1 and Windows 7. All the windows 7 and 8.1 users got the fully featured windows10 for free. The interface of the windows is inspired by both the windows 7 and 8.1. As this windows is quite new in the marketplace. To get the help in windows 10 click on the top links and you will find the best way to get help with the windows 10 with tutorials.

Avatar_small
good data 说:
2024年11月06日 16:33

Book airline flight tickets with American Airlines' flight reservations official site which are cannot be compared by any other air-ticket booking airline website. 

Avatar_small
information 说:
2024年11月06日 16:45

KIMKOO is Specialized in Manufacturing Mattress Machines. You Can Find the Most Complete Mattress Machines and Euipments From Here.

Avatar_small
check here 说:
2024年11月06日 16:54

After years of wondering if you'll ever find The One, you finally have and are ready to pop the question. You have the ring and know when you want to ask; now you just have to figure out how to ask that all-important question. If you both enjoy brainteasers and other types of puzzles, a puzzle proposal may be the route to take. A puzzle proposal provides many options to personalize everything so she's sure to say "yes." 

Avatar_small
먹튀사이트 说:
2024年11月06日 17:07

I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. 

Avatar_small
information 说:
2024年11月06日 17:19

Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter