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

« back to all changes in this revision

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