Installation manual

42.Preparation Work
After having booted from the Debian installation CD-ROM and having selected our favourite language as well as
keyboard layout, we launch a text console by pressing <ALT-F2> and then <Return>. First, we use cfdisk to save
the original layout of the partitions. Weprobably need this information, if we would later liketorecreate the ser-
vice partition.
Original partition layout:
−−−Starting−−− −−−−Ending−−−− Start Number of
#Flags Head Sect Cyl ID Head Sect Cyl Sector Sectors
−− −−−−− −−−− −−−− −−−− −−−− −−−− −−−− −−−− −−−−−−−−− −−−−−−−−−
10x80 1 1 0 0x0C 239 63 1023 63 114473457
20x00 239 63 1023 0x1C 239 63 1023 114473520 2736720
30x00 0 0 0 0x00 0 0 0 00
40x00 0 0 0 0x00 0 0 0 00
Nowwecreate the twomount points /mnt/windows and /mnt/service and then mount /dev/hda1 (the windows
partition) to /mnt/windows and /dev/hda2 (the service partition) to /mnt/service. After this, we create twoarchive
directories on /mnt/windows and finally use tar to copythe contents of /mnt/service into these twodirectories.
Transfering the contents of the service partition:
#> mkdir /mnt/windows /mnt/service
#> mount /dev/hda1 −t msdos /mnt/windows
#> mount /dev/hda2 −t msdos /mnt/service
#> mkdir /mnt/windows/arch−1 /mnt/windows/arch−2
#> cd /mnt/service
#> tar cf − recovery | (cd /mnt/windows/arch−1; tar xvf −)
#> tar cf − pcdr | (cd /mnt/windows/arch−2; tar xvf −)
#> tar cf − ibmwork | (cd /mnt/windows/arch−2; tar xvf −)
#> tar cf − mfg | (cd /mnt/windows/arch−2; tar xvf −)
#> tar cf − *.exe *.bat *.bin *.prv *.txt *.com *.sys *.hlp *.cpi *.arf *.ini \
>*.def *.tag scri | (cd /mnt/windows/arch−2; tar xvf −)
#> cd /
#> umount /mnt/windows
#> umount /mnt/service
After rebooting Windows, we actually have tomove about half the files from the arch-1/recovery directory to
arch-2/recovery to makethings fit onto two700MB CD-Rs.
To recoverthe original Windows installation, we would have toclear the linux boot loader from the MBR, recre-
ate the partitions from the savedpartition table, copythe contents of the twoCD-Rs into the recreated service
partition, light twoincense sticks, clap twice, bowdeeply,pray,reboot, press <F11> — and wait.
2. 3. Tools for the Creation of the Hibernation File
Forhibernation to work under Linux we have tocreate a special hibernation partition. The necessary tools are
distributed as an Incredibly Braindead Mess, i.e. a self-extracting archive named stndalhd.exe,which (a) does not
run under Windows2000, (b) does only extract to a diskette and (c) is protected by a license, which does not al-
lowthe redistribution of its contents in a less idiotic way.
This horrid thing can be downloaded directly from IBM’sFTP-Server — or via the IBM website by going to
[Support & Download | Thinkpad | Family: Thinkpad A31p | Machine Type: 2653 | Model: R6G ], then selecting
[Downloadable Files | Downloadable Files by Category: Power Management ] and finally choosing [ TP General
—Hibernation utility diskette II for standalone boot ].
To extract this archive,weactually need access to a DOS or Windows95 machine with at least one 3.5floppy
disk drive,e.g. A:, and one additional hard or floppydisk drive,e.g. X:. Running stndalhd.exe from drive X:in-
stalls three files on the floppydisk A:, namely phdisk.exe,phdos.sys and save2dsk.xga. These are the tools we
actually need later.Weput them on some machine, from which we can fetch them via scp later,preferably in a
special directory named ibm.