Различия

Здесь показаны различия между выбранной ревизией и текущей версией данной страницы.

setups:linux-plus-winxp [01.03.2016 в 18:18] (текущий)
Строка 1: Строка 1:
 +======Установка 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'' выглядит так
 +
 +<file>
 +# 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
 +</file>
 +
 +Открываю **Gparted** и ставлю **boot flag** на **sda2**. Перезагружаюсь и ставлю на этот раздел Хрюшу. Естественно, она при установке убивает grub и ставит свой загрузчик в mbr.
 +
 +Загружаюсь с Puppy live-cd и правлю ''menu.lst''.
 +
 +<file>
 +# 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
 +</file>
 +
 +как видно, я поправил адреса виндового раздела. (sda2=grub(hd0,1)
 +
 +также восстанавливаю grub
 +
 +<file>
 +root (hd0,0)
 +setup (hd0)
 +</file>
 +
 +<file>
 +#в терминале  
 +
 +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>
 +</file>
 +
 +Перезагружаемся.
 +
 +----
 +
 +//Автор: Zloy_Tigra//
 +
 +/* Разместил: Zloy_Tigra
 +Дата: Среда, 13е Мая 2009 03:01
 +http://www.puppyrus.org/pages+view+37.html */
 
setups/linux-plus-winxp.txt · Последние изменения: 01.03.2016 в 18:18 (внешнее изменение)
 
За исключением случаев, когда указано иное, содержимое этой вики предоставляется на условиях следующей лицензии:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki