Find the answer to your Linux question:
Results 1 to 7 of 7
I am trying to access a partition of a usb disk image I downloaded. I have gotten so far as binding it to a loopback device with losetup, and according ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    15

    Working with loopback devices


    I am trying to access a partition of a usb disk image I downloaded. I have gotten so far as binding it to a loopback device with losetup, and according to fdisk there should be a /dev/loop0p1, but this file does not exist. Does anyone know how to mount this partition to be able to work with it?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,393
    Easy way? Use mount with the -o loop option.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Sep 2009
    Posts
    15
    That would work if it was an image of, say, sda1. If it was an image of sda, however, that doesn't work (asks for a partition type). Any ideas on how to work with an image in this form?

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,393
    Well, you can copy it to an empty disc of adequate size and then mount the partitions normally.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined!
    Join Date
    Sep 2009
    Posts
    15
    I would prefer if there was a way that didn't involve the time if finding/writing to a new disk.

  6. #6
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,754

  7. #7
    Just Joined!
    Join Date
    Sep 2009
    Posts
    15
    My apologies, I did not find that in my own set of googles. Thanks for the link.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •