Autor Tópico: Problema ao iniciar por pendrive  (Lida 9143 vezes)

Offline nogueira13

  • Usuário Ubuntu
  • *
  • Mensagens: 74
    • Ver perfil
Problema ao iniciar por pendrive
« Online: 29 de Abril de 2014, 16:14 »
Pessoal, criei um pendrive (de 4Gb) "bootavel" usando o Unetbootin. Só que, quando vou dar partida pelo pendrive após ter configurado a bios para partir por dispositivo USB, ele inicia um Ubuntu 12.04 LTS (com a tela inicial perguntando se quer rodar do dispositivo ou instalar no HD) que eu não sei de onde ele está pegando, porque no HD está instalado a última versão do Ubuntu 14.04 LTS. Mesmo que eu não tenha o pendrive espetado, mas com a bios configurada para iniciar pelo pendrive, ele inicia este Ubuntu 12.04 LTS. Não sei porque e de onde ele está pegando esta distro Ubuntu 12.04 LTS. Devo informar que estou usando um Laptop Dell Inspiron 1545. Não tenho nem ideia de onde procurar para resolver este problema. Qualquer ajuda agradeço antecipadamente...    :-[

Offline Sergio Benjamim

  • Usuário Ubuntu
  • *
  • Mensagens: 2.902
    • Ver perfil
Re: Problema ao iniciar por pendrive
« Resposta #1 Online: 29 de Abril de 2014, 17:12 »
Você deve ter escolhido a ISO errada, não?
É novo no Ubuntu? Já leu o Ubuntu – Guia do Iniciante 2.0 ?
Experimente o Xubuntu 14.04 !

Offline nogueira13

  • Usuário Ubuntu
  • *
  • Mensagens: 74
    • Ver perfil
Re: Problema ao iniciar por pendrive
« Resposta #2 Online: 29 de Abril de 2014, 18:14 »
Não Sérgio, escolhi a distribuição correta sim. Mas eu não sei de onde ele está buscando (no HD penso eu) este instalador do Ubuntu 12.04 LTS. Será que isto está no grub? Como eu poderia ver se ele está buscando no grub? Só que ele não abre a interface gráfica do grub do HD.

Offline sigur

  • Usuário Ubuntu
  • *
  • Mensagens: 1.176
    • Ver perfil
Re: Problema ao iniciar por pendrive
« Resposta #3 Online: 29 de Abril de 2014, 18:26 »
Abra o terminal e faça

Código: [Selecionar]
gedit /boot/grub/grub.cfg
Depois cole aqui pra vermos.

Offline nogueira13

  • Usuário Ubuntu
  • *
  • Mensagens: 74
    • Ver perfil
Re: Problema ao iniciar por pendrive
« Resposta #4 Online: 29 de Abril de 2014, 18:40 »
Aqui vai. É longo hem? Peço que se tiver alguma senha embutida (para checagem, você me avise para que eu possa trocá-la, por favor:

#
# 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
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos7'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  91a5f790-a696-4795-b085-b85cbe0ff5ea
else
  search --no-floppy --fs-uuid --set=root 91a5f790-a696-4795-b085-b85cbe0ff5ea
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=pt_BR
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
   set gfxpayload="${1}"
   if [ "${1}" = "keep" ]; then
      set vt_handoff=vt.handoff=7
   else
      set vt_handoff=
   fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-91a5f790-a696-4795-b085-b85cbe0ff5ea' {
   recordfail
   load_video
   gfxmode $linux_gfx_mode
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos7'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  91a5f790-a696-4795-b085-b85cbe0ff5ea
   else
     search --no-floppy --fs-uuid --set=root 91a5f790-a696-4795-b085-b85cbe0ff5ea
   fi
   linux   /boot/vmlinuz-3.13.0-24-generic root=UUID=91a5f790-a696-4795-b085-b85cbe0ff5ea ro  quiet splash $vt_handoff
   initrd   /boot/initrd.img-3.13.0-24-generic
}
submenu 'Opções avançadas para Ubuntu' $menuentry_id_option 'gnulinux-advanced-91a5f790-a696-4795-b085-b85cbe0ff5ea' {
   menuentry 'Ubuntu, com Linux 3.13.0-24-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-24-generic-advanced-91a5f790-a696-4795-b085-b85cbe0ff5ea' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos7'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  91a5f790-a696-4795-b085-b85cbe0ff5ea
      else
        search --no-floppy --fs-uuid --set=root 91a5f790-a696-4795-b085-b85cbe0ff5ea
      fi
      echo   'Carregando Linux 3.13.0-24-generic ...'
      linux   /boot/vmlinuz-3.13.0-24-generic root=UUID=91a5f790-a696-4795-b085-b85cbe0ff5ea ro  quiet splash $vt_handoff
      echo   'Carregando ramdisk inicial ...'
      initrd   /boot/initrd.img-3.13.0-24-generic
   }
   menuentry 'Ubuntu, with Linux 3.13.0-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-24-generic-recovery-91a5f790-a696-4795-b085-b85cbe0ff5ea' {
      recordfail
      load_video
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos7'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  91a5f790-a696-4795-b085-b85cbe0ff5ea
      else
        search --no-floppy --fs-uuid --set=root 91a5f790-a696-4795-b085-b85cbe0ff5ea
      fi
      echo   'Carregando Linux 3.13.0-24-generic ...'
      linux   /boot/vmlinuz-3.13.0-24-generic root=UUID=91a5f790-a696-4795-b085-b85cbe0ff5ea ro recovery nomodeset
      echo   'Carregando ramdisk inicial ...'
      initrd   /boot/initrd.img-3.13.0-24-generic
   }
   menuentry 'Ubuntu, com Linux 3.11.0-20-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-20-generic-advanced-91a5f790-a696-4795-b085-b85cbe0ff5ea' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos7'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  91a5f790-a696-4795-b085-b85cbe0ff5ea
      else
        search --no-floppy --fs-uuid --set=root 91a5f790-a696-4795-b085-b85cbe0ff5ea
      fi
      echo   'Carregando Linux 3.11.0-20-generic ...'
      linux   /boot/vmlinuz-3.11.0-20-generic root=UUID=91a5f790-a696-4795-b085-b85cbe0ff5ea ro  quiet splash $vt_handoff
      echo   'Carregando ramdisk inicial ...'
      initrd   /boot/initrd.img-3.11.0-20-generic
   }
   menuentry 'Ubuntu, with Linux 3.11.0-20-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-20-generic-recovery-91a5f790-a696-4795-b085-b85cbe0ff5ea' {
      recordfail
      load_video
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos7'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  91a5f790-a696-4795-b085-b85cbe0ff5ea
      else
        search --no-floppy --fs-uuid --set=root 91a5f790-a696-4795-b085-b85cbe0ff5ea
      fi
      echo   'Carregando Linux 3.11.0-20-generic ...'
      linux   /boot/vmlinuz-3.11.0-20-generic root=UUID=91a5f790-a696-4795-b085-b85cbe0ff5ea ro recovery nomodeset
      echo   'Carregando ramdisk inicial ...'
      initrd   /boot/initrd.img-3.11.0-20-generic
   }
   menuentry 'Ubuntu, com Linux 3.8.0-34-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-34-generic-advanced-91a5f790-a696-4795-b085-b85cbe0ff5ea' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos7'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  91a5f790-a696-4795-b085-b85cbe0ff5ea
      else
        search --no-floppy --fs-uuid --set=root 91a5f790-a696-4795-b085-b85cbe0ff5ea
      fi
      echo   'Carregando Linux 3.8.0-34-generic ...'
      linux   /boot/vmlinuz-3.8.0-34-generic root=UUID=91a5f790-a696-4795-b085-b85cbe0ff5ea ro  quiet splash $vt_handoff
      echo   'Carregando ramdisk inicial ...'
      initrd   /boot/initrd.img-3.8.0-34-generic
   }
   menuentry 'Ubuntu, with Linux 3.8.0-34-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-34-generic-recovery-91a5f790-a696-4795-b085-b85cbe0ff5ea' {
      recordfail
      load_video
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos7'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  91a5f790-a696-4795-b085-b85cbe0ff5ea
      else
        search --no-floppy --fs-uuid --set=root 91a5f790-a696-4795-b085-b85cbe0ff5ea
      fi
      echo   'Carregando Linux 3.8.0-34-generic ...'
      linux   /boot/vmlinuz-3.8.0-34-generic root=UUID=91a5f790-a696-4795-b085-b85cbe0ff5ea ro recovery nomodeset
      echo   'Carregando ramdisk inicial ...'
      initrd   /boot/initrd.img-3.8.0-34-generic
   }
}

