~ubuntu-branches/ubuntu/vivid/installation-guide/vivid-proposed

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Frans Pop
  • Date: 2005-10-25 17:37:25 UTC
  • Revision ID: james.westby@ubuntu.com-20051025173725-aq0bm11be7bfd7rw
Tags: 20051025
* Mention in copyright that full GPL is included in the manual.
  Closes: #334925
* Register installed documents with doc-base.
* Minor updates in English text and translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- retain these comments for translator revision tracking -->
 
2
<!-- original version: 11648 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.  As explained in the 
 
37
<xref linkend="partition-sizing"/>, decreasing the size 
 
38
of an existing partition
 
39
will almost certainly damage the data on that partition unless certain
 
40
precautions are taken.  The method described here, while not
 
41
guaranteed to protect your data, works extremely well in practice.  As
 
42
a precaution, you should <emphasis>make a backup</emphasis>.
 
43
 
 
44
</para><para>
 
45
 
 
46
Before going any further, you should have decided how you will be
 
47
dividing up the disk. The method in this section will only split a
 
48
partition into two pieces. One will contain the original OS and the
 
49
other will be used for Debian.  During the installation of Debian, you
 
50
will be given the opportunity to use the Debian portion of the disk as you
 
51
see fit, i.e., as swap or as a file system.
 
52
 
 
53
</para><para>
 
54
 
 
55
The idea is to move all the data on the partition to the beginning,
 
56
before changing the partition information, so that nothing will be
 
57
lost.  It is important that you do as little as possible between the
 
58
data movement and repartitioning to minimize the chance of a file
 
59
being written near the end of the partition as this will decrease the
 
60
amount of space you can take from the partition.
 
61
 
 
62
</para><para>
 
63
 
 
64
The first thing needed is a copy of <command>fips</command> which is
 
65
available in the <filename>tools/</filename> directory on your nearest Debian
 
66
mirror. Unzip the archive and copy the files
 
67
<filename>RESTORRB.EXE</filename>, <filename>FIPS.EXE</filename> and
 
68
<filename>ERRORS.TXT</filename> to a bootable floppy.  A bootable floppy can
 
69
be created using the command <filename>sys a:</filename> under DOS.
 
70
<command>fips</command> comes with very good documentation which you may
 
71
want to read.  You will definitely need to read the documentation if
 
72
you use a disk compression driver or a disk manager.  Create the disk
 
73
and read the documentation <emphasis>before</emphasis> you defragment the disk.
 
74
 
 
75
</para><para>
 
76
 
 
77
The next thing needed is to move all the data to the beginning of the
 
78
partition. <command>defrag</command>, which comes standard with DOS 6.0 and
 
79
later can easily do the job.  See the <command>fips</command> documentation
 
80
for a list of other software that may do the trick.  Note that if you
 
81
have Windows 9x, you must run <command>defrag</command> from there, since
 
82
DOS doesn't understand VFAT, which is used to support for long
 
83
filenames, used in Windows 95 and higher.
 
84
 
 
85
</para><para>
 
86
 
 
87
After running the defragmenter (which can take a while on a large
 
88
disk), reboot with the <command>fips</command> disk you created in the
 
89
floppy drive.  Simply type <filename>a:\fips</filename> and follow the directions.
 
90
 
 
91
</para><para>
 
92
 
 
93
Note that there are many other other partition managers out there, in
 
94
case <command>fips</command> doesn't do the trick for you.
 
95
 
 
96
</para>
 
97
   </sect3>
 
98
 
 
99
   <sect3 id="partitioning-for-dos"><title>Partitioning for DOS</title>
 
100
 
 
101
<para>
 
102
 
 
103
If you are partitioning for DOS drives, or changing the size of DOS
 
104
partitions, using Linux tools, many people experience problems working
 
105
with the resulting FAT partitions.  For instance, some have reported
 
106
slow performance, consistent problems with <command>scandisk</command>, or
 
107
other weird errors in DOS or Windows.
 
108
 
 
109
</para><para>
 
110
 
 
111
Apparently, whenever you create or resize a partition for DOS use,
 
112
it's a good idea to fill the first few sectors with zeros.  Do this
 
113
prior to running DOS's <command>format</command> command, from Linux:
 
114
<informalexample><screen>
 
115
 
 
116
dd if=/dev/zero of=/dev/hdXX bs=512 count=4
 
117
 
 
118
</screen></informalexample>
 
119
 
 
120
</para>
 
121
   </sect3>
 
122
  </sect2>