Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 11-23-2011, 07:55 PM   #1
LQ Newbie
Registered: Jul 2004
Location: Honduras
Distribution: openSUSE
Posts: 28

Rep: Reputation: 1
xfs_repair: Sorry, could not find valid secondary superblock

A friend's mdv2009.1 box locked up during a big printing job and he had to force a shutdown with Alt-SysRq-R S E I U B. Upon reboot it came back in single user mode and would not mount the hard disk. I booted it from a live CD and performed the following on hda1, what I presume to be the root partition:

# mount /dev/hda1
mount: wrong fs type, bad option, bad superblock on /dev/hda1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

# dmesg | tail
XFS: bad version
XFS: SB validate failed
XFS: bad version
XFS: SB validate failed
XFS: bad version
XFS: SB validate failed
XFS: bad version
XFS: SB validate failed
XFS: bad version
XFS: SB validate failed

# badblocks -sn /dev/hda1
Checking for bad blocks (non-destructive read-write test)
Testing with random pattern: done

xfs_check /dev/hda1
bad sb version # 0xb4b4 in ag 0
bad sb version # 0xb4a4 in ag 1
(really big snip)
sb_fdblocks 653, counted 1677
WARNING: this may be a newer XFS filesystem.

# xfs_repair /dev/hda1
bad primary superblock - bad version number !!!
attempting to find secondary superblock...
(big snip)
Sorry, could not find valid secondary superblock
Exiting now.

Searching the web I find numerous requests for help with the same issue but no one reports success. So I'm out of ideas. What else might I try to bring this box back to life?
Old 11-25-2011, 06:26 AM   #2
Registered: Jan 2010
Location: Velveeta, USA
Distribution: Xen, Gentoo,Ubuntu,openSUSE,Debian,pfSense
Posts: 98

Rep: Reputation: 8
I've had failed xfs filesystems, thanks to that crap called vmware->(beWare).

I used UFS Explorer to scan/recover my lost data. It's shareware and works like a charm. I've been using open source, freeware, whatever you choose to call it, for 20 years and can count on one hand the number of shareware programs that I've paid for and would recommend, and this is one of them.

I had a 10TB volume group with several logical volumes, each with an XFS filesystem. The complete 10TB volume group was copied to a 2nd VG but with only 1 LV, 1 XFS filesystem. Both disks were clobbered by vmware.

UFS Explorer recovered all of the data that was grouped into seperate LV, and 90% of the data with a single 10TB XFS filesystem. Unfortunately sometimes the filename is lost and you get a file by inode, but the exhaustive scan looks at the underlying data and recovers many known types of files.

If you have a second disk, it's always a good idea to clone the disk block by block (ddrescue) and attempt recovery on the clone first. UFS Explorer can't do an inplace data recovery anyway, you'll need a 2nd disk to copy the recovered data to.

Good luck


filesystems, xfs

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] tune2fs says Couldn't find valid filesystem superblock rjo98 Linux - Newbie 8 05-13-2010 08:22 AM
[SOLVED] Can't Find Secondary HDD Mikester Linux - Hardware 4 09-03-2007 02:23 AM
hfs: unable to find HFS+ superblock VFS: Can't find ext3 filesystem on dev sdb. macroron Linux - Hardware 3 11-20-2006 09:50 PM
XFS damaged can xfs_repair not working. help! MikeyCarter Linux - Hardware 1 08-18-2005 10:01 PM
not a valid block device..... where do I find it? rkhartley Linux - Newbie 6 12-11-2003 10:02 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:06 AM.

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