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 10-22-2012, 03:49 AM   #1
Klaus_K
LQ Newbie
 
Registered: Oct 2011
Posts: 8

Rep: Reputation: Disabled
Unhappy Trouble mounting a filesystem image created using 'dd'


Hi all,

I recently took a backup of my old system, using a dd command of the form: dd if=/dev/sda of=lv_home.img

Stupidly, I can't recall the exact command, or the exact configuration of my old setup.

Unfortunately, I now find myself unable to mount the resulting image file, in order to recover its contents. I have googled multiple solutions, but none of them work for me - e.g. losetup, parted, kpartx and others.

Some potentially useful details appear below, and I have attached the results of running parted on the image.

-------------------------------------
[kk@mserver oldsys]$ ls -alrth lv_home.img

-rw-rw-r--. 1 kk kk 760G Oct 21 20:39 lv_home.img

[kk@mserver oldsys]$ file lv_home.img

lv_home.img: Linux rev 1.0 ext4 filesystem data, UUID=79653d22-003f-4c83-aa31-d14b48fa9f20, volume name "_Fedora-16-i686-/" (errors) (extents) (large files) (huge files)

--------------------------------------
The parted output includes some errors, but I don't know whether these are relevant or not.

Any help gratefully received :-)

K
Attached Files
File Type: txt parted.txt (1.8 KB, 14 views)
 
Old 10-22-2012, 05:21 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
The options may be of some issue but usually dd is a device image. dd may have failed in the original image by use of some commands.

You can mount it as a loop file (most people do it that way) but I tend to just use qemu.

From terminal line would be qemu lv_home.img in the directory that lv_image.img resides.

See how far it boots up.
 
Old 10-23-2012, 12:52 PM   #3
Klaus_K
LQ Newbie
 
Registered: Oct 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by jefro View Post
The options may be of some issue but usually dd is a device image. dd may have failed in the original image by use of some commands.

You can mount it as a loop file (most people do it that way) but I tend to just use qemu.

From terminal line would be qemu lv_home.img in the directory that lv_image.img resides.

See how far it boots up.
Not sure I understand: why would I need emulation s/w to mount an image?
 
  


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
Trouble mounting dd image file. mpmackenna Linux - General 9 02-11-2014 09:47 AM
Trouble mounting dd image mpmackenna Linux - General 2 11-24-2007 03:24 PM
trouble mounting ntfs filesystem jreniel Linux - Hardware 3 06-07-2006 03:27 PM
Mounting a qemu created root disk image Valhalla Linux - Software 4 10-26-2005 08:34 PM
trouble mounting a newly created partition tauceti38 Linux - Hardware 6 03-16-2005 03:40 AM

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

All times are GMT -5. The time now is 02:33 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