DSuper Block error

erastus@connect

Verified User
Joined
Jun 1, 2013
Messages
36
Hi Guys,

I know this is not DA problem.
However can any body help me. When I do a fsck on /dev/md0 ( raid1) I get:

fsck -v /dev/md0
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)


/dev/md0: recovering journal
The filesystem size (according to the superblock) is 604360128 blocks
The physical size of the device is 604360000 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? yes


I tried fsck but am to dumb for it.

How can I get the re-size the super block to 604360000 where the volume size currently is 604360128.?

Can any one help me?
 

erastus@connect

Verified User
Joined
Jun 1, 2013
Messages
36
Hi Richard,

I simply put it here because I thought I was doing wrong by putting it under the other heading
 

erastus@connect

Verified User
Joined
Jun 1, 2013
Messages
36
Had to do a bit of digging and the command is:

resize2fs -f /dev/mdo

It re-sized the /dev/md0 to the same file size of the HD.
I then ran a fsck es voila.

Be careful it can destroy some or all data.

Had to scratch a bit to my early kernel development days
 
Top