Установка WinXP на систему с Linux

Имеем: установленные slackware и Puppy. Хотим поставить сверху Win не ломая структуру разделов и не рискуя данными.

У меня диск размечен так:

sda1 15 gb slackware
sda2 35 gb раздел, оставленный под win
sda3 10 gb Puppy
sda4 108 gb ntfs раздел под данные винды

У меня загрузка происходит посредством grub (в mbr)

menu.lst выглядит так

# Grub Configuration File
oreground=ffffff
background=03bc19
configfile /boot/grub/menu.lst
timeout=10

title PuppyRus-1B6
root (hd0,0)
kernel /PU1B6/vmlinuz psubdir=PU1B6
initrd /PU1B6/initrd.gz
boot

title SlackWare12.2
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1
boot

title Recovery Console of Windows XP
root (hd0,2)
makeactive
chainloader /cmldr

title goto Windows menu
root (hd0,2)
makeactive
chainloader +1

Открываю Gparted и ставлю boot flag на sda2. Перезагружаюсь и ставлю на этот раздел Хрюшу. Естественно, она при установке убивает grub и ставит свой загрузчик в mbr.

Загружаюсь с Puppy live-cd и правлю menu.lst.

# Grub Configuration File
#splashimage=(hd0,0)/boot/linuxinside.xpm.gz
splashimage=(hd0,0)/boot/biosplash.xpm.gz
#splashimage=(hd0,0)/boot/colors.xpm.gz
#splashimage=(hd0,0)/boot/DigitalAnGeL.xpm.gz
#splashimage=(hd0,0)/boot/zion.xpm.gz

foreground=ffffff
background=03bc19
configfile /boot/grub/menu.lst
timeout=10



title PuppyRus-1B6
root (hd0,0)
kernel /PU1B6/vmlinuz psubdir=PU1B6
initrd /PU1B6/initrd.gz
boot



title SlackWare12.2
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1
boot



title Recovery Console of Windows XP
root (hd0,1)
makeactive
chainloader /cmldr



title boot Windows XP
root (hd0,1)
makeactive
chainloader +1



title reboot
savedefault --wait=2
reboot

как видно, я поправил адреса виндового раздела. (sda2=grub(hd0,1)

также восстанавливаю grub

root (hd0,0)
setup (hd0)
#в терминале   

grub

GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]

grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  16 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.

grub>

Перезагружаемся.


Автор: Zloy_Tigra