LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-25-2004, 08:53 AM   #1
resistednormalc
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Rep: Reputation: 0
e2fsck syntax help


We're running Mandrake..

Our fsck on an extended filesystem failed.



Message it gives us:

"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)"

How do we determine what the alternate superblock is?

How do you determine what the proper syntax for using e2fsck?

What is the correct procedure for running e2fsck in this type of situation?


Any help would be appreciated..

--Joey
 
Old 08-25-2004, 09:19 AM   #2
Charalambos
Member
 
Registered: Aug 2004
Location: Switzerland
Distribution: debian
Posts: 149

Rep: Reputation: 15
If the superblock is corrupted, you can't determine the block size anymore. If it is not currupt yet, you could find out with "dumpe2fs" device | more" (displayed something like "Blocks per group", nr 1 would be first superblock, next would be e.g if blocksize is 8192, 8193). In most cases, the 2nd alternate superblock is at offset 8193.
--> e2fsck -f -b offset device

In general, correct syntax you get with
--> command --help
and / or
--> man command

Are you sure you have ext2 and the partition is corrupted?
Are you still able to mount it?
fsck should be applied on non-mounted partitions only.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
e2fsck Eugney Slackware 2 06-03-2005 11:13 AM
C++ syntax error before :: token HELP, i cant find the syntax error :( qwijibow Programming 2 12-14-2004 06:09 PM
e2fsck error hk_linux Linux - Hardware 3 12-08-2004 07:48 AM
e2fsck warning! demmylls Linux - General 3 09-17-2003 04:23 AM
e2fsck is dumb Half_Elf Linux - Software 6 06-13-2003 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration