LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 03-24-2006, 01:07 PM   #1
stratogratte
LQ Newbie
 
Registered: Mar 2006
Posts: 13

Rep: Reputation: 0
Mount problem - Bad superblock


Hi
I have a big problem with my second HDD on my dedicated server.
When I try to mount the HDD to be able to read my files on it, I get the following error:

Quote:
mount /dev/sdb3 /backup -t ext3
mount: wrong fs type, bad option, bad superblock on /dev/sdb3,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
In kern.log, here is the reported error:
Quote:
kernel: ext3: No journal on filesystem on sdb3
Do you have any idea of what I could do to fix this problem and to be able to read again my data?


Thank you for your help...
 
Old 03-24-2006, 01:11 PM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
The command is incorrect;
mount -t ext3 /dev/sdb3 /backup
note /backup must be a valid directory under /
 
Old 03-24-2006, 01:16 PM   #3
stratogratte
LQ Newbie
 
Registered: Mar 2006
Posts: 13

Original Poster
Rep: Reputation: 0
That's exactly the same command/same result.
And /backup directory exists and is a valid directory.
 
Old 03-24-2006, 01:21 PM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
Originally Posted by stratogratte
That's exactly the same command/same result.
And /backup directory exists and is a valid directory.
??? The commands are very different you failed to define the parameters for mounting the device. i.e. the parameters must be specified before the device -t ext3.

If the device is not a valid ext3 file system then do;

tune2fs -j /dev/sdb3
 
Old 03-24-2006, 01:24 PM   #5
stratogratte
LQ Newbie
 
Registered: Mar 2006
Posts: 13

Original Poster
Rep: Reputation: 0
It seems like -t ext3 being before or after the device doesn't change anything for the command to work properly...

What exactly will do the "tune2fs -j /dev/sdb3" command?
(I am afraid of loosing all my data)
 
Old 03-24-2006, 01:31 PM   #6
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
Originally Posted by stratogratte
It seems like -t ext3 being before or after the device doesn't change anything for the command to work properly...

What exactly will do the "tune2fs -j /dev/sdb3" command?
(I am afraid of loosing all my data)
tune2fs -j will convert an ext2 file system into a journalised ext3 file system.

to explain mount -t ext3;
-t ext3 =file system type ext3
if you unsure of the file system type do cfdisk /dev/sdb and it will list the partitions on the drive with their file type.

Last edited by TigerOC; 03-24-2006 at 01:33 PM.
 
Old 03-24-2006, 01:49 PM   #7
stratogratte
LQ Newbie
 
Registered: Mar 2006
Posts: 13

Original Poster
Rep: Reputation: 0
I know perfectly ext3 is the filesystem type...
The problem isn't that sdb3 is ext2 type, the problem is the following error:
Quote:
kernel: ext3: No journal on filesystem on sdb3
What I presume means that the partition table of sdb3 is corrupted. Is it really the problem? What can I do the fix it?

EDIT:
Strange!!!! sdb3 is indeed an ext2 type O_O It should have been an ext3. What could have happened?
Is the tune2fs -j command secure to be applied?

EDIT2:
The problem is that if I mount sdb3 in ext2, there is no data at all. If I convert it in ext3, will my data be back?

Last edited by stratogratte; 03-24-2006 at 01:57 PM.
 
Old 03-24-2006, 03:00 PM   #8
stratogratte
LQ Newbie
 
Registered: Mar 2006
Posts: 13

Original Poster
Rep: Reputation: 0
So what should I do safely enough to no risk to lose my data?
 
Old 03-24-2006, 03:55 PM   #9
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Its telling you;
kernel: ext3: No journal on filesystem on sdb3

that's how I knew that it was probably ext2. To convert it do tune2fs -j /dev/sbd3. It does not affect the data but creates a journal. What this does is record the destination of writes every 5s. Are you certain that you have written data to this partition?
 
Old 03-24-2006, 04:16 PM   #10
stratogratte
LQ Newbie
 
Registered: Mar 2006
Posts: 13

Original Poster
Rep: Reputation: 0
In fact the HDD partially crashed recently but was fixed. After it was fixed, I got all my data again, but since some hours now, I don't know how, I have these problems. My thought is that the table partition(the journal) has crashed, and so that the system think it is ext2, but it should be ext3...
 
Old 03-24-2006, 04:33 PM   #11
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
Originally Posted by stratogratte
In fact the HDD partially crashed recently but was fixed. After it was fixed, I got all my data again, but since some hours now, I don't know how, I have these problems. My thought is that the table partition(the journal) has crashed, and so that the system think it is ext2, but it should be ext3...
run a scan on the unmounted disk;

e2fsck /dev/sdb6
 
Old 03-24-2006, 04:41 PM   #12
stratogratte
LQ Newbie
 
Registered: Mar 2006
Posts: 13

Original Poster
Rep: Reputation: 0
e2fsck /dev/sdb3
e2fsck 1.37 (21-Mar-2005)
/dev/sdb3: clean, 11/19464192 files, 610802/38925495 blocks
 
Old 03-24-2006, 05:17 PM   #13
stratogratte
LQ Newbie
 
Registered: Mar 2006
Posts: 13

Original Poster
Rep: Reputation: 0
So what I still do the tune2fs -j /dev/sbd3 command?
What do you think about my e2fsck result?
 
Old 03-25-2006, 01:38 AM   #14
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
Originally Posted by stratogratte
So what I still do the tune2fs -j /dev/sbd3 command?
What do you think about my e2fsck result?
The scan indicates nothing wrong so go ahead and add the journal with tune2fs.
 
Old 03-25-2006, 11:54 AM   #15
stratogratte
LQ Newbie
 
Registered: Mar 2006
Posts: 13

Original Poster
Rep: Reputation: 0
So the command will make my data come back? :/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mount: wrong fs type, bad option, bad superblock on /dev/hdc3 Lordandmaker Linux - Hardware 15 06-05-2011 09:55 AM
ERROR AT MOUNTING USB :mount: wrong fs type, bad option, bad superblock on /dev/sda1, saiket Linux - Hardware 3 04-12-2008 01:07 AM
mount: wrong fs type, bad option, bad superblock on /dev/cdrom, Adil_uk Linux - Hardware 9 02-16-2005 06:50 PM
mount: wrong fs type, bad option, bad superblock...(cdrom,dvd and floppy) SpItoS Mandriva 14 11-12-2004 03:27 PM
mount: wrong fs type, bad option, bad superblock on /dev/sdb1 pmoreira Linux - Hardware 5 02-26-2004 11:31 AM


All times are GMT -5. The time now is 01:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration