Ubuntu Suomen keskustelualueet
Ubuntun käyttö => Asentaminen ja käyttöönotto => Aiheen aloitti: kermakana - 12.05.07 - klo:18.48
-
Elikkä, olen koittanut saada windowsia ja ubuntua samalle kovalevylle eri osioille.
Pistin xp:n ensin omalle osiolleen, tein toisen osion tiedostoille ja jätin 10gt käyttämättä ubuntua varten. Kun olin saanut windowsin kuntoon, aloin asentamaan ubuntua. Asennus meni ok, mutta kun käynnistin koneen uudestaan, ei grubista kuulunut mitään, vaan kone boottaa suoraan windowsiin. Katsoin vielä live-cd:llä, niin ubuntu kyllä on siellä missä pitääkin.
Mitä avuksi?
Koneessa on siis kaksi kovalevyä, 250gt SATA jossa xp ja ubuntu ovat, sekä 150gt IDE vain tiedostoille.
-
http://forum.ubuntu-fi.org/index.php?topic=2853.msg19680#msg19680
-
Vai pitäisköhän tuossa SATA levyn tapauksessa olla
grub-install /dev/sda
enpäs nyt muistakkaan google kyllä kertoo... ;D
-
Mitähän tuo rescue kohta meinaa, en semmoista löytänyt boot menusta. Koitin "grub-install /dev/sda":ta live-cd:ltä ja tuli:
mkdir: cannot create directory `/boot/grub': Permission denied
jostain luin että sudo auttaa, niin tuli:
Probing devices to guess BIOS drives. This may take a long time.
Could not find device for /boot: Not found or not a block device.
"sudo grub-install /dev/hda" antoi:
/dev/hda: Not found or not a block device.
Testasin myös buuttaa toiselta kovalevyltä, niin sieltä sitten tuli grub valikko error 17 kanssa >_<
-
Grub error 17 (http://forum.ubuntu-fi.org/index.php?topic=9140.0)
Grub Error Messages (http://www.uruk.org/orig-grub/errors.html)
Grub-alkulataajan kirjoittaminen asennus-CD:llä (http://forum.ubuntu-fi.org/index.php?topic=8070.0)
Olisiko näistä apua, jos ei niin käytä hakua: grub error 17. Tee sitten lisäkysymyksiä, viisaammat vastatkoot lisää.
chrootilla pääset pääkäyttäjän oikeuksilla järjestelmääsi live-cd:llä (http://forum.ubuntu-fi.org/index.php?topic=3289.0)
Kopioi menu.lst tänne.
sudo gedit /boot/grub/menu.lst
-
Olisiko näistä apua, jos ei niin käytä hakua: grub error 17.
Mitä tuolta haen? (Jos luulit että osaan käyttää linuxia, luulit väärin :P)
sudo gedit /boot/grub/menu.lst
Tuolla tulee tyhjä tiedosto. Jos meinasit samaa tiedostoa jo asennetulta ubuntulta, piti eka mounttaa se ja hakea tuosta kansiosta. Toivottavasti on oikea.
# 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=6935aeb5-7f8c-4e14-9a8f-d71518823bf8 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,5)
## 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
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-15-generic
root (hd1,5)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=6935aeb5-7f8c-4e14-9a8f-d71518823bf8 ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd1,5)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=6935aeb5-7f8c-4e14-9a8f-d71518823bf8 ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd1,5)
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/sdb1
title Microsoft Windows XP Professional
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Luin jostain tässä, että jos on SATA ja IDE kovalevyjä koneessa, ubuntun asennus aloittaa luettelemaan ensin IDE kovalevyistä, kun taas bootatessa ensin tulee SATA. Olisko tässä käynyt sitten niin, kun tuo IDE kovo on toisena, että grub on asentunut sinne, eikä SATA levylle jossa ubuntu on?
-
Tietoa mitä on milläkin osiolla:
sudo fdisk -l
Esim.
Laite Käynn Alku Loppu Lohkot Id Järjestelmä
/dev/hda1 * 1 1912 15358108+ 7 HPFS/NTFS
/dev/hda2 1913 19457 140930212+ f W95 Laaj (LBA)
/dev/hda5 7012 12748 46082421 7 HPFS/NTFS
/dev/hda6 1913 7011 40957654+ 83 Linux
/dev/hda7 19331 19457 1020096 82 Linux / Solaris heittovaihtotiedosto
/dev/hda8 12749 19330 52869883+ 83 Linux
Esim.
hda1 > grub hd0,0
hda5 > grub hd0,4
hdb1 > grub hd1,0 jne
Numerointi grubissa alkaa siis luvusta 0. Näitä voisi verrata onko eroja.
-
sudo fdisk -l
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 5099 40957686 7 HPFS/NTFS
/dev/sda2 5100 30401 203238315 f W95 Ext'd (LBA)
/dev/sda5 5100 29321 194563183+ 7 HPFS/NTFS
/dev/sda6 29322 29392 570276 82 Linux swap / Solaris
/dev/sda7 29393 30401 8104761 83 Linux
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 2 19455 156264255 f W95 Ext'd (LBA)
/dev/sdb5 2 19455 156264223+ 7 HPFS/NTFS
-
ainakin menu.lst yrittää käynnistää ubuntua väärältä osiolta. Vaihda ubuntun käynnistyskohdissa (hd1,5) arvoiksi (hd0,6) näin:
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=6935aeb5-7f8c-4e14-9a8f-d71518823bf8 ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=6935aeb5-7f8c-4e14-9a8f-d71518823bf8 ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd0,6)
kernel /boot/memtest86+.bin
quiet
Mitenkähän nuo voivat olla noin pielessä? Oletko muuttanut niitä käsin? Järjestelmä yritti käynnistää ubuntua toisen kiintolevyn kuudennelta osiolta, jota ei edes ole olemassa. ubuntu näyttää fdiskin mukaan löytyvän ensimmäisen kiintolevyn seitsemänneltä osiolta.
Niin ja jos et saa edes grubin listausta näkyviin, (valikko, jossa näkyy kolme ubuntu-vaihtoehtoa ja alimpana windows) vaan grub error tulee ennen sitä, grubin asennus on epäonnistunut. Asenna grub uudelleen alla olevan takuuvarman ohjeen mukaan, joka tässä tulikin jo esille ylempänä:
Grub-alkulataajan kirjoittaminen asennus-CD:llä (http://forum.ubuntu-fi.org/index.php?topic=8070.0)
-
En tietääkseni tehnyt asennuksen aikana mitään erikoista, loin ekalle kovalevylle osion ubuntulle ja swapille ja annoin mennä. Kun käynnistin koneen uudelleen, boottasi se suoraan windowsiin, eikä grubia näkynyt missään. Sitten myöhemmin se näytti olevan tuolla toisella kovalevyllä, kun koitin siltä boottaa, mutta siihenkin tulee vain tuo error.
Yritän huomenna asentaa grubia uusiksi. Eihän tuossa ole mitään vaaraa, että koko homma menee sekaisin ja en pääsisi edes windowsiin? Hieman pelottaa tuo jos jo näin paljon sekoilee. Onko mitään toimenpiteitä tuon varalle, koska en todellakaan tahdo asentaa windowsia ja ohjelmia taas uudestaan.
-
windowsin käynnistyslataajan saa palautettua windowsin asennus CD:ltä valitsemalla "korjaa asennus" ja komentamalla fixmbr.
Selvitä kuitenkin ennen kuin lähdet soittaen sotaan, miksi grub ei koneessasi toimi.
-
Uskoisin että tämä on vikana:
https://bugs.launchpad.net/ubuntu/+source/grub/+bug/8497 (https://bugs.launchpad.net/ubuntu/+source/grub/+bug/8497)
toinen samasta asiasta https://bugs.launchpad.net/ubuntu/+source/grub/+bug/11284 (https://bugs.launchpad.net/ubuntu/+source/grub/+bug/11284)
Taidan siis koittaa muokkaa menu.lst:tä.