LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-12-2010, 04:35 PM   #1
prushik
Member
 
Registered: Mar 2009
Location: Pennsylvania
Distribution: gentoo
Posts: 372

Rep: Reputation: 29
Mounting images with multiple partitions


Say I have an image of a file system. I made it with dd by copying it off my USB stick. e.g. "sudo dd if=/dev/sdb1 of=./image.ext2"
I can mount said image with the command: "sudo mount -t ext2 -o loop ./image.ext2 /mnt/"
Now, say instead of copying a partition with dd, I copy a whole drive. e.g. "sudo dd if=/dev/sdb of=./image.img". sdb had 2 partitions on it. How can I mount those separate partitions without copying that image back onto the USB drive?
 
Old 07-12-2010, 05:39 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Not sure I have seen it done but you'd have to first mount the image either in a loop device or as a virtual machine. Then you'd have to mount partition. Actually I know the VM deal works.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting Multiple Windows Partitions bostonantifan Fedora 5 04-04-2007 12:33 PM
Mounting USB external drive with multiple partitions, USB bluetooth mouse xmeson Slackware 7 12-17-2006 09:00 AM
How To: Mount Images from other partitions... dpsource Linux - Software 5 09-06-2006 01:10 PM
trouble mounting multiple partitions in Gparted shadowsnipes Linux - General 2 07-01-2006 12:37 AM
Mounting multiple logical partitions - suse 9.3 elroacho Linux - Hardware 2 10-28-2005 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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