⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lredir.readme

📁 vhdl 8086 core
💻 README
字号:
From Tim Bird (Tim_R_Bird@Novell.COM) :(altered slightly by DH - changed 'LINUX\FS' to 'PCEMU\FS')LREDIR is a general purpose DOS redirection utility, specificallyimplemented for use with the Linux DOS emulator DOSEMU.In general, DOSEMU provides emulation of a DOS disk redirector via theMFS (Mach File System) module of the emulator.  This support was originallyderived from the redirector for the DOS emulator for Mach.DOS supports installable file systems by issueing callouts to a "redirector"on any functions it receives for files or drives that are registeredwith it as being non-local.  The installable file system support is intendedmainly for use by CD-ROM drivers and network clients, so that these filesystems may be presented to the DOS user as additional drives.  In DOSEMU, MFS uses this mechanism to present a section of the Linux file system tothe DOS which is running in the emulator.  This means that any subtree inthe Linux file system may be redirected and designated as a drive letterunder DOS for use in the emulator.In order for DOS to use redirected drives, it must be configured foradditional drives.  This is done by putting a "LASTDRIVE=Z" statement inthe CONFIG.SYS that is used by the emulator upon loading DOS.  You can setthe LASTDRIVE to any letter of the alphabet.  The default is F if none isspecified, which means that DOS can only use letters A-F for drives.  Theexample above configures all possible drive letters, A through Z, to beavailable for use by DOS (and is what I recommend).  There is a slightmemory penalty for configuring this many drives (about 1K of theconventional memory inside the emulator).To use LREDIR, MFS must first have been enabled using EMUFS.SYS.  To dothis, load EMUFS.SYS in your CONFIG.SYS, with a line like:    device=C:\EMUFS.SYS /usr/src    This will initialize the MFS redirector, and create one redirection automatically on the first available drive letter (usually D:).  AlthoughEMUFS.SYS can be loaded multiple times to get additional drives, Irecommend that you only load it once, and use LREDIR to redirect moredrives to other places in the Linux file system as needed.LREDIR can be used to create new redirections, get a list of the currentredirections, or to delete a redirection.  To create a new redirection,specify the drive letter to use, and the Linux file system path whichwill become the root of that drive.  Since LREDIR is a general-purposeredirection utility, it has a generic syntax which allows it to be usedwith other redirectors besides MFS (like the NetWare Lite client, orDOS VLM NetWare client).  The syntax is:           LREDIR drive: server\volume\path    For use with the Linux file system, we use PCEMU as the server name,FS as the volume name, and then specify a path from the root of theLinux file system as the location to redirect the drive to.  For example:    LREDIR F: PCEMU\FS\USR\SRC    would create a new redirection for drive F:, where the contents of/usr/src would appear at the root of drive F:.  Note that this establishesa root for drive F: which will be enforced by DOS.  ie, drive F: cannotbe used to access files in /usr or /usr/bin, because those Linux directoriesare not in the subtree under /usr/src.LREDIR allows you to redirect any drive available to DOS, including onethat is currently a physical drive.  This means that you can replace one ofyour startup drives with a redirection.  When you delete the redirection,the physical drive will become visible again.  This can be used so thatthe boot diskimage disappears, and is replaced by the mounted MSDOSfile system in Linux, with the drive letter and root the same as beforeLinux was installed.  For example on my system, I have a partitionwith a DOS file system on it.  If I boot my machine with a DOS bootdiskette, this partition is my C: drive in DOS.  When I boot Linux, I mountthis partition, using the msdos file system type, at location /dos/cdrive.For this to work right, you actually need two AUTOEXEC.BAT files, one onthe boot diskimage, and one in the directory that will become the rootof the redirected drive.In the AUTOEXEC.BAT in the boot diskimage I put the line:    LREDIR C: PCEMU\FS\DOS\CDRIVE    and when DOS runs in DOSEMU, it redirects drive C: to be replaced withthe drive C: I booted from.  Also, parsing of the AUTOEXEC.BAT filewill continue with the AUTOEXEC.BAT (if any) on the redirected drive.People who use LREDIR in this way should be careful because COMMAND.COMwill continue parsing the AUTOEXEC.BAT from the redirected drive at thesame file offset where it left off in the AUTOEXEC.BAT on the originalC: drive.  For this reason, it is best to have the LREDIR command on thefirst line of the original (diskimage) AUTOEXEC.BAT, and have the linebe identical in the AUTOEXEC.BAT on the redirected drive.  Is this clearas mud?

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -