Pular para o conteúdo

formatação acidental [RESOLVIDO]

Responder tópico
  • Denunciar
  • Indicar
01 02

1. formatação acidental [RESOLVIDO]

Enviado em 20/04/2011 - 09:26h

Caros amigos o vol.

Preciso da ajuda de vcs novamente, meu hd tinha 3 partições(rwindows X ubuntu 10.10 64bit X arquivos), consegui tirar o ubuntu do eixo(não funfou no modo grafico mais) então resolvi formata-lo(a parte do ubuntu) e instalar ubuntu 10.10 32bit, só q pela pressa instalei no hd inteiro, felizmente consegui restaurar todas as partições com o #Testdisk (pelo live-cd consigo entrar nas pastas), mas quando coloco o cd do windows para formatar ele não reconhece nenhuma partição e aparece um erro no grub.
Agora gostaria de uma ajuda como formatar as partições ubuntu+arquivos ja q pelo cd windows so vejo o hd 160gb e não as partiçoes?
E como deixar o windows funcionando normalmente?
E não ter q formatar e perder todos os dados.


Responder tópico

2. Re: formatação acidental [RESOLVIDO]

Melhor resposta

Enviado em 24/04/2011 - 20:37h

Sim, você pode formatar somente as partições Linux e deixar a partição Windows do jeito que está.
Você tem 2 opções:
1) Inicie com o CD do Windows e reinstale-o. Não formate a partição do Windows, apenas reinstale-o por cima da instalação corrompida. É uma gambiarra mas funciona e você não perde seus dados. Mas fique consciente que isso pode dar erro na sua partição Windows em pouco tempo. Em todo caso dá para quebrar o galho. É aconselhável que você salve os dados da partição Windows em outro local para depois formatá-la e reinstalar o Windows e os programas que usa nele do zero, ou seja, numa partição limpa e sem erros. Depois inicie com o LiveCD do Ubuntu, abra o GParted e formate apenas as partições Linux. Após feito isso, você pode instalar o Ubuntu.
2) Se você não for reinstalar o Windows: inicie com o LiveCD do Ubuntu, abra o GParted e formate apenas as partições Linux. Depois que você instalar o Ubuntu novamente poderá acessar a partição Windows e copiar os arquivos do Windows para sua partição Linux. Depois de copiar os dados da partição Windows você pode formatá-la e usar como partição de backup ou outra partição /home se quiser.

3. GParted LiveCD

Enviado em 20/04/2011 - 10:46h

O melhor é você usar o LiveCD do Ubuntu e entrar no GParted para fazer a formatação do jeito que necessita. O particionamento deve ser feito com o LiveCD pois assim as partições porventura existentes estarão desmontadas.

4. resolução

Enviado em 21/04/2011 - 07:29h

Consegui fazer o particionamento, muito obrigado pela dica "millemiglia".
Agora o problema é outro, meu pc não inicia em nenhum S.O, nem ubuntu e nem windows,e dá um erro +- assim "file=unknow" e alguma coisa no grub.
Tentei modificar o grub no ubuntu mas o arquivo .lst abre em branco.
Será q vcs podem me ajudar?

5. formatação acidental

Enviado em 21/04/2011 - 10:32h

Não sei a solução , mas tenho a seguinte informação:
Um dia o seu disco foi novinho em folha e foi iniciado.

Se foi iniciado por linux ele pode ter um arranjo de partição DOS, default
ou outro arranjo como BSD. Para o Linux isso pouco importa mas o Windows só reconhece
iniciação DOS.

6. corrigir

Enviado em 21/04/2011 - 12:06h

E como vou corrigir isso, tem alguma ideia???

7. Re: formatação acidental [RESOLVIDO]

Enviado em 21/04/2011 - 14:22h

Como estão suas partições agora? Pelo que entendi você quer fazer um dual boot, certo? Se for isso, use uma das partições que você criou com o GParted formatando-a para NTFS e instale o Windows. Depois de instalado o Windows você vai ter que reiniciar o micro com o liveCD do Ubuntu pois terá que reinstalar o GRUB. Para isso você pode pesquisar aqui no VOL pois há vários artigos ensinando como fazer isso.

8. quase consegui

Enviado em 21/04/2011 - 21:00h

Até consegui instalar o grub mas a hora de salvar aparece este erro.

"Could not find device for /boot: Not found or not a block device."

9. Re: formatação acidental [RESOLVIDO]

Enviado em 21/04/2011 - 21:06h

"Could not find device for /boot: Not found or not a block device."
Esse erro está te dizendo que o GRUB não encontrou onde procurar um sistema operacional para dar o boot no micro.
Você já instalou o Windows e o Ubuntu? Se já, tem que indicar em qual partição estão os sistemas operacionais.

10. Re: formatação acidental [RESOLVIDO]

Enviado em 21/04/2011 - 21:29h

a mensagem de erro no boot.
"Error: Unknow Filesystem
Grub Rescue"

11. Re: formatação acidental [RESOLVIDO]

Enviado em 21/04/2011 - 21:37h

Essa é a mensagem do menu.lst. Gostaria de saber se os campos q estão entre 2 parentesis e marcados no paragrafo, são os q eu tenho q modificar e também se não tem jeito de eu fazer sem formatar o hd.

# 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-legacy-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 use 'savedefault' 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 10

## 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,1))
# makeactive
# chainloader +1
#
# title Linux
$$$$$$# root ((hd0,5))
# 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=/boot/grub/aufs ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## 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

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

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## 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

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect

## 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

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 10.10, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

dados do hd pelo fdisk-l
Dispositivo Boot Início Fim Blocos Id Sistema
/dev/sda1 1 11728 94205128+ 7 HPFS ou NTFS
/dev/sda2 11729 13307 12676080+ 83 Linux ext 3
/dev/sda3 13307 14996 13569025 5 Estendida
/dev/sda4 14996 19458 35838976 b W95 FAT32
/dev/sda5 13307 14919 12949504 83 Linux ext 4
/dev/sda6 14919 14996 618496 82 Linux swap / Solaris

Me desculpa pelo tamanho do post, só q como ja deu pra perceber sou leigo no assunto, agora tem como vc me dizer com edito o menu.list??

12. Re: formatação acidental [RESOLVIDO]

Enviado em 21/04/2011 - 21:38h

"Error: Unknow Filesystem" = Erro: Sistema de Arquivos Desconhecido. O GRUB não está reconhecendo o sistema de arquivos. Pelo que vi no seu grub.cfg você não instalou os sistemas operacionais ainda. Instale primeiro o Windows e depois o Linux. Quando você instalar o Linux, o GRUB será instalado e reconhecerá também o Windows. Veja abaixo um exemplo de grub.cfg do netbook do meu filho que tem Windows 7 e Ubuntu Netbook Remix 9.04 instalado:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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 recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8d3612f6-e8fc-441f-8fa7-ffd9146d2b8f
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8d3612f6-e8fc-441f-8fa7-ffd9146d2b8f
set locale_dir=($root)/boot/grub/locale
set lang=pt
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, com Linux 2.6.32-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8d3612f6-e8fc-441f-8fa7-ffd9146d2b8f
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=8d3612f6-e8fc-441f-8fa7-ffd9146d2b8f ro quiet splash
initrd /boot/initrd.img-2.6.32-28-generic
}
menuentry 'Ubuntu, com Linux 2.6.32-28-generic (modo de recuperação)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8d3612f6-e8fc-441f-8fa7-ffd9146d2b8f
echo 'Carregando Linux 2.6.32-28-generic ...'
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=8d3612f6-e8fc-441f-8fa7-ffd9146d2b8f ro single
echo 'Carregando ramdisk inicial ...'
initrd /boot/initrd.img-2.6.32-28-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8d3612f6-e8fc-441f-8fa7-ffd9146d2b8f
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8d3612f6-e8fc-441f-8fa7-ffd9146d2b8f
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 16585e40585e1eb5
chainloader +1
}
### 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 ###

Veja onde diz menuentry e o nome do sistema operacional que o menu vai chamar. Seu grub.cfg não tem isso pois você recuperou o grub de um hd que não tem nenhum sistema operacional instalado e, por isso, o grub está vazio.
Mas lembre-se: instale antes o Windows e depois o Linux pois o Windows sobreescreve o MBR e corrompe o GRUB. Se você instalar o Linux antes do Windows, terá que usar o LiveCD para recuperar o GRUB. Como você vai instalar os dois sistemas, opte por instalar o Windows antes para não ter trabalho dobrado. Qualquer outra dúvida, poste aqui,
01 02

Responder tópico

Responder tópico

Entre na sua conta para responder.

Fazer login para responder