LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 01-25-2011, 11:58 AM   #16
booshire
LQ Newbie
 
Registered: Jan 2011
Location: Denver, CO
Distribution: Ubuntu, Centos, Windows
Posts: 1

Rep: Reputation: 0
Offset


Sorry to reply on this zombie, but I cannot resist. To mount this image you have to use the "offset" extension. Check the man page. If you run fdisk -ul [imagef.ile] on the image you can grab the partitioning information and use the start block = to the offse.

Almost forgot, you have to take the block size x the number of blocks, so if it is 512 like default, just take the start block x 512.

example:

fdisk -lu sda.img
mount -o loop,offset=1048576 -t ext4 /backup/sda.img /old

Last edited by booshire; 01-25-2011 at 12:00 PM.
 
Old 01-25-2011, 12:08 PM   #17
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,151

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Did you read the whole thread before posting? Does your post add anything to unSpawn's post #8, above, in this thread?
 
1 members found this post helpful.
Old 06-30-2011, 09:15 PM   #18
fritzdjam
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
Hi
I not so Familliar with taht extension but I had a crash disk and i use dataresue to save my data . since that a got a dd extension and i dont know how to get those datas back,on google i read those posts. can someone explain me what to do step by step if possible
 
Old 06-30-2011, 11:03 PM   #19
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
It turns out there is another solution to this problem, which I have used; kpartx. There once was a very nice blog article with a perfect recipe for using it in this application. I cannot seem to find it at the moment, and the rest of what I can find isn't very illuminating. It is exactly the right tool, though, and I've used it a few times on a disk image dd'd from a multi-partition SD flash card.
--- rod.
 
Old 07-01-2011, 12:42 AM   #20
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,369
Blog Entries: 54

Rep: Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870
Quote:
Originally Posted by theNbomr View Post
It turns out there is another solution to this problem, which I have used; kpartx. There once was a very nice blog article with a perfect recipe for using it in this application. I cannot seem to find it at the moment, and the rest of what I can find isn't very illuminating. It is exactly the right tool, though, and I've used it a few times on a disk image dd'd from a multi-partition SD flash card.
I wrote about kpartx here and here aprox half a month after I made my previous post in this thread and there isn't really much more to using the command than that.
 
  


Reply

Tags
dd, loop, loopback, recover


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Explanation of the "loop" option when mounting CD image files uncle-c Linux - Newbie 5 12-15-2007 11:16 AM
Shell and batch operations on hidden files but not on ".." & "." danielsbrewer Linux - Software 5 09-12-2007 08:06 AM
add "Artist" and "Album Title" to mp3 files powah Linux - Software 2 04-05-2005 03:04 AM
why iam getting problems like "...too many files opened" or "segmentation fault" naren_0101bits Linux - Newbie 2 07-19-2004 12:20 PM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-29-2004 11:18 PM


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