USB Pendrive in QEMU - not detected


Forum: DSL Embedded
Topic: USB Pendrive in QEMU - not detected
started by: bert003

Posted by bert003 on Oct. 06 2006,11:11
I plugged in my pendrive from QEMU and used the command usbadd to add the pendrive. However I cannot manage to mount it in DSL. No /dev/sd[x] present. How can I go about it?

thanks

Posted by ^thehatsrule^ on Oct. 06 2006,18:19
This has been answered quite a bit.. guess someone needs to add it to the wiki sometime :p
Posted by bert003 on Oct. 07 2006,11:35
ok so can someone please specify where is the answer? cause I searched a lot of topics which seem related but cannot find exactly what i am looking for...  ???

thanks

Posted by roberts on Oct. 07 2006,16:44
Qemu is basically a sandbox and as such only has access to virtual drives, which DSL provides. Beyond that would be specific to possibly newer versions of Qemu and the Qemu support site would likely be more responsive for such Qemu specific questions.
Posted by bert003 on Oct. 07 2006,17:05
yes i know that but ^thehatsrule^ told me that it has been answered somewhere in this forum... that's why i asked... still can't find the solution in any topic...

also, qemu forums seem to be down at the moment....

Posted by roberts on Oct. 07 2006,17:07
You can try setting up Samba and access indirectly via Windows sharing. Try searching for qemu AND samba
Posted by ^thehatsrule^ on Oct. 08 2006,16:28
See < http://www.h7.dion.ne.jp/~qemu-win/HowToFloppyCdrom-en.html >
Posted by bert003 on Oct. 09 2006,13:32
cheers ^thehatsrule^. i can see my pendrive as a physical drive now... no need to specify the -usb option

just add -hda \\:\h:

where h: is the pendrive driver letter (in my case it was h:)

then once in dsl, create a directory (ex: named pendrive) and use the mount command like this:

mount /dev/hda pendrive

that's all...

thanks a lot to everyone who helped...

:D

Posted by tyskstil on Oct. 14 2006,20:08
Quote (bert003 @ Oct. 09 2006,09:32)
just add -hda \\:\h:

where h: is the pendrive driver letter (in my case it was h:)

then once in dsl, create a directory (ex: named pendrive) and use the mount command like this:

mount /dev/hda pendrive

I have the same problem, i dont know where and how to reach my USB so I can use DSL-embedded to make an USB install inside WinXP.

I did try the quoted suggestion (but instead of "pendrive", my mountpoint is "/mnt/usb" which i created):

mount: /dev/hda already mounted or usb busy
mount: according to mtab, /dev/hda is mounted on /KNOPPIX

My dsl-windows.bat looks like this
Code Sample
REM Start qemu on windows.
@ECHO OFF

START qemu\qemu.exe -L qemu/ -hda \\:\h: -no-kqemu -m 128 -soundhw sb16 -localtime -kernel linux24 -initrd minirt24.gz -hda KNOPPIX/knoppix -hdb qemu/harddisk -append "qemu sb=0x220,5,1,5 frugal quiet modules=hdb noscsi nousb nofirewire atapicd noideraid noacpi acpi=off noapm noagp ide1=noprobe ide2=noprobe nomce"

CLS
EXIT


Help anyone?

Posted by ^thehatsrule^ on Oct. 14 2006,20:18
try hdc - you already have hda on the knoppix image.

But I have no idea if you can use the usb-install inside qemu.

Posted by tyskstil on Oct. 14 2006,20:56
Fast reply, thanks! And oh, yes, of course!

My problem is that I have a WinXP machine, which I cannot alter to much since it is not mine. This is why I would like my UDB drive to run linux.

Now, I already tried formatting the USB-drive, unpacking the "dsl-embedded.zip" to it and syslinux'ed it for boot.

The loading of the USB drive gets as far as

"Loading the Kernel"

and freezes. I guess it never actually loads the kernel.

Would you have any other suggestions?

Posted by tyskstil on Oct. 14 2006,21:02
Oh, and it worked... i just added

-hdc //./h:

to my dsl-windows.bat file instead (note the /'s instead of my original \'s which threadstarter suggests)!

trying to mount the device now from the WinXP embedded DSL, i get:
Code Sample

#mount /dev/hdc /mnt/usb
mount: block device /dev/hdc is write-protected, mounting read-only
mount: No medium found

Posted by ^thehatsrule^ on Oct. 14 2006,21:49
Quote
to my dsl-windows.bat file instead (note the /'s instead of my original \'s which threadstarter suggests)!
He could've been using the dsl-linux.sh one that might be slightly different.


Quote
The loading of the USB drive gets as far as

"Loading the Kernel"

and freezes. I guess it never actually loads the kernel.
Not sure about this... you could boot with failsafe or some other boot options perhaps

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.