[Freedos-user] Strange: Directory utility which does not work under FreeDOS
Hi, I'm trying to use LFNSort (http://www8.pair.com/dmurdoch/programs/lfnsort.htm) to sort my directory structures (because FreeDOS' Defrag doesn't do it), but it doesn't find the directories for some strange reason, hence it doesn't work. Under DOS 7.0 it works perfectly... Any clues?? If I use it on a floppy disk, it works perfectly under FreeDOS. It just doesn't work with C: Does anyone know of a similar program which works under FreeDOS? (it must support FAT32 like LFNSort) Many thanks in advance, Marton -- View this message in context: http://www.nabble.com/Strange%3A-Directory-utility-which-does-not-work-under-FreeDOS-tp14499638p14499638.html Sent from the FreeDOS - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
[Freedos-user] MS Network Client slow performance under FreeDOS
I use MS Network Client with the NetBEUI protocol only, in to be able to transfer files to the FreeDOS PC. Everything works perfectly except that if I copy files from another PC into the FreeDOS PC it is painfully SLOW! (100kb/sec) I don't know why it happens, here is what I discovered so far: 1) If I connect FROM the FreeDOS PC to the other PC to copy the files, it flies! (~3MB/sec) 2) Copying files from the FreeDOS PC to another PC, flies as well and in both directions (copying them FROM the FreeDOS PC to the other PC and connecting from the other PC TO the FreeDOS PC to do it). 3) If I copy the files to a RAM Drive instead of, say the drive C:, it flies also so I believe that a) FreeDOS has some sort of issue writing to the hard-disk in background (which is what happens when you copy files from another PC to it) b) The MS Client drivers are somewhat buggy and there are a lot of packet losses while receiving them. Another thing: suppose I start copying 100mb to the FreeDOS PC via the other PC (100kb/sec)... If I do ANY operation to the disk, say, read a directory for example, I get a PANIC: more than two near fnodes requested at the same time! message, and the systems halts. This comes from the get_near_f_node(void) function in fatfs.c What happens if I disable that warning? Will I get data loss even if I try to READ from the disk while it is writing stuff that comes from the network card? TIA, Marton -- View this message in context: http://www.nabble.com/MS-Network-Client-slow-performance-under-FreeDOS-tp14499906p14499906.html Sent from the FreeDOS - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Boot sector not standard? [Solved]
Bart Oldeman wrote: On 10/27/06, Marton [EMAIL PROTECTED] wrote: Any chances of a permanent fix or it is actually hard to implement? Something like this: [...] Just tried this and with my 6.4gig hard drive it works like a charm. I have yet to try with one bigger than 8.4 gigs though. I will post the results once done :) Many thanks Bart!!! Cheers, Marton -- View this message in context: http://www.nabble.com/Boot-sector-not-standard--tf2471283.html#a7251285 Sent from the FreeDOS - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Boot sector not standard? [Solved]
OK, when I meant sector 0, I meant the first sector. If it's the case, startSector is 0 but in this case where the tool moves it to the second sector, startSector is 1, so partitionStart goes to 64 which is not right. Do you know any way around it? Is it right to not add startSector to the relative sectors to get the start of the partition? Or there are cases in which this needs to be added? Arkady V.Belousov wrote: Hi! 20-Окт-2006 06:29 [EMAIL PROTECTED] (Marton) wrote to freedos-user@lists.sourceforge.net: M If the partition is at sector 0, Sectors numbered starting from 1, not 0. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- View this message in context: http://www.nabble.com/Boot-sector-not-standard--tf2471283.html#a6983195 Sent from the FreeDOS - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Boot sector not standard? [Solved]
But DOS 7+ is LBA, right? It works like a charm there... If the partition is at sector 0, ScanForPrimaryPartitions gets 0 as the startSector. This is in most if not all cases, right? Well if the tool moves it to sector 1 and tells FreeDOS that the partition is there, and FreeDOS recognizes the partition to be at sector 1... why do we need to add startSector to partitionStart? I don't think there's a bug in the tool because it works fine on all versions of MS-DOS. Eric Auer wrote: If the tool somehow manages to make DOS aware of the moved partition table, then still it would be the wrong fix to let DOS shift all partitions by one sector: Actually it is a bug in the tool then, and the tool should have subtracted 1 from RelSect at that point. In that case, the result of the analysis would be that your tool is totally incompatible with operating systems which support LBA (as opposed to only CHS) disk geometry. -- View this message in context: http://www.nabble.com/Boot-sector-not-standard--tf2471283.html#a6916771 Sent from the FreeDOS - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Boot sector not standard?
The tool basically moves the partition table to somewhere in the track 0 area. When you put the hard disk as slave, you can't access it (It's a neat protection). When it boots, it temporarily unhides the partition so the OS can see it and boot, and then hides it again. With any version of MS-DOS everything works as expected but with FreeDOS the kernel boots but it doesn't find command.com and asks for it. I have no way of doing a dir to see if everything's on place. A message like illegal partition table is shown by the FreeDOS' kernel. Any clues on how to fix it? Norbert Remmel-2 wrote: Is FreeDOS' boot sector 100% compatible with a DOS boot sector? No, not even 50% compatible. :-) That's why Virtual PC refuse to read the FreeDOS floppy?! Virtual PC doesn't refuse to read the FreeDOS floppy at all, neither Version 2004 nor Version 2007 beta. VPC is fully working with FreeDOS and even better than with MSDOS. Both FreeDOS boot sectors (SYS 3.2 and 3.6a) are working great under VPC. Your problem that VPC is refusing to read freedos floppy might be related to something other than VPC. Rgds, Norbert. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- View this message in context: http://www.nabble.com/Boot-sector-not-standard--tf2471283.html#a6898300 Sent from the FreeDOS - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Boot sector not standard? [Solved]
Well, I did some research on everything and found the cause of the problem. First, I confirmed that what the tool does is this: 1) The partition table is moved from sector 0 to sector 1 2) Some code is written to sector 0. This code asks for a password and if you fail, you can't boot. I found the problem to be in initdisk.c, function ScanForPrimaryPartitions. What happens is that when the tool has moved the partition table to sector 1, startSector here is 1... and this line: partitionStart = startSector + pEntry-RelSect; makes partitionStart be 64 in my case (because RelSect is 63 on this drive)... and the real start of the partition IS at sector 63! If I manually remove startSector from there so partitionStart is always 63, the protection from the tool is effective and it boots, and everything works well. Will this fix cause problems with some drives?? Is it safe to leave startSector out of that line? Thanks for any clue. -- View this message in context: http://www.nabble.com/Boot-sector-not-standard--tf2471283.html#a6909759 Sent from the FreeDOS - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
[Freedos-user] Boot sector not standard?
http://sunsite.rediris.es/pub/msdos/security/protdrx.zip The above tool provides a very interesting hard disk security. It works perfectly on any DOS version (I tested 5, 6.22 and 7). On FreeDOS, it does not like to work. Is FreeDOS' boot sector 100% compatible with a DOS boot sector? Thanks in advance! -- View this message in context: http://www.nabble.com/Boot-sector-not-standard--tf2471283.html#a6890559 Sent from the FreeDOS - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Need help ... calling COMMAND.COM from C
Absolutely, the function is simple... just to see if two directories that should have the same contents changed. Here it goes (hope it indents well): int checkdir(void) { int i, filesize = 0; FILE *fp, *fp2; system(dir c:\\data\\base1 c:\\data.dir); fp = fopen(c:\\data.dir,r); fp2 = fopen(c:\\dataorig.dir,r); fseek(fp, 0, SEEK_END); filesize = ftell(fp); fseek(fp2, 0, SEEK_END); if(filesize != ftell(fp2)) filesize = -1; rewind(fp); rewind(fp2); for(i=0;ifilesize;i++) { int file1data = 0, file2data = 0; fread(file1data,1,1,fp); fread(file2data,1,1,fp2); if(file1data != file2data) break; } if(i != filesize) return 1; else return 0; fclose(fp); fclose(fp2); remove(c:\\data.dir); remove(c:\\dataorig.dir); } } This always returns 1 because the file data.dir gets cut so the compare with dataorig.dir always fails. Thanks!! Marton Arkady V.Belousov wrote: Hi! 18-Сен-2006 11:21 [EMAIL PROTECTED] (Marton) wrote to freedos-user@lists.sourceforge.net: M I tried that exact version, when I type ver I get FreeCom version M 0.84-pre2 XMS_Swap [Aug 28 2006 00:29:00]... and the issue still M happens... Current FreeCOM deals with /c option and redirection fine. Current - command.com, available from CVS (92787 bytes, FreeCom version 0.84-pre2 XMS_Swap [Aug 28 2006 00:29:00]). I don't know, which edition was included into FreeDOS 1.0 distributive. Ok, then may you present test case? If you have source, which not works, give us this source (and all related files and build batch and make files), so we may try to reproduce your trouble. Of course, try to minimize test case (minimal source, minimal batch files to compile). - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- View this message in context: http://www.nabble.com/Need-help-...-calling-COMMAND.COM-from-C-tf2281583.html#a6378774 Sent from the FreeDOS - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Need help ... calling COMMAND.COM from C
Sounds great, Arkady. I'm glad my code at least helped to see the bug. Please let me know if/when you fix it so I try it :) Thanks!! Marton Arkady V.Belousov wrote: Hi! 18-Сен-2006 15:29 [EMAIL PROTECTED] (Marton) wrote to freedos-user@lists.sourceforge.net: M Absolutely, the function is simple... just to see if two directories that M should have the same contents changed. Here it goes (hope it indents well): M int checkdir(void) { [...] M system(dir c:\\data\\base1 c:\\data.dir); This source is incomplete and contains bugs, which makes it incompilable, but this is unimportant - now I may reproduce the bug even without extra program: command/c ver FreeCom version 0.84-pre2 XMS_Swap [Aug 28 2006 00:29:00] command/c dir test TEST 0 19.09.06 2:55 command/c dir test command/c dir test TEST 525 19.09.06 2:56 command/c dir test test command/c dir test TEST 0 19.09.06 2:56 So, something really wrong, when cmd (dir above) have arguments and output is redirected. I will try to fix this later, when process patches, which accept Blair. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- View this message in context: http://www.nabble.com/Need-help-...-calling-COMMAND.COM-from-C-tf2281583.html#a6379733 Sent from the FreeDOS - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Need help ... calling COMMAND.COM from C
Many thanks for the suggestions but instead of doing stuff in my code... couldn't we somehow add a delay to FreeCOM before it exits (when called with /c) so everything gets flushed and it works for everyone? Under command.com everything works as-is and it is a crime to patch my code instead of doing a general solution... Thanks again, Marton -- View this message in context: http://www.nabble.com/Need-help-...-calling-COMMAND.COM-from-C-tf2281583.html#a6341044 Sent from the FreeDOS - User forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user