You are not logged in.

#1 2012-02-29 17:37:10

bout10bucks
Member
Registered: 2009-09-11
Posts: 25

[SOLVED] Lost my partition table (or superblock) on my raid 1 array

Disk /dev/md127: 1000.2 GB, 1000202174464 bytes
2 heads, 4 sectors/track, 244189984 cylinders, total 1953519872 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/md127 doesn't contain a valid partition table

and

[85761.747636] EXT4-fs (md127): bad geometry: block count 244190000 exceeds size of device (244189984 blocks)


Everything I can find on it says to use sfdisk to back the partition table up to a text file and manually edit the block count, but that just returns saying no partition table found.

Last edited by bout10bucks (2012-03-02 02:24:48)

Offline

#2 2012-02-29 18:12:21

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Lost my partition table (or superblock) on my raid 1 array

Try the following:

# e2fsck -cc /dev/md127 (this is going to take a long time, so do it when you have the possibility to keep the box running for 2 days straight or so)
# resize2fs /dev/md127
# fsck -f /dev/md127

What most likely happened here is something getting messed up during the array creation, which has now led to some data being written to where the RAID superblock is stored. Doing the above will fix that situation permanently. Googling for the commands I've listed will give you

PS: if the array holds your the partition where your Archlinux is installed; you'll have to do this from a live-cd.


Burninate!

Offline

#3 2012-02-29 18:17:49

bout10bucks
Member
Registered: 2009-09-11
Posts: 25

Re: [SOLVED] Lost my partition table (or superblock) on my raid 1 array

e2fsck -cc /dev/md127

The filesystem size (according to the superblock) is 244190000 blocks
The physical size of the device is 244189984 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>?

Offline

#4 2012-02-29 18:20:11

bout10bucks
Member
Registered: 2009-09-11
Posts: 25

Re: [SOLVED] Lost my partition table (or superblock) on my raid 1 array

It is a storage array with my valuables... It was fine the other day then I had a kernel update so I rebooted, and when I rebooted it failed. Both drives are healthy and badblocks didn't find any thing either

Offline

#5 2012-02-29 18:24:55

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Lost my partition table (or superblock) on my raid 1 array

bout10bucks wrote:

e2fsck -cc /dev/md127

The filesystem size (according to the superblock) is 244190000 blocks
The physical size of the device is 244189984 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>?

That's normal. You just answer "n" and the check will start. As I mentioned before, keep in mind that this might take quite a while.


Burninate!

Offline

#6 2012-03-02 02:18:41

bout10bucks
Member
Registered: 2009-09-11
Posts: 25

Re: [SOLVED] Lost my partition table (or superblock) on my raid 1 array

Gcool wrote:

Try the following:

# e2fsck -cc /dev/md127 (this is going to take a long time, so do it when you have the possibility to keep the box running for 2 days straight or so)
# resize2fs /dev/md127
# fsck -f /dev/md127

What most likely happened here is something getting messed up during the array creation, which has now led to some data being written to where the RAID superblock is stored. Doing the above will fix that situation permanently. Googling for the commands I've listed will give you

PS: if the array holds your the partition where your Archlinux is installed; you'll have to do this from a live-cd.

Thank you thank you. Works like a champ. Was a bit paranoid when abort (y) was the default

Offline

#7 2017-01-07 11:09:36

strech
Member
Registered: 2017-01-07
Posts: 1

Re: [SOLVED] Lost my partition table (or superblock) on my raid 1 array

Gcool wrote:

Try the following:

# e2fsck -cc /dev/md127 (this is going to take a long time, so do it when you have the possibility to keep the box running for 2 days straight or so)
# resize2fs /dev/md127
# fsck -f /dev/md127

What most likely happened here is something getting messed up during the array creation, which has now led to some data being written to where the RAID superblock is stored. Doing the above will fix that situation permanently. Googling for the commands I've listed will give you

PS: if the array holds your the partition where your Archlinux is installed; you'll have to do this from a live-cd.

Thanks, Thanks, Thanks!
With it i solve it for my Zyxel Nas NSA 325 v2 where i lose all my data at migration.
For 3TB it took 2,5 Days.
I use Knoppix on usb and first make a backup with dd to a bigger disk

Offline

#8 2017-01-08 14:07:05

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,788
Website

Re: [SOLVED] Lost my partition table (or superblock) on my raid 1 array


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB