Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub.. ei oikein toimi
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Finnish
View previous topic :: View next topic  
Author Message
Jake-san
n00b
n00b


Joined: 21 Feb 2005
Posts: 8

PostPosted: Mon Feb 21, 2005 12:49 pm    Post subject: Grub.. ei oikein toimi Reply with quote

Asensin gentoon kannettavaan, ja on ongelmia saada grub toimiin. Alottaessa kone kyllä latautuu grubiin, mutta siinä se sitten odottaa syötettä

grub.conf: (mukaeltu, ei vastaa 1:1 aitoa)
default 0
timeout 30
splashimage=(hd0,1)/grub/splash.xpm.gz

title=Gentoo
root (hd0,4)
kernel /kernel-2.6.10-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda4
initrd /initrd-2.6.10-gentoo-r6

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

Missä vika? kuka on heikoin lenkki?
hda0 = winxp /ntfs
hda1 = ext2 /boot
hda2 = swap
hda3 = reiserfs /
Back to top
View user's profile Send private message
s4kk3
Apprentice
Apprentice


Joined: 15 Oct 2004
Posts: 232
Location: Finland

PostPosted: Mon Feb 21, 2005 12:53 pm    Post subject: Reply with quote

toi root pitäisi osoittaa /boot osiolle eli:
root (hd0,1)

Itsekin ensimmäistä kertaa grubia kokeillessa menin sekaisin tuon kanssa
Back to top
View user's profile Send private message
Jake-san
n00b
n00b


Joined: 21 Feb 2005
Posts: 8

PostPosted: Mon Feb 21, 2005 1:00 pm    Post subject: Reply with quote

So olikin ihan oikein mulla, root (hd0,1)

Vieläkin bootatessa kysyy optioita


Last edited by Jake-san on Mon Feb 21, 2005 1:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jake-san
n00b
n00b


Joined: 21 Feb 2005
Posts: 8

PostPosted: Mon Feb 21, 2005 1:04 pm    Post subject: Reply with quote

Hetkinen muuten? Kumpaa grub käyttää, grub.confia vai menu.lst:tä?
Back to top
View user's profile Send private message
s4kk3
Apprentice
Apprentice


Joined: 15 Oct 2004
Posts: 232
Location: Finland

PostPosted: Mon Feb 21, 2005 1:08 pm    Post subject: Reply with quote

Jake-san wrote:
Hetkinen muuten? Kumpaa grub käyttää, grub.confia vai menu.lst:tä?


se on aika sama kumpaan ne laittaa.. jos auttaa jotain niin tässä on minun grub.conf

Code:

default 0
timeout 15
# Nice, fat splash-image to spice things up :)
# Comment out if you don't have a graphics card installed
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /vmlinuz ro root=/dev/hda3 video=vesafb:ywrap,pmipal,1024x768-32@85 splash=silent,theme:dragonmatrix
initrd /fbsplash-dragonmatrix-1024x768

title=Gentoo Linux(working)
root (hd0,0)
kernel /vmlinuz.old ro root=/dev/hda3 video=vesafb:ywrap,pmipal,1024x768-32@85 splash=silent,theme:dragonmatrix
initrd /fbsplash-dragonmatrix-1024x768


entä jos kokeilet pelkällä kernelillä ja ilman tuota initrd juttua?

Code:

kernel /kernel-2.6.10-gentoo-r6
Back to top
View user's profile Send private message
Jake-san
n00b
n00b


Joined: 21 Feb 2005
Posts: 8

PostPosted: Mon Feb 21, 2005 1:16 pm    Post subject: Reply with quote

Manuaalin mukaan laitoin nuo initrd jutut. Mutta kernel /kernel-2.6.10-gentoo-r6 toimii
Kiitos.

Mutta ny seuraava ongelma: FSCK ei tykkää /boot osiostani

fsck.ext2: No such file or directory while trying to open /dev/BOOT 8O

Ja kaipaa rootin salasanaa manuaalikorjaukseen
Back to top
View user's profile Send private message
s4kk3
Apprentice
Apprentice


Joined: 15 Oct 2004
Posts: 232
Location: Finland

PostPosted: Mon Feb 21, 2005 1:27 pm    Post subject: Reply with quote

Jake-san wrote:
Manuaalin mukaan laitoin nuo initrd jutut. Mutta kernel /kernel-2.6.10-gentoo-r6 toimii
Kiitos.

Mutta ny seuraava ongelma: FSCK ei tykkää /boot osiostani

fsck.ext2: No such file or directory while trying to open /dev/BOOT 8O

Ja kaipaa rootin salasanaa manuaalikorjaukseen


