LinHES Forums
http://forum.linhes.org/

Bad magic number problem
http://forum.linhes.org/viewtopic.php?f=6&t=16435
Page 1 of 1

Author:  tophee [ Tue Sep 11, 2007 11:18 am ]
Post subject:  Bad magic number problem

Hi,
Upgraded to R5F27 today and it appeared to work perfectly. Got my recordings back and everything looked good, though had to make a small modification to the alsamixer and my /etc/network/interfaces file. To check the fixups had took I rebooted the machine. Unfortunately that's as far as I get.
Half way through I get this error message:

Quote:
Fsck dies with exit status 8
Failed (code 8 )
File system check failed.


I am looked into /var/log/fsck/checkfs as suggested

This is what I got:
Quote:
fsck.ext3: Bad majic number in superblock while trying to open /dev/sda3

/dev/sda3:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and really contains an ext2 filesystem ... then superblock is corrupt try running e2fsck with an alternative superblock. e2fsck -b 8193 <device>


(NB: these are hand copied so I've made sure I've got the improtant bits... the rest might be an approximation.)
However, I'm pretty sure I'm using ext3 though I may have changed to to xfs at sometime... I have a recollection of doing this but that might have been on the test system. It was a long time ago.

Any pointers would be good on how to check what filesystem I am using and how to fix this.

Regards.

Author:  mad_paddler [ Tue Sep 11, 2007 11:27 am ]
Post subject: 

I think I've seen this before, it may well have been from trying to mount an xfs partition as ext3. If you run:

Code:
cfdisk /dev/sda


it should say what each partition in the partition table is set to, output from mine:

Code:
                                  cfdisk 2.12r

                              Disk Drive: /dev/hda
                       Size: 251000193024 bytes, 251.0 GB
             Heads: 255   Sectors per Track: 63   Cylinders: 30515

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
    hda1        Boot        Primary   Linux ext3       [Root]           5009.20
    hda2                    Primary   Linux swap / Solaris               748.51
    hda3                    Primary   Linux XFS                       245236.73

Author:  tophee [ Tue Sep 11, 2007 11:37 am ]
Post subject: 

Ah, that is it... sda3 is XFS.
Now just to check so I get it right, I need to edit /etc/fstab and change the reference to sda3 to be an XFS filesystem? Something like:
Code:
/dev/sda3 XFS defaults 1 2

That line is a guess based on a quick google search as I'm not in front of my mythbox at this precise moment... but basically change the ext3 entry to XFS?

Author:  tophee [ Tue Sep 11, 2007 11:54 am ]
Post subject: 

Yes that solved it. My suggested line wasnt correct, but once in /etc/fstab it was pretty obvious what needed changing. Oh, and it was xfs not XFS

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/