Autor Tópico: [Resolvido] urgente! reparar partições!  (Lida 7294 vezes)

Offline Arthur Cruz

  • Usuário Ubuntu
  • *
  • Mensagens: 112
    • Ver perfil
[Resolvido] urgente! reparar partições!
« Online: 16 de Agosto de 2007, 15:46 »
meu hd eh particionado em três, 2 ntfs e 1 ext3..
eu estava usando o windows ai ele travou (ha-ha-ha), fiquei sem oq fazer... a não ser apertar o botão power da cpu

bom! ai q mora o perigo neh! reiniciei no linux e ele não detecta mais minha partiçoes ntfs!
ai pensei, "volto pro windows e passo um scandisk ou algo parecido"........

mas o windows nao carrega mais!! x.x

num passado distante isso jah aconteceu uma vez, e acho q tenho q reparar as partiçoes certo?
não posso perder arquivos! estou desesperado!


alguma alma bondosa e sábia para me socorrer?! haha agradecido!
« Última modificação: 16 de Agosto de 2007, 17:19 por Arthur Cruz »

Offline Lex Luthor

  • Usuário Ubuntu
  • *
  • Mensagens: 628
    • Ver perfil
Re: urgente! reparar partições!
« Resposta #1 Online: 16 de Agosto de 2007, 15:53 »
Rapá.... mas pq os arquivos não estavam na partição do Linux ??? hehehehehe
Seu windows viu que não era páreo e resolveu desistir, hehehe
Seguinte, roda um Partition doctor aí.

Abraços....
Analista de Redes- Segurança da Informação
Bacharel em Ciências da Computação - UnB
Ubuntu Forever - Compiz Fusion -

Offline Arthur Cruz

  • Usuário Ubuntu
  • *
  • Mensagens: 112
    • Ver perfil
Re: urgente! reparar partições!
« Resposta #2 Online: 16 de Agosto de 2007, 15:59 »
ahuahuahuhahah
pq eu fui mexer no windows se no linux tava bom neh?! uhuah

os arquivos ficam na ntfs pra eu poder acessar dos 2 sistemas operacionais!


e okay, vo atraz desse programa! o/

Offline Arthur Cruz

  • Usuário Ubuntu
  • *
  • Mensagens: 112
    • Ver perfil
Re: urgente! reparar partições!
« Resposta #3 Online: 16 de Agosto de 2007, 16:02 »
epa, esse programa nao eh de windows?!
nao consigo entrar no windows poow! uahuhauha


pelo terminal não tem algum comando?! eu suspeito q recuperei assim da ultima vez!
"fchck" ou algo parecido!


aaaah

Offline vitor

  • Usuário Ubuntu
  • *
  • Mensagens: 472
  • Uepa!
    • Ver perfil
Re: urgente! reparar partições!
« Resposta #4 Online: 16 de Agosto de 2007, 16:06 »
Manda aqui o resultado desse comando:
Código: [Selecionar]
sudo fdisk  -l
Jabber: vitorml (a) jabber.cz

Offline Arthur Cruz

  • Usuário Ubuntu
  • *
  • Mensagens: 112
    • Ver perfil
Re: urgente! reparar partições!
« Resposta #5 Online: 16 de Agosto de 2007, 16:09 »
aqui vai!

Código: [Selecionar]
Disco /dev/hda: 120.0 GB, 120060444672 bytes
255 cabeças, 63 setores/trilha, 14596 cilindros
Unidades = cilindros de 16065 * 512 = 8225280 bytes

Dispositivo Boot Início Fim Blocos Id Sistema
/dev/hda1   *           1        1847    14835996    7  HPFS ou NTFS
/dev/hda2            1848       14596   102406342+   f  Win95 (LBA) Partição Extendida
/dev/hda5            1848        8221    51199123+   7  HPFS ou NTFS
/dev/hda6            8222       13446    41969781    7  HPFS ou NTFS
/dev/hda7           13447       14563     8972271   83  Linux
/dev/hda8           14564       14596      265041   82  Linux swap / Solaris

Offline vitor

  • Usuário Ubuntu
  • *
  • Mensagens: 472
  • Uepa!
    • Ver perfil
Re: urgente! reparar partições!
« Resposta #6 Online: 16 de Agosto de 2007, 16:28 »
Poste também o resultado de:
Código: [Selecionar]
cat /boot/grub/menu.lste
Código: [Selecionar]
cat /etc/fstabFoi mal não ter pedido antes! ;)
Jabber: vitorml (a) jabber.cz

Offline Lex Luthor

  • Usuário Ubuntu
  • *
  • Mensagens: 628
    • Ver perfil
Re: urgente! reparar partições!
« Resposta #7 Online: 16 de Agosto de 2007, 16:34 »
As partições estão aí, estão mostrando OK...

O partition Doctor é um ISO de boot que faz uma análise das partições e as restaura...

No grub não aparece o Ruindows não ? Se aparece, quando vc entra nele, qual o erro que dá ?
Analista de Redes- Segurança da Informação
Bacharel em Ciências da Computação - UnB
Ubuntu Forever - Compiz Fusion -

Offline Arthur Cruz

  • Usuário Ubuntu
  • *
  • Mensagens: 112
    • Ver perfil
Re: urgente! reparar partições!
« Resposta #8 Online: 16 de Agosto de 2007, 16:55 »
rodei o comando
Código: [Selecionar]
sudo ntfsfix /dev/hda1
isso fez o windows dar checkdisk na inicialização! \o/
ele reparou minhas partições de dados   :D
mas nao reparou a partição do próprio windows! uahuahuahha

mas aqui vai o resultado dos comandos q o vitor pediu:

menu.lst
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         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,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=98673558-a6b5-4072-b13e-9d5bebf5af51 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

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

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

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

## 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, kernel 2.6.20-16-generic
root            (hd0,6)
kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=98673558-a6b5-4072-b13e-9d5bebf5af51 ro quiet splash locale=pt_BR
initrd          /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title           Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root            (hd0,6)
kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=98673558-a6b5-4072-b13e-9d5bebf5af51 ro single
initrd          /boot/initrd.img-2.6.20-16-generic

title           Ubuntu, kernel 2.6.20-15-generic
root            (hd0,6)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=98673558-a6b5-4072-b13e-9d5bebf5af51 ro quiet splash locale=pt_BR
initrd          /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title           Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root            (hd0,6)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=98673558-a6b5-4072-b13e-9d5bebf5af51 ro single
initrd          /boot/initrd.img-2.6.20-15-generic

title           Ubuntu, memtest86+
root            (hd0,6)
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
fstab
Código: [Selecionar]
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/hda7
UUID=98673558-a6b5-4072-b13e-9d5bebf5af51 /               ext3    defaults,errors=remount-ro 0       1
# /dev/hda1
# /dev/hda5
# /dev/hda6
# /dev/hda8
UUID=fa01e715-6a9f-4456-8263-a047edfbcb81 none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0

# Generated by Automatix
/dev/hda1   /media/hda1   ntfs-3g  defaults,locale=en_US.utf8    0    0
/dev/hda5   /media/hda5   ntfs-3g  defaults,locale=en_US.utf8    0    0
/dev/hda6   /media/hda6   ntfs-3g  defaults,locale=en_US.utf8    0    0
## End of Automatix mounted partitions

Offline Arthur Cruz

  • Usuário Ubuntu
  • *
  • Mensagens: 112
    • Ver perfil
Re: urgente! reparar partições!
« Resposta #9 Online: 16 de Agosto de 2007, 17:18 »
ntfsfix é magico!


reiniciei o pc e o xp abriu como se nada tivesse acontecido!  :D
recurso altamente recomendado!


informação diretamente do desenvolvedor (tradução livre):

Citar
ntfsfix é uma ferramenta que conserta problemas comuns em NTFS. ntfsfix não é uma versão para Linux do chkdsk. Ele apenas repara algumas inconcistências do NTFS, reseta o arquivo de journal do NTFS e agenda um chkdsk no próximo boot do windows.

Você pode rodar ntfsfix em um volume NTFS se você acha que ele foi danificado pelo Windows ou por alguma outra coisa que o impessa de ser montado.


postarei um tópico na seção de dicas brevemente! .. para fins de pesquisa!
agradeço a ajuda de todos!

o/