partitietabel gewijzigd

Pagina: 1
Acties:

  • rmcvanleeuwen
  • Registratie: November 2005
  • Laatst online: 21-12-2025
door alle gegevens op mijn partitie hda1 te vervangen met een back-up van af een andere harddisk
is mijn partitie tabel corrupt. grub wil dus niet meer opstarten
met fdisk probeer ik nu de partitie tabel te herstellen, met dumpe2fs /dev/sda1 | grep "Block count:"
probeer ik het juiste aantal blokken te achter halen. maar dit geeft
bad magic number in super-block while trying to open hda1
wat nu te doen?

rvl


Verwijderd

Als je partitie table corrupt is kun je de boel over het algemeen wel herstellen met testdisk. Een tutorial vind je hier: http://www.howtoforge.com/data_recovery_with_testdisk

  • Rainmaker
  • Registratie: Augustus 2000
  • Laatst online: 14-07-2024

Rainmaker

RHCDS

Je kunt ook fsck gebruiken om het filesystem te repareren.

fsck.ext3 heeft een optie -b:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
       -b superblock
          Instead of using  the  normal  superblock,  use  an  alternative
          superblock  specified  by  superblock.   This option is normally
          used when the primary superblock has been corrupted.  The  loca-
          tion  of  the backup superblock is dependent on the filesystem's
          blocksize.   For  filesystems  with  1k  blocksizes,  a   backup
          superblock  can  be found at block 8193; for filesystems with 2k
          blocksizes, at block 16384; and  for  4k  blocksizes,  at  block
          32768.

          Additional  backup  superblocks  can  be determined by using the
          mke2fs program using the  -n  option  to  print  out  where  the
          superblocks were created.   The -b option to mke2fs, which spec-
          ifies blocksize of the filesystem must be specified in order for
          the superblock locations that are printed out to be accurate.

          If  an alternative superblock is specified and the filesystem is
          not opened read-only, e2fsck will make  sure  that  the  primary
          superblock  is  updated  appropriately  upon  completion  of the
          filesystem check.


Hiermee heb je alleen nog niet je partitietabel terug.

We are pentium of borg. Division is futile. You will be approximated.


  • rmcvanleeuwen
  • Registratie: November 2005
  • Laatst online: 21-12-2025
met test disk is het inderdaad veel gemakkelijker om de partitie tabel te herstellen
/ staat op partitie twee maar wil nog niet booten
ik ben mij nu aan het verdiepen in superblock
deze moet dan op partitie 1 gestaan hebben want daar heb ik bestanden verwisseld
ga nu fsck /dev/hda2 uitvoeren
= clean
mke2fs -n /dev/hda geeft meerdere superblocks

rvl