### END /etc/grub.d/10_linux ###

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

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

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos7'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  91a5f790-a696-4795-b085-b85cbe0ff5ea
   else
     search --no-floppy --fs-uuid --set=root 91a5f790-a696-4795-b085-b85cbe0ff5ea
   fi
   knetbsd   /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos7'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  91a5f790-a696-4795-b085-b85cbe0ff5ea
   else
     search --no-floppy --fs-uuid --set=root 91a5f790-a696-4795-b085-b85cbe0ff5ea
   fi
   linux16   /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (em /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-84EC8A89EC8A74E8' {
   insmod part_msdos
   insmod ntfs
   set root='hd0,msdos2'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  84EC8A89EC8A74E8
   else
     search --no-floppy --fs-uuid --set=root 84EC8A89EC8A74E8
   fi
   parttool ${root} hidden-
   chainloader +1
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

Offline zekkerj

  • Usuário Ubuntu
  • *
  • Mensagens: 19.735
  • Gratidão gera gratidão, lamúria atrai lamúria...
    • Ver perfil
    • Blog do Zekke
Re: Problema ao iniciar por pendrive
« Resposta #5 Online: 17 de Maio de 2014, 12:01 »
Essa máquina já teve o 12.04 instalado, por acaso?
Pesquise antes de perguntar, sua dúvida pode já ter sido respondida.
Não respondo dúvidas por MP, coloque sua dúvida no fórum onde ela pode ser pesquisada pelos seus colegas!
Não venha ao fórum apenas para perguntar. Se você sabe a resposta de um problema, porque não ajudar seu colega? ;D

Offline nogueira13

  • Usuário Ubuntu
  • *
  • Mensagens: 74
    • Ver perfil
Re: Problema ao iniciar por pendrive
« Resposta #6 Online: 18 de Maio de 2014, 22:45 »
Olha, eu penso que já teve sim. Mas na instalação do 13.04 ele reformata totalmente o HD não reformata?

Offline zekkerj

  • Usuário Ubuntu
  • *
  • Mensagens: 19.735
  • Gratidão gera gratidão, lamúria atrai lamúria...
    • Ver perfil
    • Blog do Zekke
Re: Problema ao iniciar por pendrive
« Resposta #7 Online: 19 de Maio de 2014, 16:28 »
Não necessariamente. Eu estou trabalhando justamente com a idéia de que os dois foram instalados concorrentemente, ao invés de um sobre o outro.
Pesquise antes de perguntar, sua dúvida pode já ter sido respondida.
Não respondo dúvidas por MP, coloque sua dúvida no fórum onde ela pode ser pesquisada pelos seus colegas!
Não venha ao fórum apenas para perguntar. Se você sabe a resposta de um problema, porque não ajudar seu colega? ;D

Offline sigur

  • Usuário Ubuntu
  • *
  • Mensagens: 1.176
    • Ver perfil
Re: Problema ao iniciar por pendrive
« Resposta #8 Online: 19 de Maio de 2014, 17:36 »
Você tem vários

Código: [Selecionar]
menuentry 'Ubuntu...
Verifique qual o kernel que deseja carregar.