[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Alla ricerca del superblock



Marco Nenciarini ha scritto:
On Mon, Jan 15, 2007 at 06:00:28PM +0100, pacmo@tiscalinet.it wrote:
Marco Nenciarini ha scritto:
On Mon, Jan 15, 2007 at 04:17:20PM +0100, pacmo@tiscalinet.it wrote:
Come si fa a conoscere l'allocazione dei superblock di backup così nel
caso si debba tentare un e2fsck -b <superblock_number>  si sa cosa mettere ?


Dalla manpagedi mkfs.ext2:

  -n causes mke2fs to not actually create a filesystem, but display
     what it would do if it were to create a filesystem.  This can be
     used to determine the location of the backup superblocks for a
     particular filesystem, so long as the mke2fs parameters that were
     passed when the filesystem was originally created are used again.
     (With the -n option added, of course!)

In poche parole: fai finta di formattare la partizione usando il flag
-n e vedi dove sono i superblocchi.

Ciao

A dir la verità avevo provato avendo cercato con google ed avevo trovato
questa possibilità, ma -n è un opzione che non c'è :-(  e quindi non si
può usare


Nel mio sistema c'è sia in mkfs.ext2 che in mkfs.ext3 (almeno nella
manpage), per quanto riguarda mke2fs nella manpage non c'è scritto
nulla, ma considerato che è un hardlink verso mkfs.ext2 dovrebbe
andare lo stesso...

Ciao


Se provo a usarle mi risponde :

Usage: mkfs.ext2 [-c|-t|-l filename] [-b block-size] [-f fragment-size]
[-i bytes-per-inode] [-j] [-J journal-options] [-N number-of-inodes] [-m reserved-blocks-percentage] [-o creator-os] [-g blocks-per-group]
        [-L volume-label] [-M last-mounted-directory] [-O feature[,...]]
        [-r fs-revision] [-R options] [-qvSV] device [blocks-count]

:-(



Reply to: