RE: "Bad magic number"

From: Tobias Speckbacher (tobias_at_quova.com)
Date: 04/17/04

  • Next message: Rob: "Re: chroot ssh"
    Date: Fri, 16 Apr 2004 15:30:09 -0700
    To: <edwin@ironstone.com.au>, "General Red Hat Linux discussion list" <redhat-list@redhat.com>
    
    

    Try running fsck on the partition (ie. hdb1) instead on the device
    (hdb).

    -T

    -----Original Message-----
    From: redhat-list-bounces@redhat.com
    [mailto:redhat-list-bounces@redhat.com] On Behalf Of Edwin Humphries
    Sent: Friday, April 16, 2004 1:25 PM
    To: redhat-list@redhat.com
    Subject: "Bad magic number"

    G'day all,

    We're just fitting a second HDD into our new Fedora server, and
    getting error messages I don't know how to deal with.

    The drive is near new, but we're not entirely sure of its provenance,
    so we're being cautious. However, it fdsisked fine, and running
    mke2fs -j /dev/hdb1 ran OK with no error messages.

    But because of our cautions, I tried to check the drive for errors
    before using it for any data: ran e2fsck -c /dev/hdb.

    The result was an error messages as follows:
    |Couldn't find ext2 superblock, trying backup blocks ...
    |e2fsck: Bad magic number in super-block while trying to open
    |/dev/hdb
    |
    |The superblock could not be read or does not describe a correct ext2
    |filesystem. If the device is valid and it really contains an ext2
    |filesystem (and not swap or ufs or something else), then the
    |superblock is corrupt, and you might try running e2fsck with an
    |alternate superblock: e2fsck -b 8193 <device>

    Now I'm not sure what magic numbers or super-blocks are, and I have
    no idea how to fix this. Can anyone shed some light on this?

    Edwin Humphries,
    Ironstone Technology Pty Ltd
    edwin@ironstone.com.au
    www.ironstone.com.au
    Phone: 02 4233 2285
    Fax: 02 4233 2299
    Mobile: 0419 233 051

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Rob: "Re: chroot ssh"

    Relevant Pages

    • "Bad magic number"
      ... getting error messages I don't know how to deal with. ... before using it for any data: ran e2fsck -c /dev/hdb. ... |Couldn't find ext2 superblock, trying backup blocks ... ...
      (RedHat)
    • Re: cant mount second drive
      ... like to give a utility such as e2fsck a blanket pass to 'adjust' things ... Couldn't find ext2 superblock, trying backup blocks... ... filesystem, ...
      (Fedora)
    • Re: lost a drive?
      ... e2fsck: Bad magic number in superblock while trying to open /dev/hdb2 ... The superblock could not be read or does not describe a correct ext2 ... If the device is valid and it really contains an ext2 filesystem (and not ... and you might try running e2fsck with an alternate superblock: ...
      (Fedora)
    • Re: ext3 filesystem: superblock not found
      ... Couldn't find ext2 superblock, trying backup blocks... ... and you might try running e2fsck with an alternate superblock: ...
      (Debian-User)