Re: [Freedos-user] How to install multiple instances..?
COOL : > %ifdef OLDSTYLE > fdreplace db "FDKERN" > fdreplacecnt db "ELSYS" > %else > fdreplace db "KERNEL" > fdreplacecnt db " SYS" > %endif NOT COOL : > ; must match order of search strings: > searchlist dw fdtype, mstype, ibmtype, wintype, othertype No ^^^ EDR-DOS :-( http://ericauer.cosmodata.virtuaserver.com.br/soft/specials/metakern.zip ??? http://www.freedos.org/software/?prog=metakern (Dead "varna" and "saar" links) http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/util/boot/metakern/ http://www.auersoft.eu/soft/specials/ -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] How to install multiple instances..?
Op 6-8-2011 15:46, dos386 schreef: >> I'm not sure how easy it's to configure Eric's METABOOT.BOT >> bootsector file to look for a specific kernel name > > "SYS.C" wrote: > >> " /K name : name of kernel to use in boot sector instead of %s\n" That's hardcoded bootsector(-geometry) you're referring to, sorry. Basicly you have a bootsector pointing to MetaKern, and then MetaBoot is attached/appended to MetaKERN.SYS and reuses metakern's bootsector. That way you could use the metakern.sys file that's located on harddisk even on a floppy without having to regenerate bootsectors. Each metaboot instance pointing to a different FreeDOS kernel file (KERNEL38.SYS , KERNEL40.SYS etc) would be convenient :) "metaboot.bot - boot sector that re-uses the boot sector in RAM, set up for the case where MetaKern is called metakern.sys (So you must use a NEW STYLE MetaKern installation!)" http://ericauer.cosmodata.virtuaserver.com.br/soft/specials/metakern.zip Likely just a matter of changing kernel name inside source code and recompiling with NASM. Some config directive (-D or so was it?) would be more convenient :) -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] How to install multiple instances..?
> Lots of software (especially driver installers) still depends on > CONFIG.SYS existing Bad hehaviour. Probably for same reason NTVDM always brews empty "MSDOS.SYS" and "IO.SYS" files whenever launched. Apparently there is at least one app checking for existence of those 2 files to make sure it is being run on genuine M$-DOG and nowhere else :-D > I'm not sure how easy it's to configure Eric's METABOOT.BOT > bootsector file to look for a specific kernel name "SYS.C" wrote: > " /K name : name of kernel to use in boot sector instead of %s\n" -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] How to install multiple instances..?
Op 4-8-2011 14:44, dos386 schreef: > Unfortunately, the kernel looks for FDCONFIG.SYS and CONFIG.SYS > only (I'd kick the latter, BTW), so all FreeDOS kernels will share this > one file, except you patch the kernel. Lots of software (especially driver installers) still depends on CONFIG.SYS existing. For very simple configurations (no menu stuff for example) FreeDOS can use/read CONFIG.SYS just fine. > You can boot multiple kernels using METAKERN. It works > great, but needs some manual setup. You can drop FreeDOS, EDRDOS > and ME on same partition, but you MUST use FDCONFIG.SYS , > DCONFIG.SYS , FDAUTO.BAT and DRAUTO.BAT. I'm not sure how easy it's to configure Eric's METABOOT.BOT bootsector file to look for a specific kernel name. The use of this special bootsector is that it modified a memory copy of the original used bootsector so geometry is kept. Convenient in case of resizing disk or copying METAKERN.SYS itself to a different drive, including attached bootsectors. > There is absolutely no need to dig out old dead > 1.0 distro utils from their graves ;-) Depends, we've still not added all the extra utilities that make it worthwile to use DOS. Base distro is a very simple base. Adding programs from a 1.0 CD can be quite troublesome, especially due to POSTINST.BAT > To test multiple kernels, the easiest solution is to rename them all > (KERNEL36.SYS KERNEL38.SYS KERNEL40.SYS) and then > > COPY KERNEL38.SYS KERNEL.SYS > boom (CTL-ALT-DEL) > > (test 2038) > > COPY KERNEL40.SYS KERNEL.SYS > boom (CTL-ALT-DEL) > > (test 2040) > >> Would this be a good time (doubtful) to >> suggest "XCHG" as a mnemonic for swapping filenames? > > + 1 > > or SWAP ;-) I need this frequently too. Patches to FreeCOM always welcome, I think both Ruxgulo and Jeremy managed to get a (good?) working Watcom version somehow. -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] How to install multiple instances..?
> Could someone tell me if it's possible to have multiple instances > of (Free)DOS installed to the same partition? YES. Unfortunately, the kernel looks for FDCONFIG.SYS and CONFIG.SYS only (I'd kick the latter, BTW), so all FreeDOS kernels will share this one file, except you patch the kernel. You can boot multiple kernels using METAKERN. It works great, but needs some manual setup. You can drop FreeDOS, EDRDOS and ME on same partition, but you MUST use FDCONFIG.SYS , DCONFIG.SYS , FDAUTO.BAT and DRAUTO.BAT. There is absolutely no need to dig out old dead 1.0 distro utils from their graves ;-) To test multiple kernels, the easiest solution is to rename them all (KERNEL36.SYS KERNEL38.SYS KERNEL40.SYS) and then COPY KERNEL38.SYS KERNEL.SYS boom (CTL-ALT-DEL) (test 2038) COPY KERNEL40.SYS KERNEL.SYS boom (CTL-ALT-DEL) (test 2040) > Would this be a good time (doubtful) to > suggest "XCHG" as a mnemonic for swapping filenames? + 1 or SWAP ;-) I need this frequently too. -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] How to install multiple instances..?
Hi, On Wed, Aug 3, 2011 at 4:19 AM, wrote: > > You can't dual-boot multiple FreeDOS instances on the same partition, > because you can't configure the kernel to use one specific (FD)CONFIG.SYS. > > Therefore, you have to change the file name the kernel will look for. If > you can compile the kernel yourself, search through its source code for > where the FDCONFIG.SYS name is used and change that. > >>> Does anyone else here have a method that would allow multiple installs >>> of >>> FreeDOS (1.0, 1.1), MS-DOS, or Windows 95/98 to co-exist in the same >>> partition? >> >> MetaKern should probably do it, I hope, but you'll have to read the >> docs and experiment. > > Metakern allows booting multiple kernels, but if you boot a specific DOS > variant multiple times, each group will again use the same *CONFIG.SYS > unless you hack that file name in (some of) the kernel(s). Okay, it's hard to understand what he wants and why. I noticed that he mentioned MS-DOS / Win9x, so I assumed he meant share that with FreeDOS (which makes more sense, practically, than otherwise). There's really no reason to run FD 1.0 and 1.1 side-by-side. Presumably you don't want to run separate (old) utilities from 1.0 anyways. So that part should stay the same, IMO. So basically you're only sharing the kernel, but even that (in theory) shouldn't be needed. So unless you know of specific apps (or just want to test) that need a specific kernel (2037?), I wouldn't bother. But KERNEL.SYS is really the only file to worry about (shell should be the same). In short, if you want to dual boot between FreeDOS versions, you're basically only worrying about the kernel. In that case, a simple "ren kernel.sys kernel2.sys" and "ren kernel3.sys kernel.sys" should do it (and reboot, of course). Would this be a good time (doubtful) to suggest "XCHG" as a mnemonic for swapping filenames? ;-) -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] How to install multiple instances..?
> Therefore, you have to change the file name the kernel will look for. If > you can compile the kernel yourself, search through its source code for > where the FDCONFIG.SYS name is used and change that. The file is opened around line 700 in config.c, here: http://freedos.svn.sourceforge.net/viewvc/freedos/kernel/trunk/kernel/config.c?revision=1696&view=markup There's some other messages mentioning (FD)CONFIG.SYS but these do not affect which file is actually processed. Regards, Christian -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] How to install multiple instances..?
> Not sure about the filenames or why you're changing those. >> Could someone tell me if it's possible to have multiple instances of >> (Free)DOS installed to the same partition? This. >> If I rename command.com in the root directory, there are obvious issues. > > You have to change SHELL= in your CONFIG.SYS first. Yes. >> If I rename fdconfig.sys, there are issues. > > There's really only two names you can use there. If you're trying to > dual boot with FreeDOS, then rename the FreeDOS-specific one to > FDCONFIG.SYS. (In particular, FreeDOS doesn't support MS-style > CONFIG.SYS menus but instead has its own syntax). You can't dual-boot multiple FreeDOS instances on the same partition, because you can't configure the kernel to use one specific (FD)CONFIG.SYS. Therefore, you have to change the file name the kernel will look for. If you can compile the kernel yourself, search through its source code for where the FDCONFIG.SYS name is used and change that. If you have an uncompressed kernel binary, you might be able to change the "FDCONFIG.SYS" string with a hex editor instead. >> The autoexec.bat file is the only file I seem to be able to rename >> without issue. > > "COMMAND /P:blah.bat" is typically where you change that (in CONFIG.SYS). Yes. >> Does anyone else here have a method that would allow multiple installs >> of >> FreeDOS (1.0, 1.1), MS-DOS, or Windows 95/98 to co-exist in the same >> partition? > > MetaKern should probably do it, I hope, but you'll have to read the > docs and experiment. Metakern allows booting multiple kernels, but if you boot a specific DOS variant multiple times, each group will again use the same *CONFIG.SYS unless you hack that file name in (some of) the kernel(s). > Keep in mind that MS-DOS (and thus Win9x) expect > to be first on the drive, and I mean literally like sector 0 has to > have the DOS files. I think MS-DOS 7 and 8 only need to have the first few sectors/clusters (2 or 3 KiB?) of IO.SYS consecutive, but it doesn't matter where. -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] How to install multiple instances..?
Hi, On Tue, Aug 2, 2011 at 12:42 PM, Virii wrote: > > Could someone tell me if it's possible to have multiple instances of > (Free)DOS installed to the same partition? > > After editing the fdconfig.sys, and autoexec.bat, I was unable to boot > properly with the files renamed. The kernel seems to be the only non issue, > but I hadn't tested it a whole lot. Maybe some programs need it named > 'kernel.sys'? I don't know of any program that depends on the kernel's filename. (Why would it?) As mentioned, you can change it in the boot sector, but usually you don't need to. Not sure about the filenames or why you're changing those. FreeDOS: FDCONFIG.SYS -> CONFIG.SYS DR-DOS: DCONFIG.SYS, AUTODOS7.BAT -> CONFIG.SYS, AUTOEXEC.BAT > If I rename command.com in the root directory, there are obvious issues. You have to change SHELL= in your CONFIG.SYS first. > If I rename fdconfig.sys, there are issues. There's really only two names you can use there. If you're trying to dual boot with FreeDOS, then rename the FreeDOS-specific one to FDCONFIG.SYS. (In particular, FreeDOS doesn't support MS-style CONFIG.SYS menus but instead has its own syntax). > The autoexec.bat file is the only file I seem to be able to rename without > issue. "COMMAND /P:blah.bat" is typically where you change that (in CONFIG.SYS). > Does anyone else here have a method that would allow multiple installs of > FreeDOS (1.0, 1.1), MS-DOS, or Windows 95/98 to co-exist in the same > partition? MetaKern should probably do it, I hope, but you'll have to read the docs and experiment. Keep in mind that MS-DOS (and thus Win9x) expect to be first on the drive, and I mean literally like sector 0 has to have the DOS files. FreeDOS can be located anywhere, however. http://www.auersoft.eu/soft/specials/metakern-2003oct11.zip http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/util/boot/metakern/ > BTW - If this is the wrong place to post these types of questions, could > someone point me in the right direction? No, it's fine, this is the place.:-) I just hope we can help. It's complicated!:-/ -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] How to install multiple instances..?
Op 2-8-2011 19:42, Virii schreef: > Could someone tell me if it's possible to have multiple instances of > (Free)DOS installed to the same partition? Depends on your definition of 'installed' (on same partition). If you install FreeDOS 1.0 first to a directory and then 1.1 to another directory, you've got 2 different installations. The only issue are the bootfiles, as you're already experiencing. Kernel can have any valid 8.3 name you like, but bootsector and SYS expects KERNEL.SYS by default. If you have 2 kernels KERNEL10.SYS and KERNEL11.SYS you could swap for example by doing a: SYS C: C: /BOOTONLY /K KERNEL10.SYS followed by a reboot. > After editing the fdconfig.sys, and autoexec.bat, I was unable to boot > properly with the files renamed. The kernel seems to be the only non issue, > but I hadn't tested it a whole lot. Maybe some programs need it named > 'kernel.sys'? I don't think you can set the configuration file that the KERNEL expects (default is CONFIG.SYS , unless FDCONFIG.SYS exists, then that's used instead) through a SYS CONFIG directive. > If I rename command.com in the root directory, there are obvious issues. If > I rename fdconfig.sys, there are issues. The autoexec.bat file is the only > file I seem to be able to rename without issue. The trick is moving as many drivers outside of CONFIG.SYS and in AUTOEXEC.BAT instead. It appears you can move all drivers this way, but memory management will be severely impacted if no XMS driver (HIMEMX/XMGR/JEMMEX/FDXMS286) in config.sys loaded due to no DOS=HIGH, nor DOS=UMB, nor DOSDATA=UMB and every driver loading in conventional memory. FreeCOM and 4DOS are notorious as (primary) shells in that they consume at least 100KB of memory, without ability of afterwards swapping themselves to XMS should you happen to load an XMS driver sometime (JEMMEX LOAD ; DEVLOAD XMGR.SYS). HMA nor UMB will become available from commandline, though expanded memory can be conjured this way by JEMM/JEMMEX What you could do is modify (FD)CONFIG.SYS and duplicate the menu entries. Using the SHELL= line you can easily load COMMAND.COM from each FreeDOS installation, and same for a starting batchfile (like AUTOEXEC.BAT): 1?SHELL=C:\FDOS10\BIN\COMMAND.COM A:\FDOS10\FDAUTO.BAT 2?SHELL=C:\FDOS11\BIN\COMMAND.COM A:\FDOS11\FDAUTO.BAT > Does anyone else here have a method that would allow multiple installs of > FreeDOS (1.0, 1.1), MS-DOS, or Windows 95/98 to co-exist in the same > partition? Win9x can coexist with older MSDOS 6 just fine (using WINBOOT.SYS for Win9x system file then instead of IO.SYS or MSDOS.SYS as MSDOS6 has them in use) > BTW - If this is the wrong place to post these types of questions, could > someone point me in the right direction? It's fine, just expect to get technical feedback to technical questions. As such the freedos-devel list might be more suitable if people on this list dislike long mails :) My own preference would be to have 2 ISO files (of FD1.0 and FD1.1) and simply mount those at startup. Or mess around with Syslinux and all of its capabilities. -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user