X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Rod Pemberton" Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer Subject: Re: TRYING TO MAKE EXE RUN ON FRIENDS MACHINE Date: Wed, 14 Jan 2009 02:21:16 -0500 Organization: TornevallNET - http://news.tornevall.net Lines: 60 Message-ID: References: <5fb78e93-bed6-46d9-85c8-a838e35b3d22 AT r36g2000prf DOT googlegroups DOT com> <9941ccce-87a6-4ace-9f78-9b15710643bd AT x8g2000yqk DOT googlegroups DOT com> <4563e62e-7382-4c6a-b986-d4c8a8ff9d47 AT i18g2000prf DOT googlegroups DOT com> <0541cc98-689c-4e6c-ae02-d6f5a1b4a9cb AT l37g2000vba DOT googlegroups DOT com> <886d17b9-399f-48ed-ac4d-45ca11d3879f AT s20g2000yqh DOT googlegroups DOT com> <59d15676-685a-4ad8-a43a-7715035abbaa AT f3g2000yqf DOT googlegroups DOT com> NNTP-Posting-Host: d3e6614b8e12ebb53e7f4e8e329bbc34 X-Trace: 9ebade532d52b228cf86fdd6a30b4b49 X-Complaints-To: abuse AT tornevall DOT net X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1933 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! X-Newsreader: Microsoft Outlook Express 6.00.2800.1933 X-Validate-Post: http://news.tornevall.net/validate.php?trace=9ebade532d52b228cf86fdd6a30b4b49 X-SpeedUI: 1505 X-Complaints-Italiano: Parlo la lingua non è italiano X-Posting-User: c1d3d0c1b6b92a0da8bd6a8e58acbe20 X-Priority: 3 X-MSMail-Priority: Normal To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Rugxulo" wrote in message news:fed9d4c7-d6a7-4780-bc31-7bdd66aed79b AT r40g2000yqj DOT googlegroups DOT com... > > Well, as mentioned, QEMU + QEMU-IMG + FreeDOS + BasicLinux + FAT12 > floppy .IMG to save to (which you can extract files from for DOS) > might work with the pre-compiled i386-moss-gcc. Okay, so that's a > long, roundabout method, but it works. Well, I was thinking of a few things along those lines. In addition to "mounting" .iso and FAT images, QEMU should be able to "mount" a DOS directory with the "fat:" option to hda/hdb, i.e., the mysteriously not well documented if at all vvfat option (see QCOW on Wikipedia...). I also thought about using .iso images such as FreeDOS and Linux. The problem is that under Linux it's easy to add to and extract from images, just use "mount" with the appropraite options and standard copy utilities. But, with Windows there is no default way to add to or extract from images. The ability to *both* add to or extract from is usually only a feature of compression programs for the specific compression format. However, the ability to extract from many image types is widely available with many programs such as WinZip/PkZip, 7-Zip, IsoBuster, DJGPP cpio/rpm/tar/gzip, etc. So, while it's easy to extract from such images, it's not so easy to insert files. E.g., how do you add to a FAT12.img or Linux.iso? If QEMU-IMG allows one to add to images, instead of just creating blank images, I missed that. It seems QEMU is where the "mounting" options are and it only supports a handful of filesystem types (no ext2). Maybe I need to research the Linux "cloop" option to see what it does. Or, perhaps, the "raw" option is sufficient... So, anyway, I don't currently know of any utilities or QEMU options that will do so. As I understand it, the MOSS files have to be decompressed and inserted into a directory in BasicLinux's FS.IMG, which is probably ext2 gzipped. I can handle the gzip. I'm not sure what to do with the ext2 under Windows and without Linux available... So, while the compression method is standard, the filesystem isn't for Windows. I.e., I could uncompress it, but not add files to it. Now, if I had a floppy disk drive in this machine, I could use a FAT12 image with QEMU and then copy to and from a floppy or ramdisk using that image to add to and extract from it, perhaps using say partcopy.exe to move the image back and forth. This assumes that BasicLinux supports FAT12 and can mount it. But, without a floppy, I'm forced to find some other utilities to write to needed images, or I'm forced to setup the flash drive as a floppy, which is tedious but doable, I guess. This is really really round-about, and I'm not sure yet that Windows QEMU supports USB drives with floppy images... So, I'm going to sleep on it. Maybe I'll locate what I think I need or would prefer, later. > Okay, so that might be a bit much, but they say it works. I've never > tried either, so maybe I shouldn't suggest that. ;-) But even > Ubuntu brags about having a Win32 installer now. I saw that too. I didn't try it suspecting the same partition issues. Due to the size of modern Linux, I suspect that few of them setup as DOS loopback filesystems. I was thinking about looking at MetroPipe's Portable Privacy Machine to see what they are using. It supposedly runs from a USB drive, so it'd be odd for them to use ext2 with Windows instead of using FAT12/16 since one would want to copy files to/from the image. Given it's purpose, it's likely though that the compiler toolchain isn't there... Rod Pemberton