QEMU-Puppy 2.14-1

For talk and support relating specifically to Puppy derivatives
Message
Author
User avatar
Skimmel
Posts: 27
Joined: Mon 07 May 2007, 18:39
Location: Houston, TX

Can't Find USB Flash Drive

#21 Post by Skimmel »

I'm using QEMU-Puppy on a generic 2 gig USB flash drive on a WinXP computer. The program loads and runs just fine but once started doesn't recognize flash drive. Drives finds the CD Rom and the Hard Drives but not the USB flash drive.

I've tried editing the commandline that starts the program to include -usb and I've tried -usbdevice but neither seems to work for me.

What am I missing?

User avatar
Skimmel
Posts: 27
Joined: Mon 07 May 2007, 18:39
Location: Houston, TX

Amusing WinXP tip for QEMU-Puppy

#22 Post by Skimmel »

If you create a file named autorun.inf on your USB drive that contains the following:
[autorun]
OPEN=puppy.bat
ICON=linux3.ico
ACTION=Launch Puppy
LABEL=Puppy Flash Drive
when you connect your flash drive the pop up menu will include the choice "Launch Puppy." The drive will be identified as "Puppy Flash Drive" in the Windows Explorer and you'll get the picture of Tux instead of the drive icon.

User avatar
Erik Veenstra
Posts: 107
Joined: Wed 27 Jul 2005, 21:06
Location: NL
Contact:

Re: Can't Find USB Flash Drive

#23 Post by Erik Veenstra »

> I'm using QEMU-Puppy on a generic 2 gig USB flash drive on a
> WinXP computer. The program loads and runs just fine but once
> started doesn't recognize flash drive. Drives finds the CD
> Rom and the Hard Drives but not the USB flash drive.
>
> I've tried editing the commandline that starts the program to
> include -usb and I've tried -usbdevice but neither seems to
> work for me.
>
> What am I missing?

"The point"... :}

QEMU emulates a complete machine. The guest OS (the one running
within QEMU) is unaware of the native machine, nor its devices,
nor its OS.

However, it's technically possible to let the guest OS be aware
of a native USB device, but then the native USB device
shouldn't be mounted, which it is if you run QEMU-Puppy from
your pen drive.

gegroet,
Erik V. - http://www.erikveen.dds.nl/

User avatar
Skimmel
Posts: 27
Joined: Mon 07 May 2007, 18:39
Location: Houston, TX

The point

#24 Post by Skimmel »

Apparently I am missing the point.

Does this mean that if I'm running QEMU-Puppy, I can't save anything? I'd hoped to be able to ... oh say... write something using Abiword but I don't see much point if I can't save the result in a way that will last after I shutdown the emulation.

It's a pretty cool way to test drive the various distros without burning CDs but beyond that I can't much reason to bother.

User avatar
Erik Veenstra
Posts: 107
Joined: Wed 27 Jul 2005, 21:06
Location: NL
Contact:

Re: The point

#25 Post by Erik Veenstra »

> Does this mean that if I'm running QEMU-Puppy, I can't save
> anything? I'd hoped to be able to ... oh say... write
> something using Abiword but I don't see much point if I can't
> save the result in a way that will last after I shutdown the
> emulation.

User data is saved in pup_save.3fs. It's described on the site
of QEMU-Puppy, on the site of Puppy-Linux and a lot of other
sites... :}

gegroet,
Erik V. - http://www.erikveen.dds.nl/

User avatar
Skimmel
Posts: 27
Joined: Mon 07 May 2007, 18:39
Location: Houston, TX

Where does it save it?

#26 Post by Skimmel »

Erik Veenstra wrote:>
User data is saved in pup_save.3fs. It's described on the site
of QEMU-Puppy, on the site of Puppy-Linux and a lot of other
sites... :}
Erik,

Which brings us back to where I started. Where does it save pup_save.3fs? I would like it to save it to the flash drive I started it from so I would have no impact on the borrowed machine. But as I said when we started this conversation QEMU-Puppy doesn't seem to recognize that drive. Is there another real drive on the computer that QEMU-Puppy does recognize where I can retrieve that file?

Or maybe the question is how do I retrieve that file before the QEMU environment vanishes?

User avatar
Skimmel
Posts: 27
Joined: Mon 07 May 2007, 18:39
Location: Houston, TX

DSL Solution

#27 Post by Skimmel »

I've been trying to get QEMU-Puppy to recognize my USB flash drive as a device so I can retain the changes and settings I've made. So far I've had no luck.

DSL distributes a version bundled with QEMU and a fairly detailed set of instructions on how to set up what they call a virtual hard drive on my USB. The key seems to be using the command

qemu-img.exe create harddisk 128M

Their procedure worked like a champ. I've tried to modify the technique to work with Puppy but so far I haven't had any luck with that either. Is there something about Puppy that automatically clashes with this virtual hard drive solution?

ICPUG
Posts: 1308
Joined: Mon 25 Jul 2005, 00:09
Location: UK

#28 Post by ICPUG »

Skimmel

If you create QEMU-Puppy as per Erik's instructions you will find on your Flash drive the file pupsave.3fs. You don't have to do any mounting - it just happens. When you running QEMU-Puppy your data files (from AbiWord etc.) will be in there if you save them to the /root directory (or below).

From Windows Explorer you can see pupsave.3fs on the root folder of the flash drive.

You cannot access the USB flash drive directly under QEMU-Puppy because QEMU-Puppy does not emulate USB by default.

ICPUG

User avatar
Skimmel
Posts: 27
Joined: Mon 07 May 2007, 18:39
Location: Houston, TX

The lesson to be learned from this...

#29 Post by Skimmel »

Well, I don't know what I did wrong but I wiped it out and did it again and this time it worked as advertised. My best guess is that I got a bad download.

The lesson to be learned from this is, probably, is to do the checksum on the download.

jannek
Posts: 2
Joined: Wed 23 May 2007, 16:52

mounting usb stick

#30 Post by jannek »

You cannot access the USB flash drive directly under QEMU-Puppy because QEMU-Puppy does not emulate USB by default.
Is there a way of mounting it? I look at the /dev but did not really find my usb stick...

ICPUG
Posts: 1308
Joined: Mon 25 Jul 2005, 00:09
Location: UK

#31 Post by ICPUG »

Jannek

As Erik said in an earlier post it is technically possible to mount a USB device in QEMU but NOT in QEMU-Puppy because it is already mounted in its own special way.

While I was researching QEMU and trying to answer these questions for myself I came across some pages that I found very useful. I reproduce the list here for other researchers:

PupWinQE, Jady's technique for Puppy with QEMU at:
http://www.freeveda.org/linux/puppy/PupWinQE.htm

Eric Hameleers' Slackware wiki at:
http://alien.slackbook.org/dokuwiki/dok ... 1171055067

Official QEMU reference document from:
http://fabrice.bellard.free.fr/qemu/

Unofficial wiki at:
http://www.kidsquid.com/cgi-bin/moin.cgi/QemuOnWindows

Official source for Windows at:
http://www.h7.dion.ne.jp/~qemu-win/

Those sites are extra to Erik's own site of course.

Eric Hameleer's Slackware wike explains how to use USB in a generic QEMU virtual machine.

ICPUG

robermann79
Posts: 22
Joined: Wed 17 Sep 2008, 12:02

#32 Post by robermann79 »

Do you know if exist a puppy 4.xx-based version of Qemu-Puppy?
Here a sort of "porting": http://www.murga-linux.com/puppy/viewto ... f9f5e6184e

Post Reply