[Ubuntu-BR] Dual boot com Ubuntu e Kubuntu

José Aniceto anicetovt em ig.com.br
Segunda Julho 19 17:38:37 UTC 2010


Olá,
veja como fica grub.cfg com vários partições no mesmo hd:
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, com Linux 2.6.32-23-generic' --class ubuntu --class
gnu-linux --class gnu --class os {
	recordfail
	insmod ext2
	set root='(hd0,9)'
	search --no-floppy --fs-uuid --set a75ebc62-93f6-4718-bd08-e4fa869a0020
	linux	/boot/vmlinuz-2.6.32-23-generic
root=UUID=a75ebc62-93f6-4718-bd08-e4fa869a0020 ro   quiet splash
	initrd	/boot/initrd.img-2.6.32-23-generic
}
menuentry 'Ubuntu, com Linux 2.6.32-23-generic (modo de recuperação)'
--class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod ext2
	set root='(hd0,9)'
	search --no-floppy --fs-uuid --set a75ebc62-93f6-4718-bd08-e4fa869a0020
	echo	'Carregando Linux 2.6.32-23-generic ...'
	linux	/boot/vmlinuz-2.6.32-23-generic
root=UUID=a75ebc62-93f6-4718-bd08-e4fa869a0020 ro single
	echo	'Carregando ramdisk inicial ...'
	initrd	/boot/initrd.img-2.6.32-23-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod ext2
	set root='(hd0,9)'
	search --no-floppy --fs-uuid --set a75ebc62-93f6-4718-bd08-e4fa869a0020
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod ext2
	set root='(hd0,9)'
	search --no-floppy --fs-uuid --set a75ebc62-93f6-4718-bd08-e4fa869a0020
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
	insmod ntfs
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set 8a7412fc7412eaa9
	chainloader +1
}
menuentry "Ubuntu, com Linux 2.6.32-22-generic (on /dev/sda10)" {
	insmod ext2
	set root='(hd0,10)'
	search --no-floppy --fs-uuid --set c524a52f-0944-4099-8c07-b53734baec29
	linux /boot/vmlinuz-2.6.32-22-generic
root=UUID=c524a52f-0944-4099-8c07-b53734baec29 ro quiet splash
	initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry "Ubuntu, com Linux 2.6.32-22-generic (modo de recuperação)
(on /dev/sda10)" {
	insmod ext2
	set root='(hd0,10)'
	search --no-floppy --fs-uuid --set c524a52f-0944-4099-8c07-b53734baec29
	linux /boot/vmlinuz-2.6.32-22-generic
root=UUID=c524a52f-0944-4099-8c07-b53734baec29 ro single
	initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry "Linux Educacional 3.0, kernel 2.6.24-27-generic (on /dev/sda6)" {
	insmod ext2
	set root='(hd0,6)'
	search --no-floppy --fs-uuid --set dd9daadc-41ca-426c-82a2-54bd68efd3d6
	linux /boot/vmlinuz-2.6.24-27-generic
root=UUID=dd9daadc-41ca-426c-82a2-54bd68efd3d6 ro quiet splash
locale=pt_BR
	initrd /boot/initrd.img-2.6.24-27-generic
}
menuentry "Linux Educacional 3.0, kernel 2.6.24-27-generic (recovery
mode) (on /dev/sda6)" {
	insmod ext2
	set root='(hd0,6)'
	search --no-floppy --fs-uuid --set dd9daadc-41ca-426c-82a2-54bd68efd3d6
	linux /boot/vmlinuz-2.6.24-27-generic
root=UUID=dd9daadc-41ca-426c-82a2-54bd68efd3d6 ro single
	initrd /boot/initrd.img-2.6.24-27-generic
}
menuentry "Linux Educacional 3.0, memtest86+ (on /dev/sda6)" {
	insmod ext2
	set root='(hd0,6)'
	search --no-floppy --fs-uuid --set dd9daadc-41ca-426c-82a2-54bd68efd3d6
	linux /boot/memtest86+.bin
}
menuentry "Ubuntu, with Linux 2.6.35-8-generic (on /dev/sda7)" {
	insmod ext2
	set root='(hd0,7)'
	search --no-floppy --fs-uuid --set b509221b-0add-4937-98d8-dda24eedfcd0
	linux /boot/vmlinuz-2.6.35-8-generic
root=UUID=b509221b-0add-4937-98d8-dda24eedfcd0 ro quiet splash
	initrd /boot/initrd.img-2.6.35-8-generic
}
menuentry "Ubuntu, with Linux 2.6.35-8-generic (recovery mode) (on /dev/sda7)" {
	insmod ext2
	set root='(hd0,7)'
	search --no-floppy --fs-uuid --set b509221b-0add-4937-98d8-dda24eedfcd0
	linux /boot/vmlinuz-2.6.35-8-generic
root=UUID=b509221b-0add-4937-98d8-dda24eedfcd0 ro single
	initrd /boot/initrd.img-2.6.35-8-generic
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-amd64 (on /dev/sda8)" {
	insmod ext2
	set root='(hd0,8)'
	search --no-floppy --fs-uuid --set 42824740-c956-4e10-9680-4c49e7258944
	linux /boot/vmlinuz-2.6.32-5-amd64
root=UUID=42824740-c956-4e10-9680-4c49e7258944 ro quiet
	initrd /boot/initrd.img-2.6.32-5-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode)
(on /dev/sda8)" {
	insmod ext2
	set root='(hd0,8)'
	search --no-floppy --fs-uuid --set 42824740-c956-4e10-9680-4c49e7258944
	linux /boot/vmlinuz-2.6.32-5-amd64
root=UUID=42824740-c956-4e10-9680-4c49e7258944 ro single
	initrd /boot/initrd.img-2.6.32-5-amd64
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

Aniceto















Em 19 de julho de 2010 13:45, nethell <nethell em logbin.net> escreveu:
> On Mon, 19 Jul 2010 13:06:58 -0300
> Antonio Fabiano Hermida Filho <antoniofhermida em gmail.com> wrote:
>> Eu havia ficado na dúvida por conta da sintaxe mesmo, ia sugerir que, depois
>> de instalados os sistemas, vc os renomeasse por um editor de texto, mas não
>> sei como fazer isso no grub 2 ;/
>> Quanto ao comportamento, sim, tenho quase certeza, justo por instalado duas
>> distros no mesmo hd (embora tenha sido com grub 1).
>> Vamos fazer o seguinte, deixar que alguém com menos dúvidas que eu assine a
>> sentença do menu de boot ...
>> Abração,
>> Antonio f. Hermida
>
> Como não estou com a iso do Kubuntu aqui, vou deixar para testar amanhã. Já particionei o disco para as duas interfaces e vou partir para instalações baśicas sem atualização para ver como fica. Se correr legal, faço atualizações parciais que contenham nova versão de kernel e tiro a conclusão. Se ficar legal... beleza!
>
> PS: Ao responder esta mensagem, apareceu a informação de "enviar como UTF-8 mesmo assim" questionada pelo César. Vou concordar e é só checar se algo está diferente no contexto quando chegar na lista.
>
> nethell
>
>> > On Mon, 19 Jul 2010 12:37:19 -0300
>> > Antonio Fabiano Hermida Filho <antoniofhermida em gmail.com> wrote:
>> > > Quanto a parte de atualização do grub, sim, a atualização é só no Ubuntu.
>> > De fato não sei se os nomes ficarão iguais na lista de menu, pois nunca
>> > > instalei ubuntu e outro *buntu juntos...
>
>> > Bem, uma dúvida está resolvida.
>> > Quando em hds diferentes, o segundo sistema aparece nas opções embora com a
>> > mesma sintaxe "ubuntu kernel tal...", mas você sabe pela ordem de boot dos
>> > hds qual é qual. Minha dúvida é se em um mesmo HD o comportamento do grub
>> > será o mesmo, mantendo o Ubuntu (no caso o último a ser instaldo e principal
>> > de acesso) como primeiro da ordem do grub e no caso o Kubuntu como "outros
>> > sistemas".
> --
> nethell Ubuntu user 24389 Linux user 496632
>
> --
> Mais sobre o Ubuntu em português: http://www.ubuntu-br.org/comece
>
> Lista de discussão Ubuntu Brasil
> Histórico, descadastramento e outras opções:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-br
>




More information about the ubuntu-br mailing list