Autor Tópico: Lilo x Grub e três SOs instalados  (Lida 6718 vezes)

Offline Perícope

  • Vivendo e aprendendo... Liga dos Dinos
  • Usuário Ubuntu
  • *
  • Mensagens: 299
    • Ver perfil
Lilo x Grub e três SOs instalados
« Online: 04 de Outubro de 2005, 20:48 »
Prezados colegas,

minha máquina estava configurada da seguinte forma:
hda1: rwindows xp, ntfs
hda2: dados, fat32
hdc1: kurumin,
hdc2: livre
hdc3: swap
hdc4: dados, fat32

Gravei o Lilo no mbr e configurei o setup para iniciar a máquina pelo segundo hd. Funcionava direitinho. Então, resolvi instalar o Ubuntu em hdc2, que eu havia preparado para uma outra distro. Rodou tudo direitinho. No final, porém, o Ubuntu instalou o Grub. Agora, a inicialização é feita por ele.

No entanto, não consigo mais carregar o Kurumin.  :(  Pelo Grub, só entram Ubuntu (que ainda não consigo usar totalmente, mas creio que seja assunto para outro tópico) e Rwindows.

Perguntas:
1. gosto mais do lilo do que do grub. Como posso voltar ao lilo, com as opções de carregar também o Ubuntu?
2. alguma idéia do motivo de eu não conseguir carregar o kurumin?

Por causa dessa encrenca, estou sendo obrigado a usar o SO do Darth Blargheitis  :evil:

Toda dica será bem-vinda!
Usuário Linux n. 414104 - Usuário Ubuntu n. 3048
| Não tenha pressa: pesquise no fórum primeiro! |

gleidson

  • Visitante
Lilo x Grub e três SOs instalados
« Resposta #1 Online: 05 de Outubro de 2005, 16:46 »
Posta as linhas correspondentes do teu /boot/grub/menu.lst.

Offline eggx.geo

  • Usuário Ubuntu
  • *
  • Mensagens: 222
    • Ver perfil
Lilo x Grub e três SOs instalados
« Resposta #2 Online: 05 de Outubro de 2005, 17:05 »
Quando instalei o ubuntu o grub não inicia na minha máquina nem a pau.
Depois de instalado e sem entrar o ubuntu, coloquei o cd de instalação e pulei a parte de configuração inicial, ele foi para um menu que lá pelos ultimos ítens (na parte de baixo da tela) descobri que me permitiria instalar o lilo ao inves do grub.
Instalei e funcionou de cara.
Talvez voce possa fazer isso ou instalar o lilo pelo apt-get, copiar o lilo.conf da tua partição do kurumin e acrescentar a linha que da o boot no ubuntu.
Egg

Offline Perícope

  • Vivendo e aprendendo... Liga dos Dinos
  • Usuário Ubuntu
  • *
  • Mensagens: 299
    • Ver perfil
menu.lst
« Resposta #3 Online: 07 de Outubro de 2005, 10:03 »
Aqui esta o conteudo do menu.lst

# 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'.          
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 optons 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 specifiv 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=root=/dev/hdc2 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,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

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## nonaltoption boot targets option
## This option controls options to pass to only the
## primary kernel menu item.
## You can have ONLY one nonaltoptions line
# nonaltoptions=quiet splash

## 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

## ## End Default Options ##

title      Ubuntu, kernel 2.6.10-5-386
root      (hd1,1)
kernel      /boot/vmlinuz-2.6.10-5-386 root=/dev/hdc2 ro quiet splash
initrd      /boot/initrd.img-2.6.10-5-386
savedefault
boot

title      Ubuntu, kernel 2.6.10-5-386 (recovery mode)
root      (hd1,1)
kernel      /boot/vmlinuz-2.6.10-5-386 root=/dev/hdc2 ro single
initrd      /boot/initrd.img-2.6.10-5-386
savedefault
boot

title      Ubuntu, kernel memtest86+
root      (hd1,1)
kernel      /boot/memtest86+.bin  
savedefault
boot

### 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 an existing
# linux installation on /dev/hdc1.
title      Kurumin (on /dev/hdc1)
root      (hd1,0)
kernel      /boot/vmlinuz-2.6.11-kanotix-7 root=/dev/hdc1 ro append = "splash=silent apm=power-off nomce quiet devfs=mount
initrd      /boot/initrd-ksplash
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hdc1.
title      memtest86 (on /dev/hdc1)
root      (hd1,0)
kernel      /boot/memtest86.bin root=/dev/hdc1 ro append = "splash=silent apm=power-off nomce quiet devfs=mount
savedefault
boot


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title      Microsoft Windows XP Professional
root      (hd0,0)
savedefault
makeactive
chainloader   +1
Usuário Linux n. 414104 - Usuário Ubuntu n. 3048
| Não tenha pressa: pesquise no fórum primeiro! |

gleidson

  • Visitante
Re: menu.lst
« Resposta #4 Online: 07 de Outubro de 2005, 14:52 »
Citação de: "Perícope"

# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hdc1.
title      Kurumin (on /dev/hdc1)
root      (hd1,0)
kernel      /boot/vmlinuz-2.6.11-kanotix-7 root=/dev/hdc1 ro append = "splash=silent apm=power-off nomce quiet devfs=mount
initrd      /boot/initrd-ksplash
savedefault
boot


Tu consegue montar a partição do Kurumin pelo menos? Consegue acessar ela na boa ou dá algum erro? Ah, e qual é o erro que dá quando tu tenta iniciar o Kurumin pelo grub?

Pelo teu menu.lst, o Kurumin está mesmo em hdc1 (hd1,0):
hd1 segundo disco
0 primeira partição

Deu pra notar que o Grub começa a contar de 0 (zero) né?

Tente montar a partição onde está o Kurumin e posta o que deu aqui.