Unfortunately, there are a few reasons which might make it necessary to put 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 wether this tasks can be achieved under an emulation like DOS-EMU or WINE.
If you want Linux with X, Netscape, etc., and Windows95, things will be tight in a 1GB harddisk. Though I do so with a 810MB disk.
Often you get a preinstalled version of 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@sonoma.edu> at http://libweb.sonoma.edu/mike/fujitsu/ .
A well known and reliable, but commercial product is Partition Magic http://www.powerquest.com/product/pm/index.html from Power Quest.
Many people have used FIPS 15c (which may support FAT-32) http://bmrc.berkeley.edu/people/chaffee/fips/fips.html for repartitioning FAT partition sizes.) Also, another version from a different source is FIPS 2.0 (claims to support FAT-32) http://www.igd.fhg.de/~aschaefe/fips/ for repartitioning FAT partition sizes.)
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.) http://www.users.intercom.com/~ranish/part/ .
Something was recently published on the <linux-kernel@vger.rutgers.edu> mailing list about a partition recovery program. I have not used this, nor examined it, nor read much about it (except for the HTML page.) It may be useful to some of you if you have problems with FIPS, Ranish Partition Manager/Utility or Partition Magic destroying your partition information. You can find information on this partition-fixer named "fixdisktable" at http://bmrc.berkeley.edu/people/chaffee/fat32.html . It is quite a ways down in that page. Or look for it via ftp in ftp://bmrc.berkeley.edu/pub/linux/rescue/ and locate the latest "fixdisktable" in that ftp directory. (Source and binary dist should be available.)
Before repartitioning your harddisk take care about the disk layout. Especially look for hidden disk space or certain partitions used for suspend to disk or hibernation mode. Some laptops come with a partition which contains some BIOS programs (e.g. COMPAQ Armada 1592DT). Search the manual carefully for tools like PHDISK.EXE
, Suspend to Disk, Diagnostic TOOLS.
Please see the Different Environments chapter, for information about booting different operating systems from the same harddisk.
You may share your swap space between Linux and Windows. Please see "Dealing with Limited Resources" section. Also with Linux you can mount any kind of Windows partition. The other way round there should be also some tools, but I don't have an URL yet.
Also you can mount DOS drives 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