Using a physical drive/raw drive access with Virtualbox

Using a physical drive/raw drive access with Virtualbox

This comes from the good article here, or in the VirtualBox documentation.

Virtualization has been a tremendous help to developers such as myself. It keeps us from having to keep a pile of hard drives/machines all running different operating systems. And while this is great, there are some times when you might want to use a raw hard drive. For example, if you pull a hard drive out of an existing system and want to keep the OS/data intact but use it as a virtual machine inside another host OS.

Well, you can set up VirtualBox to use a physical hard drive inside a VM. This method is called “raw hard disk access.” This allows you to mount or boot a secondary hard drive or external USB as your storage device inside the VM.

Warning: Do not attempt to mount or boot the partition that runs the host OS with a VM, as that can lead to severe data corruption. And no matter which drive or partition you want to mount, it’s always a good idea to back up any existing data on it before continuing.

Creating the Virtual Machine:

You’ll first want to create a virtual machine within the VirtualBox GUI. Choose all options like normal, but when asked about the virtual hard drive, select Do not add a virtual hard drive.

Next, you’ll need to find the path and drive number of the physical drive you’d like to mount:

In Windows, open Disk Management. You’ll see the associated drive numbers on the left and will identify them later as PhysicalDrive0, PhysicalDrive1, etc.

In Linux, run the following command: sudo fdisk -l. You’ll see a listing of the partitions. Make note of the desired drive in the format of dev/sda0, dev/sda1, etc.

In Mac OS X, use the following command: diskutil list. You’ll see a listing of the partitions. Make note of the desired drive in the format of /dev/disk0, /dev/disk1, etc.

Now open a command prompt on your OS. If you’re using Windows as the host OS you will also need to go to the root directory of VirtualBox using the following command: cd C:\Program Files\Oracle\VirtualBox

Creating the VirtualBox Hard Drive:

Now you can run the command to create the virtual hard drive file that points to your desired physical drive. For each of the following examples ensure that you input the desired names between the arrows and replace the number or pound sign with your desired drive number.

For Windows:
You often must be administrator to run this command. Make sure your cmd.exe is running as administrator. This also means you must start VirtualBox as administrator to use these drive links.

VBoxManage internalcommands createrawvmdk -filename "C:\Users\\VirtualBox VMs\\.vmdk" -rawdisk \\.\PhysicalDrive#

For Linux:

VBoxManage internalcommands createrawvmdk -filename ".vmdk" -rawdisk /dev/sda

For Mac OS X:

VBoxManage internalcommands createrawvmdk -filename ".vmdk" -rawdisk /dev/disk#

This VMDK will be a very small file that simply points to your physical drive. Now you can attach the VMDK to your VM. To do so, open the VirtualBox GUI, select the desired VM, click Settings, clickStorage, click Add Hard Disk button, select Choose existing drive, and then select the VMDK file you just created.

Martin Molin makes 2 more music devices

Martin Molin makes 2 more music devices

The guy that made the incredible marble machine is back at it with two new instruments and a new composition.

He uses a punch-card driven music box (can you say computers in the 1970’s!) and plays a newly written tune on his Modulin – a theremin-like device. Not sure I like it as much as his old tune, but it’s an interesting contraption of Legos, wood, and a creativity combination of old tech.

Liddiard omni-directional tires

Liddiard omni-directional tires

Have trouble parallel parking or getting in/out of really tight places? Try these!

“Setup on this car has an incredible 24,000 pounds of torque directly on the tires. Speed can be adjusted for target application.”

AI Downs Expert Human Fighter Pilot in Dogfight Simulations. Every Time.

AI Downs Expert Human Fighter Pilot in Dogfight Simulations. Every Time.

It is not just that AI’s are doing complex tasks, it’s that they increasingly doing complex evaluative tasks better than the best humans in the whole world. These AI’s can be written by a few (or just one) persons using off-the-shelf compute. This makes it available to almost anyone – at prices far below the price of an average yearly employee salary.

‘A pilot A.I. developed by a doctoral graduate from the University of Cincinnati has shown that it can not only beat other A.I.s, but also a professional fighter pilot with decades of experience. In a series of flight combat simulations, the A.I. successfully evaded retired U.S. Air Force Colonel Gene “Geno” Lee, and shot him down every time. In a statement, Lee called it “the most aggressive, responsive, dynamic and credible A.I. I’ve seen to date.”‘

There’s a lot going on here. A computer should be able to defeat a human pilot due to its lack of concern about excessive G forces and other ‘wet-ware’/human factors. It can take advantage of the full capabilities of our modern strike craft (such as sustained dozen+ G turns) without an concerns of blacking out or loss of cognitive powers.

But there are other serious considerations.

Ease of Creating Systems better than the Best

We see that a single doctoral graduate at a public university was able to create something from commercially available hardware using well published/studied fuzzy logic algorithms that is able to beat some of the world’s best pilots. Consistently. With a little work, in theory, this could be plugged into a real jet and it could take out a good portion of the US, or any other, Air Force. It’s not science fiction – it’s doable by anyone in the world today with the desire and a jet. That puts this easily in the realm of all the superpowers, and even into the hand of a number of 2nd world dictatorships. The compute power, the algorithms, and everything except for the jet are available to you and I today.

The logical response is to then develop AI’s that can fight the other AI’s. This leads to an arms race where humans are not even a part of outside of the tricky work of training and writing the statistical training for the AI’s. Now we have autonomous weapons of war, armed for combat, fighting each other in which people would no longer be able to compete against. The ramifications of this are somewhat staggering – all the way up to a SkyNet style apocalypse. I would recommend the book “Killing without Heart” by Shane Riza for more on this topic.

Social impact

In just the last few years, we’ve seen the rise of IBM’s Deep Blue ravage Jeopardy and defeat chess grand masters. Google AI defeated the Go world champion numerous times. On the commercial front, the rise of Siri/Google voice and other systems that use AI techniques to recognize speech and context get better and better each day. Self driving cars are already becoming a reality and may replace all taxi systems. The US Postal system already uses machines that operate on 30,000 letters per hour (8 letters/second) and have eliminated rooms full of people. What’s surprising is that a lot of these feats are done with machines that only cost about the salary of a single employee for a year.

The ever increasing pace shows us this is becoming widespread and is rapidly being adopted by wide sections of industry. Cloud companies are already in place selling the compute for pennies (Google I/O just announced it is releasing it’s AI systems for super-low prices of just $10/mo). As it replaces big pieces of our day to day lives, it is going to be a profound impact on our society – much like the industrial revolution. It’s not that we can (or should?) stop this development, but these technologies are going to have an even bigger impact than the internet. With that, there are a lot of things to considered with each new development if we wish to avoid to social disasters that plagued the late 1800’s and early 1900’s. It would really be good for us to start thinking about these issues before they become serious problems.

Machine Morals

To that end, we see people already working on imbuing machine learning with morals. We got our first view of how wrong things can go when Microsoft had to shut down it’s Twitter AI Tay after just 24 hours when it started spouting racism, denied the Holocaust, and worse. We also saw a AI controlled robot mysterious escape from a lab – twice. We cannot ignore that these systems will do unpredictable and unexpected things.

So, in the end, we have massively trans-formative technology entering our society. It’s probably a good idea to realize these things are not ‘if’, but ‘when’ realities that will come in our lifetimes. Maybe we should start talking about how we want to live with them in the new world it will create.

 

The Blackbird from The Mill completely blows me away as a concept

The Blackbird from The Mill completely blows me away as a concept

The Blackbird is the world’s first fully adjustable car rig that cannot only alter its chassis to match the precise length and width of almost any car, but its looks as well. Using CGI, the car rig can be re-skinned to look like any car, and its electric motor can be programmed to emulate the driving characteristics of the subject car, too. Automotive content producers no longer need the physical vehicle for a shoot as the Blackbird is a do-it-all-rig.

Dangerous Rise Of Scientism

Dangerous Rise Of Scientism

Great article on the something they are calling ‘Scientism’.

Pythagorean would often invoke the great master Aristotle in order to end a debate. Today we call this logical fallacy the “appeal to authority,” yet we continue to indulge it. Only now, our master is science or, more often, what appears to be science.

The rise of modern science in the seventeenth century was driven by testing and rejecting such appeals to authority. Whether scripture, tradition, or Aristotle, authority could not be allowed to substitute for logic and evidence.  Yet the provisional conclusions of research frequently are announced as definitive before the scientific community has adequately vetted them. But the prestige of science and its scholarly institutions can often obscure just how tentative the claims of much research are. The anti-vaccination movement is an example of the dangers caused by bad or fraudulent scientific research.

Read more here.

Cabin in the Woods

Cabin in the Woods

Hood Canal Cabin by Castanes Architects PS and Ray C. Freeman III

This is the kind of cabin I’d love to own. I love how it’s raised a good 10’+ from the ground so break ins/critter annoyances are greatly minimized when you’re not there, and it allows you to safely leave windows open when you are there.

“The square floor plan rotated so that the living room corner with the tall windows faces the water view. This simple strategy makes the cabin seem larger than its 800 ft2(74.3 m2). People’s eyes are naturally drawn to the windows, so they end up looking towards a corner that is further away than the closest wall. The 16′ high ceiling also contributes significantly to the sense of spaciousness. Vertical elements such as the window mullions and the built-in shelf unit lead the eye upward.”