LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-26-2015, 02:00 AM   #1
jalil1408
LQ Newbie
 
Registered: Feb 2015
Posts: 1

Rep: Reputation: Disabled
mount reiserfs .dsk image failed : can't read superblock


I have a failed 160 GB Western Digital Netcenter NAS disk and its image after failing in .DSK format.

When I connect the disk to my ubuntu machine and typed:

Code:
# losetup -o 512006144 /dev/loop1 /dev/sdc      
# mkdir /tmp/sdc
# mount -r -t reiserfs /dev/loop1 /tmp/sdc
I get my folders and files in the /tmp/sdc folder then I can copy some files and folders but at a very slow speed.

When I try to get them from the .dsk file with:

Code:
# losetup -o 512006144 /dev/loop2 /media/wdnas.dsk      
# mkdir /tmp/dsk
# mount -r -t reiserfs /dev/loop2 /tmp/dsk
In the mount command I got:

Code:
mount: /dev/loop2: can't read superblock
How can I fix that?

I compared the disk content and the .dsk file in a hexadecimal editor and they look the same!

Ref: http://tristanscott.co.uk/computers/...data-recovery/
 
Old 02-26-2015, 07:16 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Each file system has multiple copies of the superblock. fsck has the capability to use an alternate superblock when repairing a file system. You could try running fsck against the loopback partition. I think that the command you need is:

reiserfsck --rebuild-sb /dev/loop2

However it has been several years since I last worked on a corrupt superblock and with loopback devices so you better try it first on a copy of your data that you can afford to lose.

-----------------------
Steve Stites
 
1 members found this post helpful.
Old 02-26-2015, 07:17 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Is this a real dsk image or did you use the dd command to clone the drive? A real dsk image is not the same thing as a image made via the dd command and is not mountable.

If this a image made via the dd command did you calculate the offset or did you just use the number given in the article? I would not assume the same offset number.
 
1 members found this post helpful.
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
nfs mount can't read superblock nafan Linux - Networking 11 09-08-2016 09:22 PM
Can't mount dvd, can't read superblock noviciado Linux - Hardware 5 05-06-2009 11:32 AM
mount: /dev/sda: can't read superblock xeon123 Linux - General 4 08-18-2008 01:42 PM
Compressed image stops install, can't read superblock, kernel panic GraybeardPaine Linux - Newbie 1 05-12-2008 08:36 PM
mount: server:/home can't read superblock phil.d.g Linux - General 0 05-11-2006 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:53 PM.

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