Três S.O em dois hd's? [RESOLVIDO]

1. Três S.O em dois hd's? [RESOLVIDO]

Barton
bartonMK2

(usa Slackware)

Enviado em 01/11/2010 - 08:15h

Bom dia pessoal.

Tenho em uma das minhas máquinas um hd de 30G com slackware 13, acabei de comprar um outro hd de 80G, farei a instalação deste segundo hd com dedian lenny e winxp sp2.

Terei então três S.O na mesma máquina, gostaria de saber de vocês os procedimentos necessários para os três S.O rodarem de boa ou se na hora de instalar o debian grub irá trabalhar junto com lilo do slack???




  


2. Re: Três S.O em dois hd's? [RESOLVIDO]

Luiz Carlos Douglas de Jesus
luiz92

(usa Arch Linux)

Enviado em 01/11/2010 - 08:59h

Voce pode instalar os dois novos sitemas operacionais no segundo hd com o grub do linux do segundo hd no segundo hd, sendo assim se voce da boot pelo primeiro hd e carregado o lilo do slackware e se der boot pelo segundo hd e carregado o gerenciador de boot do segundo hd.

Ou voce pode configurar o lilo para dar boot pelos tres sistema ou o grub para dar boot pelos tres sitemas e escolher em qual hd voce vai instalar o gerenciador de boot seja no primeiro ou no segundo.


3. Re: Três S.O em dois hd's? [RESOLVIDO]

Barton
bartonMK2

(usa Slackware)

Enviado em 01/11/2010 - 09:17h

Opa valeu pela resposta, gostaria de bootar os tres sistemas pelo lilo do slack no primeiro hd.
Como faço para editar o lilo para bootar com os três sistemas?


4. Re: Três S.O em dois hd's? [RESOLVIDO]

Clodoaldo Santos
clodoaldops

(usa Linux Mint)

Enviado em 01/11/2010 - 10:53h

Eu já fiz uma pergunta parecida... veja aqui as respostas:
http://www.vivaolinux.com.br/topico/Linux-Mint/Dualboot-com-2-HDs.-Qual-a-melhor-opcao


5. Re: Três S.O em dois hd's? [RESOLVIDO]

Barton
bartonMK2

(usa Slackware)

Enviado em 01/11/2010 - 11:24h

Então clodoaldo, darei uma estudada no seu caso valeu...


6. Três S.O em dois hd's?

Edwal F. Paiva Filho
nicolo

(usa Ubuntu)

Enviado em 01/11/2010 - 14:45h

Quando você instalar o windows ele vai zunir com o seu belo LILO e você vai ficar a ver navios,
quero dizer vai ter que instalar o LiLO a partir de cd de boot do slack ou o GRUB a partir do CD de boot do debian.

2-Instale primeiro o windows e logo em seguida o Debian, o LILO vai sumir mas o Debian instala o GRUB no MBR do disco zero (primeiro HD).

3-Boot múltiplo não é trivial, precisa ter noção de paricionamento de MBR e de gerenciador de inicialização.

4-O Windows tem um gerenciador de boot que ele instala sem perguntar nada, mete o ferro no seu MBR e não dá mais boot de Linux, parece que o Linux sumiu , mas não sumiu, apenas não foi incluido na tabela de boot do windows que é o arquivo oculto \boot.ini

5-É possível colocar o Linux na tabela de boot do windows, mas é meio cascudo.
Há um programa de windows freeware (bootpart) que ajuda a fazer isso.

6-O sistema instalado por último instala o seu gerenciador no MBR DO DISCO ZERO (o primeiro disco). Lembre-se disso para não ficar desesperado.
Boa sorte.


7. Re: Três S.O em dois hd's? [RESOLVIDO]

Luiz Carlos Douglas de Jesus
luiz92

(usa Arch Linux)

Enviado em 02/11/2010 - 17:28h

Adicione algo parecido a isso no /etc/lilo.conf:

image=/boot/vmlinuz-2.6.24-19-generic
label="Lin 2.6.24img0"
initrd=/boot/initrd.img-2.6.24-19-generic
read-only

Onde:

image é o executavel do kernel que é vmlinuz alguma coisa
label é o título
initrd se necessario carregar modulos que nao foram compilados no kernel e sao escenciais como acesso a hds e partiçoes.

rodar comando lilo depois



8. Re: Três S.O em dois hd's? [RESOLVIDO]

Barton
bartonMK2

(usa Slackware)

Enviado em 06/11/2010 - 13:02h

Oh eu aqui novamente, instalei o segundo hd, ficando assim: 1º hd com slackware, 2º hd em duas partições winxp e debian.

Com o primeiro hd ja tinha o slackware, então ñ mexi. No segundo hd, deixando como slave e instalando o winxp primeiro, o debian por último na outra partição.

Durante a instalação do debian, o grub reconheceu o winxp e o slack, então deixei ele escrever no primeiro hd onde tinha o lilo e após o boot o grub mostra corretamente o slack e winxp.

Consigo entra no windows e debian normalmente, o problema é o slack que a pesar de aparecer na opção de boot e ele ñ inicializa mais, dando a seguinte mensagem: kernel panic - not syncing: VFS: unable to mount root fs on unknown - block (0,0).

E agora com o recuperar o slack???


9. Boot do slackware

Edwal F. Paiva Filho
nicolo

(usa Ubuntu)

Enviado em 06/11/2010 - 14:09h

Para colocar o slackware dê boot de debian


title SLACKWARE
root (hd0,0)
kernel /boot/vmlinuz-2.6.31-22-huge root=/dev/sda1 ro quiet splash locale=pt_BR
#initrd /boot/initrd.img-2.6.31-22-generic-pae
quiet

Cuidados:
1-Precisa corrigir a versão do kernel. Para isso abra com o gerenciador de arquivos a partição do slackware (sda1 ou hda1) em procure o arquivo em /boot
vmlinuz-2.6.xx-yy e anote
Verifique no mesmo diretório se existe o arquivo initrd.img-2.6.xx-yy
Anote isso acima

2-No terminal
su
Dê a senha

gedit /boot/grub/menu.lst

Acrescente o bloco acima com as correções necessárias, no arquivo texto menu.lst conforme segue:

Não sei se o seu primeiro HD é SATA (sda1) ou IDE antigo (hda1) o mais provável é que seja sda1

gedit /boot/grub/menu.lst

3-Ajuste a versão do kernel que você anotou no item 1
Se tiver o arquivo initrd.img acrescente e acerte a versão , se o slackware não tiver isso coloque uma tralha # no início da linah do initrd.

Salve e reinicie a máuina.
Se não fincionar precisa vboltar ao debian e corrigir se tiver algo errado.
Boa sorte.


10. ...

Glauber GF
mcnd2

(usa Debian)

Enviado em 06/11/2010 - 14:36h

Cara, complementando o que o 'nicolo' disse, quando você estiver no debian de o comando "fdisk -l" como 'root' para listar os discos e partições existentes no hd.

Anote em qual partição está o Slackware, por exemplo "hda1" ou "sda1" dependendo do seu HD. Agora você muda no GRUB do Debian por onde está sendo gerenciado o menu das tabelas de partições do HD onde escolherá qual sistema iniciar para tal sistema subir. Se o Windows e o Debian iniciam numa boa, você só precisa acertar o partição do Slackware, mudando no arquivo 'menu.list' dentro do diretório '/boot/grub/' a linha:

kernel /boot/vmlinuz-2.6.31-22-huge root=/dev/sda1 ro quiet splash locale=pt_BR

Onde "sda1" seja sua partição igual a que o comando 'fdisk -l' no Debian lhe mostrou.

De retorno...


11. ...

12. Re: Três S.O em dois hd's? [RESOLVIDO]

Barton
bartonMK2

(usa Slackware)

Enviado em 06/11/2010 - 19:43h

Muito obrigado a todos aqui pela ajuda, segue a saída do comando fdisk -l:

Disk /dev/hda: 30.7 GB, 30750031872 bytes
255 heads, 63 sectors/track, 3738 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Disk identifier: 0xfe08fe08

Dispositivo Boot Start End Blocks Id System
/dev/hda1 * 1 3616 29045488+ 83 Linux
/dev/hda2 3617 3738 979965 5 Estendida
/dev/hda5 3617 3738 979933+ 82 Linux swap / Solaris

Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000001

Dispositivo Boot Start End Blocks Id System
/dev/hdb1 * 1 4207 33792696 7 HPFS ou NTFS
/dev/hdb2 4208 9497 42491925 83 Linux
/dev/hdb3 9498 9729 1863540 5 Estendida
/dev/hdb5 9498 9729 1863508+ 82 Linux swap / Solaris



E aproveitando também, segue o conteúdo do arquivo menu.lst do dedian:

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

# 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=/dev/hdb2 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

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet

## 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=(single-user) single
# altoptions=(single-user 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 Debian GNU/Linux, kernel 2.6.26-2-686
root (hd1,1)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/hdb2 ro quiet
initrd /boot/initrd.img-2.6.26-2-686

title Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
root (hd1,1)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/hdb2 ro single
initrd /boot/initrd.img-2.6.26-2-686

### 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/hda1.
title Slackware Linux (Slackware 13.1.0) (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-generic-2.6.33.4 root=/dev/hda1
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Slackware Linux (Slackware 13.1.0) (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-generic-smp-2.6.33.4-smp root=/dev/hda1
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Slackware Linux (Slackware 13.1.0) (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-huge-2.6.33.4 root=/dev/hda1
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Slackware Linux (Slackware 13.1.0) (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-huge-smp-2.6.33.4-smp root=/dev/hda1
savedefault
boot


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hdb1
title Microsoft Windows XP Professional
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1




01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts