Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am running Ubuntu Oneiric and just installed quemu to test if my usb device is bootable, because for some reasons, on my laptop the usb boots but on my desktop pc it shows Boot Erro

So, does anybody knows how to test with quemu the booting capabilities of my StoreJet usb HDD ?

share|improve this question

3 Answers 3

up vote 4 down vote accepted

I found the answer, but can it be improved?

lsusb

Bus 001 Device 007: ID 152d:2329 JMicron Technology Corp. / JMicron USA Technology Corp. JM20329 SATA Bridge

sudo qemu-system-x86_64 -m 512 -enable-kvm -usb -device usb-host,hostbus=1,hostaddr=7

share|improve this answer

There is also this format that works:

sudo qemu-system-x86_64 -enable-kvm -m 256 -usb /dev/sdX

It's a bit nicer since you don't have to look up the device numbers.

share|improve this answer

The -usbdevice host:bus.addr flag is the right way to do this now. For example:

sudo qemu-system-x86_64 -enable-kvm -m 256 -usbdevice host:3.6

The root privileges (from sudo) are needed to access the usb device node (/dev/bus/usb/003/006 in this case). Without proper permissions or privileges, you will receive permission denied errors, and qemu will not see your device.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.