LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices

Reply
 
LinkBack Search this Thread
Old 01-22-2007, 03:29 PM   #1
edemark
Member
 
Registered: Jan 2004
Location: Ecuador
Distribution: slackware 9.1
Posts: 41

Rep: Reputation: 17
xfs cannot read superblock


Hi
I would need some urgent help. I had an emergency shutdown and now the system is unable to load my home directory that is in /dev/hda3 with xfs file-system. I use ubuntu dapper and now i am on ubuntu edgy live-cd.

How can i get all my data back
please help

when i try to mount /dev/hda3 i got the following message>

sudo mount -t auto /dev/hda3 /mnt/hda3
mount: /dev/hda3: can't read superblock

xfs_check gives this

sudo xfs_check /dev/hda3
ERROR: The filesystem has valuable metadata changes in a log which needs to
be replayed. Mount the filesystem to replay the log, and unmount it before
re-running xfs_check. If you are unable to mount the filesystem, then use
the xfs_repair -L option to destroy the log and attempt a repair.
Note that destroying the log may cause corruption -- please attempt a mount
of the filesystem before doing this.

but of course i cannot mount it.

Is there any other way to repay this log?

xfs_repair gives this error

sudo xfs_repair /dev/hda3
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
ERROR: The filesystem has valuable metadata changes in a log which needs to
be replayed. Mount the filesystem to replay the log, and unmount it before
re-running xfs_repair. If you are unable to mount the filesystem, then use
the -L option to destroy the log and attempt a repair.
Note that destroying the log may cause corruption -- please attempt a mount
of the filesystem before doing this.

Shall I just go forward with the -L option? Would that mean that i will lose data?
What is actually corruption means here?
Is there any other way to get out my data first in some safe way?
Actually this is a hp nx 9010 notebook

Please help
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-26-2007, 08:03 AM   #2
edemark
Member
 
Registered: Jan 2004
Location: Ecuador
Distribution: slackware 9.1
Posts: 41

Original Poster
Rep: Reputation: 17
Hi all

I have resolved my problem. I am putting it here as you might find it usefull. First I mounted /dev/hda3 with the option of -o ro,norecovery. Once mounted i backed up the data. After i used xfs_repair -L (this last flag destorys the log file in order to be remade by xfs_repair use it with care!!). Fortunately it recovered the whole partition without loosing any data.

bye
 
2 members found this post helpful.
Old 10-12-2011, 05:28 PM   #3
trebor7_1
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 1
Smile xfs no reading superblock

I know its a bit late, like 4 years, but thanks that info got my xfs file system mount and I was able to copy off the data, so thanks a lot for the tip...
 
1 members found this post helpful.
Old 12-22-2012, 02:44 AM   #4
sulekha
Member
 
Registered: Dec 2004
Location: India
Distribution: ubuntu 10.04 , centos 5.5 , Debian lenny, Freenas
Posts: 324

Rep: Reputation: 36
Thumbs up

Thanx a lot , I got all my data back from a 1 TB Toshiba HDD. BTW always remember the following when using XFS partition :-

Due to balance of speed and safety, there is the possibility to lose data on abrupt power loss (outdated journal metadata), but not filesystem consistence

see :-https://wiki.ubuntu.com/XFS
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Superblock could not be read captainfreedom Linux - Newbie 2 03-02-2005 02:09 PM
XFS read for Windows? SocialEngineer Linux - General 0 02-20-2005 01:11 PM
Superblock could not be read zatka Red Hat 12 01-27-2004 04:22 AM
can't read superblock - new kernel jamesstaylor Linux - Newbie 3 09-29-2003 11:01 AM
unable to read superblock SPiZ Linux - General 2 12-31-2002 06:30 PM


All times are GMT -5. The time now is 11:14 AM.

Main Menu
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