Linux Newbie help
 help / color / mirror / Atom feed
* e2fs hosed?
@ 2002-10-15  5:45 Alan Womack
  2002-10-15  6:24 ` Ray Olszewski
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Womack @ 2002-10-15  5:45 UTC (permalink / raw)
  To: Majordomo leben.com

[root@Webby root]# e2fsck -b 131073 /dev/hdb
e2fsck 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09
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>


I've tried quite a few different superblocks, but I need a command to tell me what my block size is.  I might be sending it searching in the wrong location.  The partition table seems fine:

Disk /dev/hdb: 255 heads, 63 sectors, 525 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1             1        11     88326   83  Linux
/dev/hdb2            12       470   3686917+  83  Linux
/dev/hdb3           471       503    265072+  82  Linux swap

/dev/hdb1 is fine
/dev/hdb2 has major issues..
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: e2fs hosed?
  2002-10-15  5:45 e2fs hosed? Alan Womack
@ 2002-10-15  6:24 ` Ray Olszewski
  2002-10-15  8:36   ` Arthur Othieno
  0 siblings, 1 reply; 3+ messages in thread
From: Ray Olszewski @ 2002-10-15  6:24 UTC (permalink / raw)
  To: Alan Womack, linux-newbie

e2fsck checks ext2 filesystems, not drives.  /dev/hdb is NOT a filesystem; 
it is a drive. The drive contains partitions; according to your  (I 
presume) fdisk output, partitions /dev/hdb1 and  /dev/hdb2 contain ext2 
filesystems.

The message you get in response to "e2fsck -b 131073 /dev/hdb" is simply 
correct -- that device does NOT itself contain an ext2 filesystem.

So ... try "e2fsck /dev/hdb1" and "e2fsck /dev/hdb2".

As to your comment about hdb2 ... sorry, but I can't comment intelligently 
on a problem described as "major issues".


At 10:45 PM 10/14/02 -0700, Alan Womack wrote:
>[root@Webby root]# e2fsck -b 131073 /dev/hdb
>e2fsck 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09
>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>
>
>
>I've tried quite a few different superblocks, but I need a command to tell 
>me what my block size is.  I might be sending it searching in the wrong 
>location.  The partition table seems fine:
>
>Disk /dev/hdb: 255 heads, 63 sectors, 525 cylinders
>Units = cylinders of 16065 * 512 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
>/dev/hdb1             1        11     88326   83  Linux
>/dev/hdb2            12       470   3686917+  83  Linux
>/dev/hdb3           471       503    265072+  82  Linux swap
>
>/dev/hdb1 is fine
>/dev/hdb2 has major issues..





--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski					-- Han Solo
Palo Alto, California, USA			  ray@comarre.com
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: e2fs hosed?
  2002-10-15  6:24 ` Ray Olszewski
@ 2002-10-15  8:36   ` Arthur Othieno
  0 siblings, 0 replies; 3+ messages in thread
From: Arthur Othieno @ 2002-10-15  8:36 UTC (permalink / raw)
  To: Ray Olszewski; +Cc: Alan Womack, linux-newbie



Ray Olszewski wrote:

> e2fsck checks ext2 filesystems, not drives.  /dev/hdb is NOT a 
> filesystem; it is a drive. The drive contains partitions; according to 
> your  (I presume) fdisk output, partitions /dev/hdb1 and  /dev/hdb2 
> contain ext2 filesystems.
> 
> The message you get in response to "e2fsck -b 131073 /dev/hdb" is simply 
> correct -- that device does NOT itself contain an ext2 filesystem.
> 
> So ... try "e2fsck /dev/hdb1" and "e2fsck /dev/hdb2".
> 
> As to your comment about hdb2 ... sorry, but I can't comment 
> intelligently on a problem described as "major issues".
> 
> 
> At 10:45 PM 10/14/02 -0700, Alan Womack wrote:
> 
>> [root@Webby root]# e2fsck -b 131073 /dev/hdb
>> e2fsck 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09
>> 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>
>>


As Ray has given most of the intelligent advice above, maybe I can contribute just a little bit more:


>> I've tried quite a few different superblocks, but I need a command to 
>> tell me what my block size is.  I might be sending it searching in the 
>> wrong location.  The partition table seems fine:


The command that will tell you the block size of the filesystem you're trying to e2fsck is `mke2fs -n /dev/hdbx' 

(substitute the x with the appropriate number). You should see the appropriate results in the head of the output.


Now that you have the block size, you may want to do a `mke2fs -b XXXX 
-n /dev/hdbx' (where XXXX is the block size) to get an even more 
accurate reporting of the location of the backup superblocks, not that 
it wasn't there first time round when you did the `mke2fs -n /dev/hdbx'

With the locations of the backup superblocks, you may now do
`e2fsck -b XXXX /dev/hdbx' (where XXXX is/are the location(s) of the 
backup superblock(s)


>> Disk /dev/hdb: 255 heads, 63 sectors, 525 cylinders
>> Units = cylinders of 16065 * 512 bytes
>>
>>    Device Boot    Start       End    Blocks   Id  System
>> /dev/hdb1             1        11     88326   83  Linux
>> /dev/hdb2            12       470   3686917+  83  Linux
>> /dev/hdb3           471       503    265072+  82  Linux swap
>>
>> /dev/hdb1 is fine
>> /dev/hdb2 has major issues..
> 
> 
> 
> 
> 
> 
> -- 
> -------------------------------------------"Never tell me the 
> odds!"--------
> Ray Olszewski                    -- Han Solo
> Palo Alto, California, USA              ray@comarre.com
> ------------------------------------------------------------------------------- 


HTH

Arthur

------
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
> 
> 


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-15  8:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-15  5:45 e2fs hosed? Alan Womack
2002-10-15  6:24 ` Ray Olszewski
2002-10-15  8:36   ` Arthur Othieno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox