Mount a partition from dd disk image

mount -o loop,offset=$((512*x)) /path/to/dd/image /mount/path
Assuming we have a disk image, ie. created by dd if=/dev/sda of=image.dd we can check the image's partition layout with fdisk -ul image.dd then, we substitute "x" with starting sector of the partition we want to mount. This example assumes that the disk uses 512 B sectors

5
By: rocku
2009-11-25 15:49:30

What Others Think

see also http://www.pixelbeat.org/scripts/lomount.sh
pixelbeat · 656 weeks and 4 days ago
Oh yes, this is good about partitioned disks but now some advancements have been taken place that I recently went through on https://essayguru.org/assignment-writing-help/ online main page. Thanks.
michaelhar12 · 97 weeks and 2 days ago
I often visit this blog to get more details on coding. cbd benefits I feel something so excellent and incomprehensible at whatever point I am seeing in this section. It was evident that these people put their best in the field.
TwanGrey · 16 weeks and 4 days ago
You can learn so many such commands through this website. If you love to learn such Unix commands, then this the page here website is the absolute choice for you. The above command is used to mount a partition from dd disk image. I am looking here for more updates on that.
Alyssalauren · 14 weeks and 5 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: