How does Bootcamp Assistent create a Windows Boot USB? - usb

Im trying to reproduce the output of the Bootcamp Assistent, resulting in a bootable Windows USB (Windows 7/8/etc) on a Mac from Terminal.
The USB Stick created by BA (Bootcamp Assistent) works just fine on a Mac and on a PC, but all my tests trying to do it over Terminal resulted in a black screen with a blinking cursor (tested on a native Windows Laptop where the BA USB workes).
I have a original Win 8 iso downloaded directly from Microsoft, so that should not be the problem.
I tried to:
copy the .iso via dd like: dd if=win.iso of=/dev/rdisk1
copy the .iso via dd on a FAT32 partition on the USB: dd if=win.iso of=/dev/rdisk1s1
create a FAT32 partition and copy the content of the .iso to that partition.
did this: Create USB stick with Syslinux MBR
converte the .iso to other formats (eg img) and copyed with dd
The BA USB stick looks like this:
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *7.8 GB disk1
1: DOS_FAT_32 WININSTALL 7.8 GB disk1s1
Hopefully someone can tell me what I missed.

Okay, now i know how Bootcamp Assistent does his magic.. the MBR seems to be bigger than the normal 512 bytes so i did not get the whole thing.. seems to be 7680 bytes long (really dont know why).
But with that extracted mbr i got now it is working as i wanted it to be working.

Related

USB drive (Format disk + The volume does not contain a recognized file system)

Hello all i have a problem with usb drive.
I have tried with several programs but no one cant find my data on the USB.
It says cant find any partition on the usb.
The usb is RAW format and i cant use chkdsk in Command prompt.
I have tried with DISKPART and when i type select partition 1 it says there is no partitions.
Is there any chance to save my data?

Error running NI-DAQmx ANSI C example in Windows 7 virtual machine

I am running a Windows 7 guest system with an Ubuntu 14 host, using VirtualBox, and have run into a problem running even the simplest examples provided by National Instruments, using the ANSI C API for NI-DAQmx.
The first time the DAQ Device is powered on, I can run a single measurement, and after that, any other measurement displays the following error message:
Attempted to read samples that are no longer available.
The requested sample was previously available, but has since been overwritten.
Increasing the buffer size, reading the data more frequently, or specifying
a fixed number of samples to read instead of reading all available samples
might correct the problem.
Property: DAQmx_Read_RelativeTo
Corresponding Value: DAQmx_Val_CurrReadPos
Property: DAQmx_Read_Offset
Corresponding Value: 0
Task Name: _unamedTask(0)
Status Code: -200279
In order to be able to start a new measurement, I have to restart the DAQ device, probably in order to clear any internal buffers that are being overridden.
I am interested in running a basic continuous voltage measurement using a callback function. (The ContAcq_IntClk example provided by NI)
The exact same configuration, same version of NI-DAQmx(9.7.5), and running on Visual Studio 2012, runs smoothly on a machine running Windows 7 directly.
I suspect the problem is with the internal buffer being somehow messed up because of the connection with the Virtual Machine, but can't figure out an elegant solution to fix it.
The device I am using is NI USB-6289.
FIXED:
VirtualBox seems to have compatibility issues with NI USB devices. It appears to work, but it's unpredictable.
VMWare works much better. Switched to VMWare Player and now works flawless.

tester for HID devices

I have built my own USB HID device. I want to check, if it is working correctly.
I want to check the descriptors sent by the device, display input reports and send output reports. What tools are capable of this task and runs on Windows 7 64 bit?
On a day-to-day basis I use USBlyzer. It works well on Windows 7 64-bit.
As far as free tools go, the Windows DDK includes (in C:\winddk\7600.16385.1\tools\avstream\amd64) a tool called UVCview.exe ("USB device viewer") that shows at least some descriptor information.
You might also try Wireshark, but I admit, I only use it for network and can't speak to the quality of its USB capture.
(even though it's an old post) - here is a convenient and free solution:
Our Docklight Scripting software can test custom USB HID devices in the free (evaluation) download already, no time limit. Tested both on Windows 7 and Windows 10. You can access your device via the chosen VID and PID, display input report data and send output reports, even with variable output report ids.

How do you create a multiboot SCCM task sequence USB Stick?

I need to dual boot 2 different task sequences (Win7 images) for different Pc types which require different drivers, we have 2 images one for staff and student which can be added to a particular task sequence.
I need to create a portable solution for cloning without the network using 2 different SCCM (System Center Configuration Manager) task sequences. At the moment I go through the usual steps of creating a boot media via the Configuration manager, but there seems to be know way to create a script that changes the task media on the fly so you can select which OS image.
I was looking at a possible solution using YUMI (a Usb boot tool) but each bootable image requires an ISO. The task sequence image is around 8GIG.
We use SCCM 2007. (Still awaiting for a budget to upgrade to 2012 :) )
It sounds like you want to boot two different .WIM images.
Out of the box, I haven't found any tool from MS that will allow this. I have gotten around this discrepancy by renaming the .WIM I want to use to BOOT.WIM in the \SOURCES directory.
That is the name of the .WIM that gets used by all the default settings. You have to rename the file before you attempt to boot from the USB device, but it doesn't take long and could be scripted without much effort.
Theoretically, it should be possible to configure the BCD on the USB device (\EFI\MICROSOFT\BOOT\BCD or BOOT\BCD, depending on how the computer is configured to boot) so that you could choose which .WIM to use at boot time without the need to do any messy renaming. I haven't gotten this to work yet (mostly due to lack of time/urgency), but I did write down what I had done so far. I found some useful information about booting to .WIM's from windowsitpro.com.

Windows 8 "devcon -remove" issue

Running Windows 8 with 2 video cards, AMD/ATI 6870 + 4870. Windows 8 is disabling 48XX card seemingly random and for no reason that I have been able to see in the event viewer. My work around is uninstall in devmgmt.msc and rescan for hardware changes. It auto installs and works fine after for days.
Question is how to automate that process with devcon. Trying...
C:\Batch>devcon.exe listclass display
Listing 2 device(s) for setup class "Display" (Display adapters).
PCI\VEN_1002&DEV_6738&SUBSYS_E177174B&REV_00\4&1DCBFDE5&0&0010: AMD Radeon HD 6800 Series (Microsoft Corporation - WDDM v1.20)
PCI\VEN_1002&DEV_9442&SUBSYS_E810174B&REV_00\4&24DEEBC4&0&0018: ATI Radeon HD 4800 Series (Microsoft Corporation - WDDM v1.1)
C:\Batch>devcon.exe remove =display *HD 4800*
No devices removed.
Doesn't remove the adapter. Not sure what I am missing to get this to work. I don't work with devcon very much and just wanted to make a batch to speed this "fix".
You can't use adapter name as an id for devcon.
Use, for example, device id: devcon.exe remove =display *DEV_9442*.