Fórum Ubuntu Linux - PT
Suporte Técnico => Sistema => Tópico iniciado por: doglino em 25 de Fevereiro de 2008, 21:20
-
OI pessoal
instalei o ubuntu 7.1 em um hd, o computador ja tinha um outro hd mestre com windows. entao o grub foi instalado, funcionava perfeitamente, ateh que o disco do windows foi removido, e eu passei o hd do linux pra mestre mas nao carrega o linux, da uma mensagem `errro ao carregar sistema operacional`, como eu resolvo issO?
estou usando o linux direto do cd agora, e consigo acessar inclusive esse hd que esta o linux!
abraco
FLavio
-
Abra o terminal, digite os comandos abaixo, e retorne as respostas aqui:
blkid
sudo fdisk -l
Coloque também o conteúdo dos arquivo menu.lst (/boot/grub/menu.lst) e fstab (/etc/fstab) que estão gravados no HD.
[]'s
Cristiano
-
ATENCAO: ESTOU USANDO O UBUNTU VIA CD LOGO NAO SOU PROPRIETARIO DOS ARQUIVOS! NAO POSSO MODIFICA-LOS A NAO SER QUE VCS ME DIGAM O MODO!
fidks -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe58be58b
Device Boot Start End Blocks Id System
/dev/hda1 * 1 9352 75119908+ 83 Linux
/dev/hda2 9353 9729 3028252+ 5 Extended
/dev/hda5 9353 9729 3028221 82 Linux swap / Solaris
blki nao produziu efeito visivel
conteudo menu.lst
## ## End Default Options ##
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=5c1827a3-d864-4f36-8c51-34a1472263d2 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet
title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=5c1827a3-d864-4f36-8c51-34a1472263d2 ro single
initrd /boot/initrd.img-2.6.22-14-generic
title Ubuntu 7.10, memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin
quiet
### 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 a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
conteudo fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hdb1
UUID=5c1827a3-d864-4f36-8c51-34a1472263d2 / ext3 defaults,errors=remount-ro 0 1
# /dev/hdb5
UUID=c01dca80-dba8-41c6-b58c-fd1196c14d8f none swap sw 0 0
/dev/hdd /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
-
Bem, só por desencargo de consciência faça o seguinte. Vamos montar a partição e ai pegar os arquivos de novo. Então execute:
mount /dev/hda1 /mnt
Ai cole aqui os arquivos /mnt/boot/grub/menu.lst, e o arquivo /mnt/etc/fstab.
Fico no aguardo, mas para constar vamos acertar estes arquivos e recuperar o GRUB.
[]'s
Cristiano
-
nao posso fazer mount pois nao sou root
to como usuario ubuntu
-
nao posso fazer mount pois nao sou root
to como usuario ubuntu
Desculpe, o comando foi errado:
sudo mount /dev/hda1 /mnt
E não se preocupe com senha, pois usando o LiveCD ela não será pedida.
-
e depois ja me diz o que eu preciso fazer pois esse computador está em casa e quando chegar eu ja saberei o que fazer!
abraço
-
e depois ja me diz o que eu preciso fazer pois esse computador está em casa e quando chegar eu ja saberei o que fazer!
abraço
Vai ter que mudar as informações de UUID dos arquivos fstab e menu.lst para as informações mostradas pelo comando sudo fdisk -l.
-
muda no ubuntu kernel pra hd(0,0)
pq pelo visto a nova partição /dev/hda que é de boot, e ele tá procurando o kernel no segundo HD
:)
-
Ai cole aqui os arquivos /mnt/boot/grub/menu.lst, e o arquivo /mnt/etc/fstab.
acho que ja tinha postado se entendi bem
mas posto novamente
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=5c1827a3-d864-4f36-8c51-34a1472263d2 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet
title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=5c1827a3-d864-4f36-8c51-34a1472263d2 ro single
initrd /boot/initrd.img-2.6.22-14-generic
title Ubuntu 7.10, memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin
quiet
### 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 a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe58be58b
Device Boot Start End Blocks Id System
/dev/hda1 * 1 9352 75119908+ 83 Linux
/dev/hda2 9353 9729 3028252+ 5 Extended
/dev/hda5 9353 9729 3028221 82 Linux swap / Solaris
fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hdb1
UUID=5c1827a3-d864-4f36-8c51-34a1472263d2 / ext3 defaults,errors=remount-ro 0 1
# /dev/hdb5
UUID=c01dca80-dba8-41c6-b58c-fd1196c14d8f none swap sw 0 0
/dev/hdd /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
-
Quando pedi a segunda vez as informações dos arquivos é porque usando-se o LiveCD não se pode pegar os arquivos em /boot/grub/ e em /etc, pois estes arquivos são os do LiveCD.
Então deve-se montar a partição (exemplo: /mnt) e ai pegar os arquivos /mnt/boot/menu.lst e /mnt/etc/fstab.
Se confirmar que pegou dai podemos mexer, senão não vai adiantar nada.
-
montei mnt
tae o conteudo de fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hdb1
UUID=5c1827a3-d864-4f36-8c51-34a1472263d2 / ext3 defaults,errors=remount-ro 0 1
# /dev/hdb5
UUID=c01dca80-dba8-41c6-b58c-fd1196c14d8f none swap sw 0 0
/dev/hdd /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
conteudo de menu.lst
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=5c1827a3-d864-4f36-8c51-34a1472263d2 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet
title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=5c1827a3-d864-4f36-8c51-34a1472263d2 ro single
initrd /boot/initrd.img-2.6.22-14-generic
title Ubuntu 7.10, memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin
quiet
### 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 a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
-
oi fiz as alteracoes no menu.lst
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=5c1827a3-d864-4f36-8c51-34a1472263d2 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet
mudei para
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=5c1827a3-d864-4f36-8c51-34a1472263d2 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet
ai entrei no grub usei o comando
root (hd0,0)
setup (hd0,0)
reiniciei e entrou no linux certinho mas quando eu desliguei o computador e mais tarde quando liguei de novo deu uma mensagem : error 21: Selected disk does not exist
mas eu to inclusive ouvindo as musicas do disco atraves do live cd!!!
-
nobody helps me! =( :'(
-
Deixa ver se consigo te ajudar, mas antes leia tudo, não execute um comando tendo alguma dúvida. Espero que consiga te ajudar.
a) Monte seu HD.
sudo mount /dev/hda1 /mnt
b) Vamos ao fstab, e como somos cautelosos primeiro vamos fazer um backup:
cd /mnt/etc
sudo cp fstab fstab.bkp.20080303
c) Editando o arquivo fstab
sudo gedit fstab
d) Cole o conteúdo abaixo no arquivo, substituindo o que existia (apenas para identificar as alterações estão em negrito).
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda1
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
# /dev/hda5
/dev/hda5 none swap sw 0 0
/dev/hdd /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
Feito isto salve o arquivo e vamos partir para o menu.lst.
e) Backup do arquivo menu.lst:
cd /mnt/boot/grub
cp menu.lst menu.lst.bkp.20080303
f) Editando o arquivo menu.lst
sudo gedit menu.lst
f) Cole o conteúdo abaixo no lugar do que existia (apenas para identificar as alterações estão em negrito).
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet
title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.22-14-generic
title Ubuntu 7.10, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
### 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 a non-linux OS
# on /dev/hda1
#title Microsoft Windows XP Professional
#root (hd0,0)
#savedefault
#makeactive
#chainloader +1
Salve o arquivo.
g) Fiquei com uma dúvida, o arquivo menu.lst traz informações para o boot no windows (eu comentei as linhas), mas o resultado do comando sudo fdisk -l não tem partição para ele, veja abaixo:
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe58be58b
Device Boot Start End Blocks Id System
/dev/hda1 * 1 9352 75119908+ 83 Linux
/dev/hda2 9353 9729 3028252+ 5 Extended
/dev/hda5 9353 9729 3028221 82 Linux swap / Solaris
E ai? Poderia tirar esta dúvida?
[]'s
Cristiano
-
OI
Problema foi resolvido cOnforme as instrucoes acima!!!
QUanto a opcao de menu.lst windows eu removi!
abraco
::)
-
OI
Problema foi resolvido cOnforme as instrucoes acima!!!
QUanto a opcao de menu.lst windows eu removi!
abraco
::)
Que bom que resolveu!
Espero que curta o Ubuntu, e que seja um membro atuante da comunidade!
[]'s e boa sorte!
Cristiano