📄 sys.txt
字号:
SYS documentation by Jeremy DavisUpdated by Bart OldemanSYS's standard behavior is very similar (though inmy opinion improved) to that of other DOSes.SYS (no options) should provide a general usage,and SYS CONFIG /help (or SYS CONFIG /?) shouldprovide usage for the new configuration options.Admittedly its brief, but it is there.Below is a more detailed documentation on itsusage (from memory, but I believe it is close to right).The best documentation (and maybe only) is thesource itself.The simplest usage:SYS dest:dest should be the drive (A:, B:, C:, ...) you wishto be bootable with FreeDOS (kernel & command.com)When using this form, KERNEL.SYS and COMMAND.COMmust reside either in the current directory (whichis searched first) or in recent revisions may alsobe in the root directory of the current drive.Complete form:SYS [source] dest: [bootsect [BOTH]]Here dest is the same as before, but this timeyou specify where KERNEL.SYS and COMMAND.COM are.Source may simply be a drive (in this case itis similar to PC & MS SYS). The current directoryof the specified drive is first searched forKERNEL.SYS & COMMAND.COM and if not found thenthe root directory of the specified drive is tried.Alternatively, you may specify a path (either fullyqualified or relative) to where KERNEL.SYS andCOMMAND.COM may be found; note that this should only search this directory and will fail if theyare not found, ie it will not check for them onthe root directory of the drive specified whena path is given. It should also fail if thesource and destination drive are both the sameand would result in trying to SYS from the rootto the root (ie trying to SYS from C:\ to C:\).If you specify a name for "bootsect", for instance,bootsect.fd, SYS will write to that file instead ofthe real boot sector. You will obtain a 512-byte filecontaining the boot sector, which can then be usedfor dual booting or diagnostic purposes.If you also specify BOTH, sys will write to boththe image file and the boot sector.Kernel Configuration Options:Simplest form:SYS CONFIGThis will simply display the current settingsfor the file KERNEL.SYS in the current directory.It is useful to see what the options are currentlyset to, what options are supported, and shouldshow valid values along with defaults (defaults arethe valid values with a '*' next to them).Optionally specify file:SYS CONFIG [drive][path]KERNEL.SYSThis form behaves as above, except will displaythe settings for the kernel file you specify.drive and path are optional, and generally justa \ will be used to indicate root directory ofcurrent drive. KERNEL.SYS specifies the filenameof the kernel, which may not be "KERNEL.SYS",for example when testing you want to alterKERNTEST.SYS and later copy (or rename) this toKERNEL.SYS for booting.Changing options:SYS CONFIG OPTION1=value [OPTION2=value ...]This form will read the current settings fromthe kernel (KERNEL.SYS in the current directory)and set the options specified to the value given.If the value is potentially invalid (too large, toosmall, etc) then a warning will be displayed, butthe change will still occur. The kernel file isonly updated if at least one option is different from thecurrent settings. If you wish to force the kernelfile to be written to, then set the same optiontwice (OPTION1=oddvalue OPTION1=desiredvalue), withthe 1st time the value being different from thecurrent one and the rightmost one being the desiredvalue. Currently three options are supported.Note: currently only the 1st three letters areactually checked, so they may be abreviated toDLA, SHO, and SKI and with my recent patch you mayspecify the value as either a decimal number 0,10,255,...or as a hexidecimal number 0x0,0xA, 0xFF...DLASORT which may be set to 0 or 1DLASORT=0 or DLASORT=1This option is for specifying whether Drive LetterAssignment should follow the normal MSDOS way ofall primary partitions across drives and thenextended partitions, or the more logicalall partitions (primary & extended) on the 1st drive, then repeat for all following drives (all primary & extended, then try next drive).0 corresponds to MS way and 1 corresponds to firstdrive completely, then next ...SHOWDRIVEASSIGNMENT which may be 0 or 1SHOWDRIVEASSIGNMENT=0 or SHOWDRIVEASSIGNMENT=1If 1 then the normal drive assignment informationis displayed upon booting. If 0 then this informationis supressed (not shown).SKIPCONFIGSECONDS which may be -128 to 127.A negative value ( < 0 ) indicates that F5/F8processing will be skipped (the kernel won't checkif you pressed these keys, so you can't skip configfile (CONFIG.SYS) processing). A 0 means you musthave pressed the key precisely for when the kernelchecks for it - essentially skipping, though a welltimed finger will still get to use it. And any valuegreater than 0 is the number of seconds the kernel willdisplay the prompt and wait for you to press the keybefore assuming you didn't.FORCELBA which may be 0 or 1FORCELBA=0 or FORCELBA=1If 1 then the kernel will use LBA (extended INT13)techniques to address all partitions if possible,even if these have a non-LBA partition type andare completely below cylinder 1023 (usually the 8GBboundary). This is 0 by default, for compatibilityreasons. Setting this to 1 may bypass some buggy BIOSes and gives slightly better performance.GLOBALENABLELBASUPPORT which maybe 0 or 1GLOBALENABLELBASUPPORT=0 or GLOBALENABLELBASUPPORT=1If 0 then LBA will be completely disabled, irrespectiveof the FORCELBA setting. You need this if FreeDOS thinksyou have LBA available, but in reality you do not.This setting is set to 1 by default.Example: To set the kernel in the current directoryto have a timeout of 5 seconds (default is 2) runSYS CONFIG SKI=5Changing options of specified file:SYS CONFIG [drive][path]KERNEL.SYS OPTION1=value ...]This is just like previous section on setting options,except the first argument after CONFIG specifies whichkernel file to use. The filename is the same form usedfor displaying options of specified kernel file describedabove.Example2: To set a kernel in the root directory tonot show drive assignment and change the timeoutto never checkSYS CONFIG \KERNEL.SYS SKI=-1 SHOWDRIVEASSIGNMENT=0x0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -