Announcement

Collapse
No announcement yet.

sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk

    when i type:

    sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk

    i get

    mount: you must specify the filesystem type

    what do this mean?
    Intel(R) Core(TM)2 Duo CPU T5750 @ 2.00GHz<br />Mobile PM965/GM965/GL960 Memory Controller Hub

    #2
    Re: sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk

    It's looking for a .iso file name.

    sudo mount -o loop /win/ubuntu/disks/root.iso /vdisk
    should work (assuming root.iso is in fact an ISO file format, and the mount point /vdisk exists).

    Comment


      #3
      Re: sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk

      Originally posted by dabayman
      ....
      mount: you must specify the filesystem type
      what do this mean?

      From the man pages ("man mount" in a konsole)
      THE LOOP DEVICE
      One further possible type is a mount via the loop device. For example, the command

      mount /tmp/fdimage /mnt -t vfat -o loop=/dev/loop3

      will set up the loop device /dev/loop3 to correspond to the file /tmp/fdimage, and then mount this device on /mnt.

      This type of mount knows about four options, namely loop, offset, sizelimit and encryption, that are really options to losetup(8). If the mount requires a passphrase, you will be prompted for one unless you specify a file descriptor to read from instead with the --pass-fd option. (These options can be used in addition to those specific to the filesystem type.)

      If no explicit loop device is mentioned (but just an option `-o loop' is given), then mount will
      try to find some unused loop device and use that.

      Since Linux 2.6.25 is supported auto-destruction of loop devices and then any loop device allocated by mount will be freed by umount independently on /etc/mtab.

      You can also free a loop device by hand, using `losetup -d' or `umount -d`.
      In your case the command would be

      mount /win/ubuntu/disks/root.disk /vdisk -t iso9660 -o loop=/dev/loop0

      assuming, as Snowhog said, that root.disk is really an iso image. Normally, one would want to have an extension of ".iso" as part of an iso9660 image file name. BTW, in the /dev sub-directory there are eight loop devices, loop0 through loop7. You can use any one of them. Loop0 is not sacred.

      Most of the mount man pages are given to describing the various kinds of device types that "mount" and mount, and what their syntax parameters are. Also, the "unmount" command is "umount", not "unmount".
      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
      – John F. Kennedy, February 26, 1962.

      Comment


        #4
        Re: sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk

        Originally posted by dabayman
        when i type:

        sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk

        i get

        mount: you must specify the filesystem type

        what do this mean?
        if this was going to work you would have first had to mount your windows partition under /win and made the DIR /vdisk to mount it to................it looks like you just coped it frome the WubiGuide...hear find your line in thare and then read the section.

        if you did do all that then got the error try adding -t iso9660 right after loop so it looks like this

        sudo mount -o loop -t iso9660 /win/ubuntu/disks/root.disk /vdisk
        provided of corse that the root.disk is in fact a iso? and you had mounted windows under /win and made the mount point /vdisk

        VINNY
        i7 4core HT 8MB L3 2.9GHz
        16GB RAM
        Nvidia GTX 860M 4GB RAM 1152 cuda cores

        Comment


          #5
          Re: sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk

          when i do:

          mount /win/ubuntu/disks/root.disk /vdisk -t iso9660 -o loop=/dev/loop0

          i get: mount: stolen loop=/dev/loop0



          when i do:

          mount -o loop -t iso9660 /win/ubuntu/disks/root.disk /vdisk

          i get: mount: wrong fs type, bad option, bad superblock on /dev/loop1, missing codepage or helper program........................
          Intel(R) Core(TM)2 Duo CPU T5750 @ 2.00GHz<br />Mobile PM965/GM965/GL960 Memory Controller Hub

          Comment


            #6
            Re: sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk

            The first error suggests that loop0 was in use at the time. I.E., you had tried to create a loop device and it succeeded. Not knowing it had succeeded (no return msg usually means success) you tried it again.

            Use
            sudo losetup -f

            to find the first unused loop device.

            The second error suggests that you found an unused loop device but your image is corrupt.

            What does what Dibl suggested do?:

            mount -o loop /win/ubuntu/disks/root.disk /vdisk
            "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
            – John F. Kennedy, February 26, 1962.

            Comment

            Working...
            X