TIP Toshiba Install Windows
From Gentoo Linux Wiki
| Terminals / Shells • Network • X Window System • Portage • System • Filesystems • Kernel • Other |
Toshiba Notebooks come with Windows installed on one large partition. To install Linux the first step is to change the configuration so that Windows is only on a small part of the disk. Retaining Windows can be important for two reasons - some hardware configuration is only available from Windows utilities, and Toshiba support technicians expect Windows.
The following method works on a 1.5Ghz Toshiba Tecra S1 and will probably work for many other Toshiba notebooks.
Step 1: Partition your disk drive in the normal method to create a Windows compatible partition. I just added an extra partition during the Gentoo install. You may want to stop the Gentoo installation after the partitioning step and do this work so that if something happens you haven't lost much work.
Step 2: Boot off the Toshiba recovery CD.
Step 3: At the prompt to recover Windows press F2 to cancel. This will drop you to a DOS prompt.
Step 4: Change to the CD drive. In my case this was Q: and navigate to the base directory.
C:\>q: Q:\>cd \base
Step 5: Run predata.bat
Q:\BASE>predata
Step 6: The Windows image file is password protected and the password is based on the recovery CD serial number. We put the information required in the TGHOSTPS environment variable. Run set to display the environment variables.
Q:\BASE>set
Copy the FILENAME variable into the TGHOSTPS variable
Q:\BASE>set tghostps=%FILENAME%
Step 7: Toshiba use a customized version of Norton's Ghost to install Windows. Check in the \base directory for the image file. It will have an extension of gho. On the S1 recovery disks it was preinst.gho.
Q:\BASE>dir
Step 8: In this step you will need to specify the destination partition. The first partition of the first disk is 1:1 the third partition of the second disk is 2:3. To specify the partition change the "dst" flag to match your disk geometry. The following example is for the first partition of the first disk with an image file called preinst.gho.
Q:\BASE>q:\base\tghost -clone,mode=pload,src=q:\base\preinst.gho:1,dst=1:1 -fni -autoname -pmbr
Step 10: Ghost should start and ask if you really want to do this. Check that the destination partition is correct. Tell Ghost to continue.
Step 11: Swap CDs to the second CD when requested. When finished reboot. If there were no problems, you are finished. All that is left is to get your favourite boot loader (grub, lilo...) to load it.
[edit] Problems
1) "Abort 10006, Cannot open spanned file". You need to include full path names in Step 8 ie
Q:\BASE>q:\base\tghost -clone,mode=pload,src=q:\base\preinst.gho:1,dst=1:1 -fni -autoname -pmbr
not
Q:\BASE>tghost -clone,mode=pload,src=preinst.gho:1,dst=1:1 -fni -autoname -pmbr
2) Ghost says the password is wrong. Check that you have set the TGHOSTPS variable correctly in Step 6
3) If all else fails, mount the CD in a Linux computer or Windows computer and browse the batch files. Most of the information for this tip comes from those files. Maybe they changed something.
[edit] Notes on particular Toshiba notebook models
Toshiba Satellite M30X
It seems the concept was the same as in the above case, but the directory structure and file names of the recovery DVD are different. Having reserved about 40 gigs for Windows on /dev/hda2, I used the following command line:
X:>\g_inst\tools\trecover -clone,mode=pload,src=x:\02218000.gho:1,dst=1:2 -fni -autoname -pmbr
To be able to boot Windows, I added the following lines to /etc/grub.conf, noting that (hd0,1) refers to /dev/hda2:
title Windows XP
map (hd0,0) (hd0,1)
map (hd0,1) (hd0,0)
rootnoverify (hd0,1)
chainloader +1
One other note, which does not concern Windows, but concerns getting Linux up in the first place. For Linux, PCMCIA services needs to be disabled for this machine on startup. It turned out it had to do with probing of ports 0x800-0x8ff, which can be disabled in the file /etc/pcmcia/config.opts. Toshiba Satellite m30 battery
Toshiba Satellite P25-S520
The instructions in this TIP worked perfectly on my P25-S520. The only difference is that the rescue disc is a DVD, not two CD's. So there's no need to swap out any discs during the installation process.
-Curtis, June 18, 2008
