Autor Tópico: Mudar o Grub para iniciar o Windows XP  (Lida 8993 vezes)

Offline canardon

  • Usuário Ubuntu
  • *
  • Mensagens: 2
    • Ver perfil
Mudar o Grub para iniciar o Windows XP
« Online: 10 de Fevereiro de 2007, 12:09 »
Ola pessoal, estou com um certo problema. Instalei o Kubunt 6.10 e estou querendo mudar o sistema operacional que vai inicar (padrao). Ja entrei na pagina com dicas sobre isto. Fiz o login como su, e fiz os comandos, mas esta dando um erro:

carlos@home:~$ su
Password:
root@home:/home/carlos# sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
root@home:/home/carlos# sudo gedit /boot/grub/menu.lst
sudo: gedit: command not found    - aqui esta o erro que estou falando, o que estou fazendo de errado?
root@home:/home/carlos#


Obrigado pela ajuda!!!!!

Carlos

Offline Diego_Rocha

  • Usuário Ubuntu
  • *
  • Mensagens: 372
  • Slackware current
    • Ver perfil
Re: Mudar o Grub para iniciar o Windows XP
« Resposta #1 Online: 10 de Fevereiro de 2007, 12:49 »
Acho que vc ja esta logado como root naum tem a necessidade de utilizar sudo experimenta colocar apenas gedit /boot/grub/menu.lst é isso aii t++

Offline alexmatos

  • Usuário Ubuntu
  • *
  • Mensagens: 792
  • Arch Linux / Ubuntu 7.04
    • Ver perfil
Re: Mudar o Grub para iniciar o Windows XP
« Resposta #2 Online: 10 de Fevereiro de 2007, 13:52 »
gedit é o programa de edição de arquivos de texto do GNOME. Como você usa o Kubuntu, vc deve usar o programa para o KDE que é o kedit. Substitua gedit por kedit que vai funcionar.

Offline Diego_Rocha

  • Usuário Ubuntu
  • *
  • Mensagens: 372
  • Slackware current
    • Ver perfil
Re: Mudar o Grub para iniciar o Windows XP
« Resposta #3 Online: 10 de Fevereiro de 2007, 14:11 »
gedit é o programa de edição de arquivos de texto do GNOME. Como você usa o Kubuntu, vc deve usar o programa para o KDE que é o kedit. Substitua gedit por kedit que vai funcionar.

É isso mesmo naum tinha repara que era kubuntuu foi mauu

Offline carlosfrancoba

  • Usuário Ubuntu
  • *
  • Mensagens: 410
    • Ver perfil
Re: Mudar o Grub para iniciar o Windows XP
« Resposta #4 Online: 21 de Fevereiro de 2007, 04:38 »
vá no terminal e digite:
Código: [Selecionar]
sudo kedit /boot/grub/menu.lst
vai abrir o arquivo de configuração do grub
(lembre-se que as linhas começadas com # são apenas comentários, não são configuração em si)

é o seguinte
a ordem como os sistemas estão dispostos nesse arquivo é muito importante
veja como está o meu arquivo:

Código: [Selecionar]
# 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'.
# 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 3

## 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 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=UUID=e5274c41-74eb-4b6a-988b-e3158100ffd7 ro
# kopt_2_6=root=/dev/sda2 ro

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

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery 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

## ## End Default Options ##

title Ubuntu 6.10
root (hd2,1)
kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/sda2 ro quiet splash locale=pt_BR
initrd /boot/initrd.img-2.6.17-11-generic
quiet
savedefault
boot

title Ubuntu 6.10 (Modo de Recuperação)
root (hd2,1)
kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/sda2 ro single
initrd /boot/initrd.img-2.6.17-11-generic
boot

title           Kurumin 7
root            (hd2,3)
kernel          /boot/vmlinuz-2.6.18.1-slh-up-2 ro nomce quiet apm=power-off vga=791
initrd          /boot/initrd.img-2.6.18.1-slh-up-2

title Ubuntu, memtest86+
root (hd2,1)
kernel /boot/memtest86+.bin
quiet
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

perceba que a primeira entrada é "Ubuntu 6.10", a segunda é "Ubuntu 6.10 Ubuntu 6.10 (Modo de Recuperação)" e assim por diante.
Para configurar qual entrada será selecionada automaticamente edita-se uma linha lá no início do arquivo onde está escrito "default 0". Do jeito que ela está, a entrada padrão a ser carregada é a "Ubuntu 6.10". Se eu colocasse "default 1" ele carregaria por padrão a segunda entrada descrita, no caso, carregaria "Ubuntu 6.10 Ubuntu 6.10 (Modo de Recuperação)". Para "default 2" ele carregaria o "Kurumin 7" por padrão e assim por diante.
O que você tem que fazer é ajustar essa linha "default x" para tornar padrão o carregamento do seu windows (de acordo com a ordem que está descrito no teu arquivo).

Offline gk2

  • Usuário Ubuntu
  • *
  • Mensagens: 149
  • Nada a declarar! ':)
    • Ver perfil
Re: Mudar o Grub para iniciar o Windows XP
« Resposta #5 Online: 21 de Fevereiro de 2007, 12:55 »
é pq vc tá no Kubuntu, ele vem com KDE e o gedit é editor de texto do GNOME.. Vc pode usar kedit como disse o amigo aí de cima! ':]