Наши партнеры

Книги по Linux (с отзывами читателей)

Библиотека сайта rus-linux.net

A.1. Microsoft DOS and Windows

A.1.1. Introduction

There are a few reasons which might make it necessary to put Micorosoft DOS/Windows and Linux together on one laptop. Often the support for the flash ROM of PCMCIA cards and modems is not available for Linux, or you have to retrieve hardware information, which is not visible with Linux, due to a lack of support by some hardware manufacturers. I'm not sure whether these tasks can be performed under an emulation like DOS-EMU, WINE or VMware.

If you want Linux with X11, Netscape, etc., and Microsoft-Windows9x,NT,2000,XP things will be tight in a 1GB harddisk. Though I did so with a 810MB disk.

A.1.2. DOS Tools to Repartition a Hard Disk

Often you get a preinstalled version of Microsoft-Windows on your laptop. If you just want to shrink the Windows partition, you need a tool to resize the partition. Or you can remove the partition first, repartition, then reinstall. Most of the following information I found at the page of Michael Egan <Michael.Egan_AT_sonoma.edu>.

A well known and reliable commercial product is Partition Magic from Power Quest.

BootitNG is a shareware programm, which is capable of resizing NTFS, EXT2, EXT3 and ReiserFS partitions.

System Commander 2000 by Symantec? resizes FAT32 partitions, unlike Partition Magic, SC2000 seems to be able to work without the presence of an installed Microsoft operating system (tough you may use Partition Magic from two standalone floppy disks).

One more "newer" utility for repartitioning and resizing FAT partitions is Ranish Partition Manager/Utility (FAT-32 support is claimed for this as well, Linux support is taken into account.) Ranish Partition Manager/Utility .

Many people have used FIPS 15c (which may support FAT-32) FIPS for repartitioning FAT partition sizes.) Also, another version from a different source is FIPS 2.0 (claims to support FAT-32) FIPS 2.0 for repartitioning FAT partition sizes.)

A.1.3. Partition Sharing

You may share your swap space between Linux and Windows. Please see "Dealing with Limited Resources" section.

With Linux you can mount any kind of DOS/Windows partition of the type msdos, vfat and even compressed drives (Drivespace, etc.). For long file names use vfat and if you like autoconversion ( a nice feature for text files), you may do so by using the conv=auto option. I have used this in my /etc/fstab, but be aware this might cause some strange behaviour sometimes, look at the kernel docs for further details.

 /dev/hda8    /dos/d    vfat    user,exec,nosuid,nodev,conv=auto    0    2

The other way round there are also some tools, which provide a means to read and write ext2 partitions from Windows9x/NT.

LREAD is a tool suite for Windows 9x and Windows NT (or DOS or Windows 3.x for those who still have it) for accessing files on Linux harddisks (Linux's native Extended 2 filesystem).

The tools allow to list directories, to copy files from Linux to DOS and to copy files from DOS to Linux. You also can delete files or modify access rights of Linux files from DOS/Windows.

In combination with an included simple server program, you can also access your files from a remote client over the net (however, this might be a security risk, as access protection in this case is rather simple).

A.1.3.1. LINE Is Not an Emulator

LINE executes unmodified Linux applications on Windows by intercepting Linux system calls. The Linux applications themselves are not emulated. They run directly on the CPU just like all other Windows applications.

A.1.4. Installation without CD Drive

You may use the CD drive of a desktop (or copy the content of the CD to the hard disk) and connect both machines with a null modem cable. Then use a DOS boot floppy and the program INTERLNK.EXE to connect both machines.

A.1.5. Miscellaneous


Windows/NT offers: RAS - Remote Access Service

Windows/9x/NT offers the PPTP protocol to connect to remote sites via a TCP/IP tunnel. This protocol is also supported by Linux. PoPToP is the PPTP server solution for Linux allowing Linux servers to function seamlessly in the PPTP VPN environment. This enables administrators to leverage the considerable benefits of both Microsoft clients and Linux servers. The current pre-release version supports Windows 95/98/NT PPTP clients and PPTP Linux clients. The PoPToP pre-release server is not yet fully optimised. On release, PoPToP will be fully compliant with IETF PPTP Internet Draft and it will seamlessly support Windows PPTP clients with the full range of encryption and authentication features.