~qbalazs/installation-guide/lp1030336

« back to all changes in this revision

Viewing changes to da/preparing/nondeb-part/i386.xml

  • Committer: joeyh
  • Date: 2005-10-07 19:51:38 UTC
  • Revision ID: vcs-imports@canonical.com-20051007195138-c3d57b2617a79a4f
move manual to top-level directory, split out of debian-installer package

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- retain these comments for translator revision tracking -->
 
2
<!-- original version: 22664 untranslated -->
 
3
 
 
4
 
 
5
  <sect2 arch="i386"><title>Partitioning From DOS or Windows</title>
 
6
<para>
 
7
 
 
8
If you are manipulating existing FAT or NTFS partitions, it is
 
9
recommended that you either use the scheme below or native Windows or
 
10
DOS tools.  Otherwise, it is not really necessary to partition from DOS
 
11
or Windows; the Linux partitioning tools will generally do a better
 
12
job.
 
13
 
 
14
</para><para>
 
15
 
 
16
But if you have a large IDE disk, and are using neither LBA addressing,
 
17
overlay drivers (sometimes provided by hard disk manufacturers), nor a
 
18
new (post 1998) BIOS that supports large disk access extensions, then
 
19
you must locate your Debian boot partition carefully. In this case,
 
20
you will have to put the boot partition into the first 1024 cylinders
 
21
of your hard drive (usually around 524 megabytes, without BIOS
 
22
translation). This may require that you move an existing FAT or NTFS
 
23
partition.
 
24
 
 
25
</para>
 
26
 
 
27
   <sect3 id="lossless">
 
28
   <title>Lossless Repartitioning When Starting From DOS, Win-32 or OS/2
 
29
   </title>
 
30
 
 
31
<para>
 
32
 
 
33
One of the most common installations is onto a system that already
 
34
contains DOS (including Windows 3.1), Win32 (such as Windows 95, 98, Me,
 
35
NT, 2000, XP), or OS/2, and it is desired to put Debian onto the same disk
 
36
without destroying the previous system. Note that the installer supports
 
37
resizing of FAT and NTFS filesystems as used by DOS and Windows,
 
38
and in most cases you should not need to use the method described below,
 
39
unless you need to move the start of the filesystem.
 
40
 
 
41
</para><para>
 
42
 
 
43
Before going any further, you should have decided how you will be
 
44
dividing up the disk. The method in this section will only split a
 
45
partition into two pieces. One will contain the original OS and the
 
46
other will be used for Debian.  During the installation of Debian, you
 
47
will be given the opportunity to use the Debian portion of the disk as you
 
48
see fit, i.e., as swap or as a file system.
 
49
 
 
50
</para><para>
 
51
 
 
52
The idea is to move all the data on the partition to the beginning,
 
53
before changing the partition information, so that nothing will be
 
54
lost.  It is important that you do as little as possible between the
 
55
data movement and repartitioning to minimize the chance of a file
 
56
being written near the end of the partition as this will decrease the
 
57
amount of space you can take from the partition.
 
58
 
 
59
</para><para>
 
60
 
 
61
The first thing needed is a copy of <command>fips</command> which is
 
62
available in the <filename>tools/</filename> directory on your nearest Debian
 
63
mirror. Unzip the archive and copy the files
 
64
<filename>RESTORRB.EXE</filename>, <filename>FIPS.EXE</filename> and
 
65
<filename>ERRORS.TXT</filename> to a bootable floppy.  A bootable floppy can
 
66
be created using the command <filename>sys a:</filename> under DOS.
 
67
<command>fips</command> comes with very good documentation which you may
 
68
want to read.  You will definitely need to read the documentation if
 
69
you use a disk compression driver or a disk manager.  Create the disk
 
70
and read the documentation <emphasis>before</emphasis> you defragment the disk.
 
71
 
 
72
</para><para>
 
73
 
 
74
The next thing needed is to move all the data to the beginning of the
 
75
partition. <command>defrag</command>, which comes standard with DOS 6.0 and
 
76
later, can easily do the job.  See the <command>fips</command> documentation
 
77
for a list of other software that may do the trick.  Note that if you
 
78
have Windows 9x, you must run <command>defrag</command> from there, since
 
79
DOS doesn't understand VFAT, which is used to support for long
 
80
filenames, used in Windows 95 and higher.
 
81
 
 
82
</para><para>
 
83
 
 
84
After running the defragmenter (which can take a while on a large
 
85
disk), reboot with the <command>fips</command> disk you created in the
 
86
floppy drive.  Simply type <filename>a:\fips</filename> and follow the directions.
 
87
 
 
88
</para><para>
 
89
 
 
90
Note that there are many other other partition managers out there, in
 
91
case <command>fips</command> doesn't do the trick for you.
 
92
 
 
93
</para>
 
94
   </sect3>
 
95
 
 
96
   <sect3 id="partitioning-for-dos"><title>Partitioning for DOS</title>
 
97
 
 
98
<para>
 
99
 
 
100
If you are partitioning for DOS drives, or changing the size of DOS
 
101
partitions, using Linux tools, many people experience problems working
 
102
with the resulting FAT partitions.  For instance, some have reported
 
103
slow performance, consistent problems with <command>scandisk</command>, or
 
104
other weird errors in DOS or Windows.
 
105
 
 
106
</para><para>
 
107
 
 
108
Apparently, whenever you create or resize a partition for DOS use,
 
109
it's a good idea to fill the first few sectors with zeros.  Do this
 
110
prior to running DOS's <command>format</command> command, from Linux:
 
111
<informalexample><screen>
 
112
 
 
113
dd if=/dev/zero of=/dev/hdXX bs=512 count=4
 
114
 
 
115
</screen></informalexample>
 
116
 
 
117
</para>
 
118
   </sect3>
 
119
  </sect2>