oletko laittanut /etc/fstab filuun oikeat tiedot?
tässä tapauksessa /dev/BOOT pitäisi olla /dev/hda2

Code:

# <fs>             <mountpoint>    <type>     <opts>            <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1      /boot      ext2      noauto,noatime      1 0
/dev/hda3      /      reiserfs   noatime         0 0
/dev/hda2      none      swap      sw         0 0
/dev/cdroms/cdrom0   /mnt/cdrom   auto      noauto,ro,user      0 0
#/dev/fd0      /mnt/floppy   auto      noauto         0 0
/dev/hda4      /mnt/share   reiserfs   noatime         0 0

# NOTE: The next line is critical for boot!
none         /proc      proc      defaults      0 0
none         /dev/shm   tmpfs      defaults      0 0


siinä on vähän esimerkkiä.. huomioi että ensimmäisen osion numero on 1 ei 0
Back to top
View user's profile Send private message
Jake-san
n00b
n00b


Joined: 21 Feb 2005
Posts: 8

PostPosted: Mon Feb 21, 2005 1:36 pm    Post subject: Reply with quote

Quote:
Juuri keksin tarkistaa fstabin ja siellä ne ongelmat oli. Tein asennuksen 2 kertaa, ekalla kerralla olin laittanu fstabin ja ny unohdin. Mutta kuuluuko /boot olla tyhjä?


Jeps. Nyt toimii boottaaminen, mutta grub ei edelleen näytä mitään valikkoa
Back to top
View user's profile Send private message
Jake-san
n00b
n00b


Joined: 21 Feb 2005
Posts: 8

PostPosted: Mon Feb 21, 2005 2:00 pm    Post subject: Reply with quote

Se siitä sitten. Vahingossa tein mkswap boottiosiolle :P

Edit: En tiedä miten onnistuin, mutta tein /boottia aina jonnekin kummaan paikkaan. Heti kun sain edes kerran ajettua normaalin gentoon ilman livecd:tä ja chroot:ia, grub on toiminu
Ihmettelinkin kun ekaa kertaa gentoossa (taas, ei livecd) boot oli tyhjä?


Last edited by Jake-san on Mon Feb 21, 2005 6:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
tiscali
n00b
n00b


Joined: 21 Feb 2005
Posts: 15
Location: Finland

PostPosted: Mon Feb 21, 2005 3:25 pm    Post subject: Reply with quote

Osaisiko joku neuvoa minua kun tuli gentoo-asennuksessa ongelmia grubin kanssa. En saanut sitä toimimaan vaan latasi jotain ja tuli boottaamisen jälkeen jotain epämääräistä tekstiä ja resetoin sitten.

Osiointi minulla on seuraava: hda on windows levy, hdb on linux levy, jossa on hdb1/boo,hdb2/swap,hdb3 38 gigan extended osio, josta jatkuu, hdb 5=/usr, hdb6=/tmp, hdb7=/var, hdb8=/home

Eli grub.conf laitoin

timeout 30
splashimage=(hd1,0)/grub/splash.xpm.gz
title=Gentoon Linux 2.4.26-r9
root (hd1,0)
kernel /kernel-2.4.28-gentoo-r7 root=/dev/hdb5
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1

Siinä lopussa kun pitää poistua chroot ympäristöstä niin, umount /mnt/gentoo/boot /mnt/gentoo/pro /mnt/gentoo ,ilmoitus oli että ei löydy noita, onko sitten vaikutusta tuohon grubin toimimattomuuteen ?
Kerkisin jo poistaa win xp levyn fixmr:llä grubin voiko jotenkin jälkeenpäin asennusta/mbr asennusta kokeilla ja millä komennoilla ? vai käynnistetäänkö livecd:ltä koko asennus uusiksi toimiiko grub komento tuossa sitten enää ? Partition Magicilla tarkasteltuna asennetut tiedostot on säilyny.
Back to top
View user's profile Send private message
Jake-san
n00b
n00b


Joined: 21 Feb 2005
Posts: 8

PostPosted: Mon Feb 21, 2005 6:37 pm    Post subject: Reply with quote

Code:
# exit
# cd
# umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo
# reboot


Näin tein ja onnistui mahtavasti
Back to top
View user's profile Send private message
Toomuch
n00b
n00b


Joined: 16 Mar 2004
Posts: 49

PostPosted: Mon Feb 28, 2005 10:42 pm    Post subject: Reply with quote

Jake-san wrote:
Ihmettelinkin kun ekaa kertaa gentoossa (taas, ei livecd) boot oli tyhjä?


Mulla meni aikanaan tovi tajuta että oletusarvoisesti /boot unmountataan käynnistyksen jälkeen.

t
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Finnish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum