Sistema não dá boot... [RESOLVIDO]

1. Sistema não dá boot... [RESOLVIDO]

Aristides Neto
aristidesbneto

(usa Debian)

Enviado em 08/09/2012 - 21:08h

Pessoal me ajudem nosso problema...

Instalei o sabayon 9 e quando vou dar boot no sistema da essa msg de erro...
Veja o link.

http://desmond.imageshack.us/Himg32/scaled.php?server=32&filename=foto0806m.jpg&res=landing

Agradeço pela ajuda....


  


2. Re: Sistema não dá boot... [RESOLVIDO]

Bruno
BrunoTecnico

(usa Sabayon)

Enviado em 08/09/2012 - 21:33h

Já tive o mesmo problema, o difícil é lembrar como resolvi.
* A chacola não tá funcionando agora.


# Se possível, poste seu arquivo "/boot/grub/grub.cfg" do Sabayon
e também da distro que estiver responsável pelo Grub.
(use um live cd para obter acesso ao arquivo)

# E como foi isso?
. vc tinha uma outra distro e instalou o Sabayon?
. é o Sabayon que está gerenciando o boot?
. ou tem outra distro responsável pelo Grub?


Quero entender seu cenário e ver se foi parecido com o meu, para eu lembrar como resolvi isso.


3. Re: Sistema não dá boot... [RESOLVIDO]

Aristides Neto
aristidesbneto

(usa Debian)

Enviado em 08/09/2012 - 21:45h

Bruno Tecnico escreveu:

Já tive o mesmo problema, o difícil é lembrar como resolvi.
* A chacola não tá funcionando agora.


# Se possível, poste seu arquivo "/boot/grub/grub.cfg" do Sabayon
e também da distro que estiver responsável pelo Grub.
(use um live cd para obter acesso ao arquivo)

# E como foi isso?
. vc tinha uma outra distro e instalou o Sabayon?
. é o Sabayon que está gerenciando o boot?
. ou tem outra distro responsável pelo Grub?


Quero entender seu cenário e ver se foi parecido com o meu, para eu lembrar como resolvi isso.


Minha distro que gerencia o grub é o debian... já estava com o debian e instalei o sabayon...
Debian esta instalado no sda6 e o sabayon no sda8

#### grub.cfg do sabayon ####

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_fonts ###
### END /etc/grub.d/00_fonts ###

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="${saved_entry}"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
true
}

insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(mduuid/becec3625b59c53f551d09b65337cc56)'
search --no-floppy --fs-uuid --set=root 32e6e148-6648-46fb-bdd9-4dffb5371342
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1024x768
  load_video
  # vga= is deprecated, grub2 handles this just fine
  # making grub2 res == linux fb res
  set gfxpayload=keep
  insmod gfxterm
fi
terminal_output gfxterm
if sleep --interruptible 0 ; then
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_distro_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_distro_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Sabayon GNU/Linux, with Linux x86-3.4.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid09
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/becec3625b59c53f551d09b65337cc56)'
	search --no-floppy --fs-uuid --set=root 32e6e148-6648-46fb-bdd9-4dffb5371342
	echo	'Loading Linux x86-3.4.0-sabayon ...'
	linux	/boot/kernel-genkernel-x86-3.4.0-sabayon ro root=/dev/ram0 ramdisk=8192 real_root=/dev/md0 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda2 real_resume=swap:/dev/sda2 rootfstype=ext3 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initramfs-genkernel-x86-3.4.0-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86-3.4.0-sabayon (recovery mode)' --class sabayon --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid09
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/becec3625b59c53f551d09b65337cc56)'
	search --no-floppy --fs-uuid --set=root 32e6e148-6648-46fb-bdd9-4dffb5371342
	echo	'Loading Linux x86-3.4.0-sabayon ...'
	linux	/boot/kernel-genkernel-x86-3.4.0-sabayon ro single init_opts=single root=/dev/ram0 ramdisk=8192 real_root=/dev/md0 dolvm init=/linuxrc splash=verbose,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda2 real_resume=swap:/dev/sda2 rootfstype=ext3
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initramfs-genkernel-x86-3.4.0-sabayon
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
 


#### grub.cfg do debian ####

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set f9b6fb78-eaee-44d5-a10a-6d7cba5d83ec
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set f9b6fb78-eaee-44d5-a10a-6d7cba5d83ec
set locale_dir=($root)/boot/grub/locale
set lang=pt
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set f9b6fb78-eaee-44d5-a10a-6d7cba5d83ec
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
  set color_normal=light-gray/black
  set color_highlight=white/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set f9b6fb78-eaee-44d5-a10a-6d7cba5d83ec
	echo	'Loading Linux 2.6.32-5-686 ...'
	linux	/boot/vmlinuz-2.6.32-5-686 root=UUID=f9b6fb78-eaee-44d5-a10a-6d7cba5d83ec ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set f9b6fb78-eaee-44d5-a10a-6d7cba5d83ec
	echo	'Loading Linux 2.6.32-5-686 ...'
	linux	/boot/vmlinuz-2.6.32-5-686 root=UUID=f9b6fb78-eaee-44d5-a10a-6d7cba5d83ec ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
	insmod part_msdos
	insmod ntfs
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 08b0030fb0030344
	chainloader +1
}
menuentry "Sabayon GNU/Linux, with Linux x86-3.4.0-sabayon (on /dev/sda8)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos8)'
	search --no-floppy --fs-uuid --set fec65bca-ae69-458b-b12a-07ef430f01d5
	linux /boot/kernel-genkernel-x86-3.4.0-sabayon ro root=/dev/ram0 ramdisk=8192 real_root=/dev/md0 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda2 real_resume=swap:/dev/sda2 rootfstype=ext3
	initrd /boot/initramfs-genkernel-x86-3.4.0-sabayon
}
menuentry "Sabayon GNU/Linux, with Linux x86-3.4.0-sabayon (recovery mode) (on /dev/sda8)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos8)'
	search --no-floppy --fs-uuid --set fec65bca-ae69-458b-b12a-07ef430f01d5
	linux /boot/kernel-genkernel-x86-3.4.0-sabayon ro single init_opts=single root=/dev/ram0 ramdisk=8192 real_root=/dev/md0 dolvm init=/linuxrc splash=verbose,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda2 real_resume=swap:/dev/sda2 rootfstype=ext3
	initrd /boot/initramfs-genkernel-x86-3.4.0-sabayon
}
### 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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
 




4. Re: Sistema não dá boot... [RESOLVIDO]

Bruno
BrunoTecnico

(usa Sabayon)

Enviado em 08/09/2012 - 21:52h

hummm....

Mais esse por favor:
blkid


5. Re: Sistema não dá boot... [RESOLVIDO]

Aristides Neto
aristidesbneto

(usa Debian)

Enviado em 08/09/2012 - 22:06h

abneto@debian:~ $ sudo blkid 
[sudo] password for abneto: 
/dev/sda1: LABEL="Reservado pelo Sistema" UUID="08B0030FB0030344" TYPE="ntfs" 
/dev/sda2: UUID="26A0B19DA0B173C1" TYPE="ntfs" 
/dev/sda3: LABEL="Arquivos" UUID="0A444ECF444EBD67" TYPE="ntfs" 
/dev/sda8: LABEL="testing" UUID="fec65bca-ae69-458b-b12a-07ef430f01d5" TYPE="ext4" 
/dev/sda5: UUID="374761b1-ebc6-447b-ad3d-0a2d6bc3ac20" TYPE="swap" 
/dev/sda6: UUID="f9b6fb78-eaee-44d5-a10a-6d7cba5d83ec" TYPE="ext4" 
/dev/sda7: UUID="c78e2fa4-fd83-45c1-9dcf-64d8c0f7f301" TYPE="ext4" 
abneto@debian:~ $ 
 



6. Re: Sistema não dá boot... [RESOLVIDO]

Bruno
BrunoTecnico

(usa Sabayon)

Enviado em 08/09/2012 - 22:16h

. Blz, vc diz que o Sabayon está no "/dev/sda8".
. E segundo seu blkid, a partição "/dev/sda8" é de numeração "fec65bca-ae69-458b-b12a-07ef430f01d5"


No "grub.cfg" do Debian, vejamos o parágrafo referente ao Sabayon:
1- menuentry "Sabayon GNU/Linux, with Linux x86-3.4.0-sabayon (on /dev/sda8)" {
   2 - insmod part_msdos
   3 - insmod ext2
   4 - set root='(hd0,msdos8)'
   5 - search --no-floppy --fs-uuid --set fec65bca-ae69-458b-b12a-07ef430f01d5
   linux /boot/kernel-genkernel-x86-3.4.0-sabayon ro root=/dev/ram0 ramdisk=8192 real_root=/dev/md0 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda2 real_resume=swap:/dev/sda2 rootfstype=ext3
   initrd /boot/initramfs-genkernel-x86-3.4.0-sabayon
} 


*** Veja a linha 5, a numeração está certa.

- - -

No "grub.cfg" do Sabayon, vejamos o parágrafo referente ao Sabayon:
1 - menuentry 'Sabayon GNU/Linux, with Linux x86-3.4.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os {
   2 - load_video
   3 - insmod gzio
   4 - insmod raid
   5 - insmod mdraid09
   6 - insmod part_msdos
   7 - insmod part_msdos
   8 - insmod ext2
   9 - set root='(mduuid/becec3625b59c53f551d09b65337cc56)'
   10 - search --no-floppy --fs-uuid --set=root 32e6e148-6648-46fb-bdd9-4dffb5371342
   echo   'Loading Linux x86-3.4.0-sabayon ...'
   linux   /boot/kernel-genkernel-x86-3.4.0-sabayon ro root=/dev/ram0 ramdisk=8192 real_root=/dev/md0 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda2 real_resume=swap:/dev/sda2 rootfstype=ext3 
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initramfs-genkernel-x86-3.4.0-sabayon
} 


*** Veja a linha 10, de onde surgiu essa numeração que nem aparece no Blkid?
(depois eu que sou doido).


7. Re: Sistema não dá boot... [RESOLVIDO]

Bruno
BrunoTecnico

(usa Sabayon)

Enviado em 08/09/2012 - 22:21h

. O grub do Debian está certo, pois vc consegue pular para o Boot do Sabayon.

. Já o Grub do Sabayon, que está errado, lhe mostra todo aquele erro (imagem que vc postou).

- - -

# Vc precisa editar apenas o "grub.cfg" do Sabayon, e modificar a numeração na linha "search --no-floppy".


. Errado - atual:
search --no-floppy --fs-uuid --set=root 32e6e148-6648-46fb-bdd9-4dffb5371342 


. Certo - como deve ficar:
search --no-floppy --fs-uuid --set=root fec65bca-ae69-458b-b12a-07ef430f01d5 



8. Re: Sistema não dá boot... [RESOLVIDO]

Aristides Neto
aristidesbneto

(usa Debian)

Enviado em 08/09/2012 - 22:29h

Acabei de fazer essa alteração no grub.cfg do sabayon e o erro foi o mesmo...

Para mim o que interessava era o grub do debian e não o sabayon...

Cara eu to saindo agora, mas vou dar mais uma olhada amanha... qq coisa eu posto aqui!!!

Vlw pela atenção...



9. Re: Sistema não dá boot... [RESOLVIDO]

Bruno
BrunoTecnico

(usa Sabayon)

Enviado em 08/09/2012 - 22:33h

# Depois de editar/modificar o arquivo, vc revisou ele?

* Pode não ter salvo ou ter faltado alguma coisa.

- - -

Adicione esse paragráfo, caso não funcione, vc pode remover ele depois:

menuentry ' Sabayon 9 [paragrafo-TESTE-VivaOlinux]   ' --class sabayon --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos8)'
        search --no-floppy --fs-uuid --set=root fec65bca-ae69-458b-b12a-07ef430f01d5
        echo   'Loading Linux x86-3.4.0-sabayon ...'
        linux   /boot/kernel-genkernel-x86-3.4.0-sabayon ro root=/dev/ram0 ramdisk=8192 real_root=/dev/md0 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda2 real_resume=swap:/dev/sda2 rootfstype=ext3 
        echo   'Loading initial ramdisk ...'
        initrd   /boot/initramfs-genkernel-x86-3.4.0-sabayon
} 



10. Re: Sistema não dá boot... [RESOLVIDO]

Aristides Neto
aristidesbneto

(usa Debian)

Enviado em 09/09/2012 - 13:52h

Ainda não funcionou... copiei seu codigo e mesmo assim não foi... o erro continua o mesmo!!!

Essa instalação foi feita pelo pendrive, acredito que isso não tenha nada a ver, mas...


11. Re: Sistema não dá boot... [RESOLVIDO]

Bruno
BrunoTecnico

(usa Sabayon)

Enviado em 09/09/2012 - 14:21h

# Poste seu "grub.cfg" como está agora, depois das modificações.


12. Re: Sistema não dá boot... [RESOLVIDO]

Aristides Neto
aristidesbneto

(usa Debian)

Enviado em 09/09/2012 - 14:43h

Bruno Tecnico escreveu:

# Poste seu "grub.cfg" como está agora, depois das modificações.



#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_fonts ###
### END /etc/grub.d/00_fonts ###

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="${saved_entry}"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
true
}

insmod raid
insmod mdraid09
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(mduuid/becec3625b59c53f551d09b65337cc56)'
search --no-floppy --fs-uuid --set=root 32e6e148-6648-46fb-bdd9-4dffb5371342
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1024x768
  load_video
  # vga= is deprecated, grub2 handles this just fine
  # making grub2 res == linux fb res
  set gfxpayload=keep
  insmod gfxterm
fi
terminal_output gfxterm
if sleep --interruptible 0 ; then
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_distro_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_distro_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry ' Sabayon 9 [paragrafo-TESTE-VivaOlinux]   ' --class sabayon --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos8)'
        search --no-floppy --fs-uuid --set=root fec65bca-ae69-458b-b12a-07ef430f01d5
        echo   'Loading Linux x86-3.4.0-sabayon ...'
        linux   /boot/kernel-genkernel-x86-3.4.0-sabayon ro root=/dev/ram0 ramdisk=8192 real_root=/dev/md0 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda2 real_resume=swap:/dev/sda2 rootfstype=ext3
        echo   'Loading initial ramdisk ...'
        initrd   /boot/initramfs-genkernel-x86-3.4.0-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86-3.4.0-sabayon (recovery mode)' --class sabayon --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod raid
	insmod mdraid09
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/becec3625b59c53f551d09b65337cc56)'
	search --no-floppy --fs-uuid --set=root fec65bca-ae69-458b-b12a-07ef430f01d5
	echo	'Loading Linux x86-3.4.0-sabayon ...'
	linux	/boot/kernel-genkernel-x86-3.4.0-sabayon ro single init_opts=single root=/dev/ram0 ramdisk=8192 real_root=/dev/md0 dolvm init=/linuxrc splash=verbose,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda2 real_resume=swap:/dev/sda2 rootfstype=ext3
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initramfs-genkernel-x86-3.4.0-sabayon
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
 


Nesta linha pq que aparece swap:/dev/sda2 sendo que o correto é sda5... já mudei isso tb mas mesmo assim não deu certo.

linux   /boot/kernel-genkernel-x86-3.4.0-sabayon ro root=/dev/ram0 ramdisk=8192 real_root=/dev/md0 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda2 real_resume=swap:/dev/sda2 rootfstype=ext3
 







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts