LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-28-2011, 10:06 AM   #1
timmyx
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Rep: Reputation: Disabled
LVM Disk fault and "unable to set superblock"


Hi All,

Im trying to fix a disk which is inaccessible.

Its using LVM2

From a rescue disk I can scan and see the LVM device fine.

When I try to mount it fails.

When I run e2fsck it says "recovering journal" and then fails with "unable to set superblock flags"

I have tried running e2fsck -b 32768 (and other backup blocks) and it just says "recovering journal" and then fails with "unable to set superblock flags"

Can anyone help Please

Thanks
 
Old 06-28-2011, 03:20 PM   #2
Karl Godt
Member
 
Registered: Mar 2010
Location: Kiel , Germany
Distribution: once:SuSE6.2,Debian3.1, aurox9.2+3,Mandrake?,DSL? then:W7st,WVHB, #!8.10.02,PUPPY4.3.1 now:Macpup
Posts: 314

Rep: Reputation: 45
Hello ! Not used to LVM , but what does
Code:
dumpe2fs /dev/THEDEVICE | head -n 60
show ?
 
Old 06-28-2011, 05:13 PM   #3
tommylovell
Member
 
Registered: Nov 2005
Distribution: Raspbian, Debian, Ubuntu
Posts: 380

Rep: Reputation: 103Reputation: 103
Or, you could try Karl's suggestion using an alternate superblock.

Code:
dumpe2fs -h -o superblock=32768 -h /dev/mapper/<vg>-<lv>
Any idea why it's inaccessible?
 
Old 06-28-2011, 05:34 PM   #4
timmyx
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi All,

Thanks for the suggestions.

I managed to fix it by doing a low level copy of the disk onto another disk. It seemed to have no errors reading, it was just totally unable to write to it!

It was a SSD BTW (probably should have mentioned)

I used a program called ddrescue basically as such..

ddrescue -n /dev/hda /dev/hdb logfile
ddrescue -d -r3 /dev/hda /dev/hdb logfile
fdisk /dev/hdb
e2fsck -v -f /dev/hdb1
e2fsck -v -f /dev/hdb2

I could then boot from the 2nd (copied to) disk and all was good
 
Old 06-28-2011, 06:09 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,747

Rep: Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971Reputation: 3971
Good to hear - mark it as solved so others can see (thread tools at the top).
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to boot Debian : "PANIC : Double fault" Thomaz Linux - Newbie 11 08-01-2010 06:08 PM
Mounting LVM disk when "suspended" ericcarlson Fedora 1 02-13-2010 08:55 AM
OpenSuse 10.3 "Bad Superblock" on LVM badger_fruit Linux - Server 5 12-08-2008 04:35 AM
Recovering from a "Unable to read superblock" error horde Linux - Hardware 2 11-28-2008 04:39 PM
"unable to set up wireless lan usb adapter" pathak Linux - Hardware 1 04-27-2005 01:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration