Fórum Ubuntu CZ/SK
Ostatní => Archiv => Téma založeno: Anthlon 10 Srpna 2007, 14:23:31
-
Zdravím všechny. Začínám s ubuntu, potřeboval bych poradit. Moje situace:
mám 2 fyzické SATA Disky:
(http://img403.imageshack.us/img403/2233/diskyuj3.gif)
Výpis:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 5813 46692891 7 HPFS/NTFS
/dev/sda2 5814 9729 31455270 5 Extended
/dev/sda5 5814 9729 31455238+ 7 HPFS/NTFS
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 9541 76638051 83 Linux
/dev/sdb2 9542 9729 1510110 5 Extended
/dev/sdb5 9542 9729 1510078+ 82 Linux swap / SolarisUbuntu 7.04 mám nainstalováno na onom druhém 80GB disku, kde je i Grub.
případy kdy vyberu v biosu z čeho bootovat a co se stane:
Výběr disku -> Následek
Disk s Wxp - Naběhnou Wxp
Disk s Ubuntu - Naběhne Grub..=Ubuntu
S čím mam problém? - Můj cíl je vytvořit bootmenu abych měl na výběr Wxp a nebo Ubuntu.
Četl jsem mnohé nastavení Grubu a podobné zde a docela se orientuji, ale nic z toho mi nefungovalo, nevím jestli jsem správně zadával příkazy nebo parametry, proto jsem zde vypsal své.
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=c98ec90c-789a-43b9-a262-3a6b5fa772b4 ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
makeactive
quiet
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=c98ec90c-789a-43b9-a262-3a6b5fa772b4 ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LISTZkoušel jsem nastavit grub tak abych měl volbu Wxp, (nastavil jsem v biosu boot z hdd kde je linux)v pořadku se mi ukazal Grub moje přidaná volba, ale pokud jsem ji vybral tak bud chybové hlášky a nebo zámrzy. Linux najel vždy v pořádku.
Zkoušel jsem taky postup uvedený >ZDE (http://www.abclinuxu.cz/clanky/tipy/dual-boot-pomoci-zavadece-windows)< za použití boot ini v Wxp, vytvořil jsem si onen bin soubor příkazem (na své poměry):
sudo dd if=/dev/sdb1 of=linux.bin bs=512 count=1zkopíroval do rootu disku s Wxp a nastavil ostatní věci při startu a bootování z disku kde jsou Wxp se ukázala volba, přičemž po vyběru Ubuntu došlo k zámrzu s kurzorem v levém hornim rohu, a při výběru Wxp normálně najíždějí.
V současné době jsem ve stavu kdy to co nabootuju vybírám přes "boot menu" biosu, proto Vás prosim o radu. Bud jak korektně nastavit grub tam kde ho mám (S tím že v biosu je volba bootu z hdd kde je linux (Grub), nebo jak konkrétně vytvořím správný bin soubor pro bootloader z Wxp (s tím že boot v biosu je nastaven na fyzicky hdd kde je windows).
-
Myslim,ze sem nekde cet,ze Win musi bejt na prvnim disku,tj. v biosu musi bejt nastaven disk kde jsou win.Pak do MBR toho disku s win naistalovat GRUB.Podle navodu na wiki : http://wiki.ubuntu.cz/Obnova_boot_mana%C5%BEeru_Grub_po_reinstalaci_Windows
Muj grub vypada takhle:
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=635b6ed6-8d89-41b3-9fab-e33cd3e55ab4 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu, kernel 2.6.22-9-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.22-9-generic root=UUID=635b6ed6-8d89-41b3-9fab-e33cd3e55ab4 ro quiet splash
initrd /boot/initrd.img-2.6.22-9-generic
quiet
title Ubuntu, kernel 2.6.22-9-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.22-9-generic root=UUID=635b6ed6-8d89-41b3-9fab-e33cd3e55ab4 ro single
initrd /boot/initrd.img-2.6.22-9-generic
title Ubuntu, kernel 2.6.22-8-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.22-8-generic root=UUID=635b6ed6-8d89-41b3-9fab-e33cd3e55ab4 ro quiet splash
initrd /boot/initrd.img-2.6.22-8-generic
quiet
title Ubuntu, kernel 2.6.22-8-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.22-8-generic root=UUID=635b6ed6-8d89-41b3-9fab-e33cd3e55ab4 ro single
initrd /boot/initrd.img-2.6.22-8-generic
title Ubuntu, memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb5.
title linux (on /dev/sdb5)
root (hd1,4)
kernel /boot/vmlinuz BOOT_IMAGE=linux root=/dev/hdb5 splash=silent vga=788
initrd (hd1,4)/boot/initrd.img
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb5.
title linux-nonfb (on /dev/sdb5)
root (hd1,4)
kernel /boot/vmlinuz BOOT_IMAGE=linux-nonfb root=/dev/hdb5
initrd (hd1,4)/boot/initrd.img
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb5.
title failsafe (on /dev/sdb5)
root (hd1,4)
kernel /boot/vmlinuz BOOT_IMAGE=failsafe root=/dev/hdb5 failsafe
initrd (hd1,4)/boot/initrd.img
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb5.
title 2.6.18.8.tex5 (on /dev/sdb5)
root (hd1,4)
kernel /boot/vmlinuz-2.6.18.8.tex5 BOOT_IMAGE=2.6.18.8.tex5 root=/dev/hdb5 splash=silent vga=788
initrd (hd1,4)/boot/initrd-2.6.18.8.tex5.img
savedefault
boot
A vypis z sudo fdisk -l :
Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylindry of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8f8004b1
Zařízení Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/sda2 3893 4865 7815622+ 83 Linux
/dev/sda3 2551 3892 10779615 83 Linux
Diskové oddíly jsou chybně seřazeny
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylindry of 16065 * 512 = 8225280 bytes
Disk identifier: 0x96135bb6
Zařízení Boot Start End Blocks Id System
/dev/sdb1 * 1 17210 138239293+ c W95 FAT32 (LBA)
/dev/sdb2 17211 19457 18049027+ 5 Rozšířený
/dev/sdb5 17211 19377 17406396 83 Linux
/dev/sdb6 19378 19457 642568+ 82 Linux swap / Solaris
Grub mam naistalovanej na disku s win,tj. na hd0.A funguje mi vsechno,Win,Kubuntu i PCLinux ,kterej mam na sdb5,tak nabotuju bez problemu.
Snad to aspon trochu pomuze.
-
jo diky za zmínku, nicméně ja mam win na prvnim disku jak jsem napsal a jak je vidět i z obrázku, grub jako takovy mi najede dobře(Když nastavím v biosu at bootuje z toho disku kde je linux, jakože to tak muže zustat..), i korektně spustí linux, chtěl jsem se prozatím obejít bez toho abych nahraval grub na disk kde je windows, pokud to je možné Wxp spustit z grubu ktery je na disku s linuxem (třebas nastaveny jako první v bootu), pokud to možné není tak nějake řešení se souborem linux.bin (viz link v prvním příspěvku) a bootloaderem od widlí, pokud ta instalace grubu na ten disk k windows bude poslední varianta co jineho zbyde, ale pokud jde jen o to správně formulovat spouštěcí příkaz v grubu tak to bude ta nejsnadnější varianta, v kterou tady pořád doufám. Pls poraďte kdo víte.
-
Pokud to chápu správně, potřebujete pomocí GRUBu spouštět Windows na jiném disku?
-
Pokud to chápu správně, potřebujete pomocí GRUBu spouštět Windows na jiném disku?
Ano myslím si že to je přesně ono, disky jsou vypsány v prvním příspěvku, poprosil bych o přesný výřez nastavení grubu, stačí ty 4 řádky pro windows...
-
Nakonec jsem to vyřešil tak že jsem dal windows na jeden disk s ubuntu a bootuju grub z toho jednoho disku. ty ostatní mam pak na data. Je to asi schůdnější než tu dlouhou dobu vymýšlet jak to udělat, když ten grub se da nastavit poměrně snadno takhle, popřípadě s novou instalací.