Results 1 to 7 of 7

Thread: Can't mount USB-drive or any External Hard-drives

  1. #1
    Join Date
    Sep 2006
    Beans
    391
    Distro
    Ubuntu 10.04 Lucid Lynx

    [SOLVED] Can't mount USB-drive or any External Hard-drives

    I have Windows XP installed in VirtualBox.
    All other USB seem to working just fine now (mouse, keyboard.. etc).

    But when I stick my USB-drive or turn on Hard-drve.. it give me this error message:


    Not permitted to open the USB device, check usbfs options.

    Code:
    Failed to attach the USB device SanDisk U3 Cruzer Micro [0200] to the virtual machine XP.
    
    Result Code: 
    NS_ERROR_FAILURE (0x80004005)
    Component: 
    Console
    Interface: 
    IConsole {e3c6d4a1-a935-47ca-b16d-f9e9c496e53e}
    Last edited by Kdar; January 2nd, 2009 at 07:04 AM.

  2. #2
    Join Date
    Aug 2006
    Beans
    13,354
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: Can't mount USB-drive or any External Hard-drives


  3. #3
    Join Date
    Sep 2006
    Beans
    391
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Can't mount USB-drive or any External Hard-drives

    When I do it.. Fixed that mouse errors.

    But I still can't get my hard-drives to load. Whats wrong?
    Last edited by Kdar; January 1st, 2009 at 07:05 PM.

  4. #4
    Join Date
    Sep 2006
    Beans
    391
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Can't mount USB-drive or any External Hard-drives

    Ok. I solved my problem.

    http://ubuntuforums.org/showthread.php?t=1015763
    I followed those instruction.

    and also those:
    http://ubuntuforums.org/showthread.php?t=927491

    Hi, i finally managed to solve this problem in Ubuntu 8.10 Intrepid.
    First i activated the usb support adding this line to /etc/fstab:

    Code:

    none /proc/bus/usb usbfs devgid=46,devmode=666 0 0

    Warning: this works only in intrepid, activating the usb support in Hardy or previous requires a different procedure.

    Than I started the virtual box and installed guest addition (without mouse support, you can reach the menu "Devices" by holding ctrl+home, then release and suddenly press d, from that menu you can install guest additions).

    Than I turned off the VM.
    Now I enabled the USB support adding all the devices except the mouse!
    If I enabled the mouse, I had the described problem.
    Without checking it, everything works fine!
    So.. for some weird reason. I had to disable support for my mouse and it worked
    Last edited by Kdar; January 2nd, 2009 at 07:07 AM.

  5. #5
    Join Date
    Nov 2006
    Location
    Conn., United States
    Beans
    1,644

    Re: Can't mount USB-drive or any External Hard-drives

    Quote Originally Posted by Kdar View Post
    So.. for some weird reason. I had to disable support for my mouse and it worked
    As counterintuitive as it may seem, this is exactly what is supposed to happen. The keyboard and mouse (among other things) are virtualized -- that is, the guest OS does not directly access the hardware. Remember, any time the guest OS gets direct access to hardware (such as an external drive or web cam) the host OS can not use that hardware until the guest releases it. You can see that this could cause a problem if you gave the guest direct access to things like the keyboard, mouse, graphics card, etc.

    When you enabled the USB mouse in your Virtual Machine, you set up a conflict -- essentially, the two OS's were fighting over the mouse, causing erratic and unexpected behavior. Make sure that both the USB mouse and the USB keyboard are NOT enabled in your VirtualBox sessions.

    Thank you for your PM, calling my attention to this and other threads where this was a problem. I've edited my HOWTO to include this issue.
    Last edited by HotShotDJ; January 2nd, 2009 at 08:26 AM.
    "When you dual-boot Windows, Windows exists along side of Linux. When you use VirtualBox, Windows exists at the pleasure of Linux." -- ThomasAaron @ System76

  6. #6
    Join Date
    Sep 2006
    Beans
    391
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Can't mount USB-drive or any External Hard-drives

    ah I see now. Thanks for explanation .. I guess that why right-CTRL+L or F didn't work before too.

    So.. are USB-drives are also vertualised? or if Linux have one mounted? Do I need to dis-mount and re-mount it in VirtualBox?

  7. #7
    Join Date
    Nov 2006
    Location
    Conn., United States
    Beans
    1,644

    Re: Can't mount USB-drive or any External Hard-drives

    Quote Originally Posted by Kdar View Post
    So.. are USB-drives are also vertualised? or if Linux have one mounted? Do I need to dis-mount and re-mount it in VirtualBox?
    No. USB drives require direct access. But you do not need to unmount them in the host first, VirtualBox will take care of that for you. Just remember, the USB drive will not be accessible to the host until they have been unmounted from the guest. The same is true of WebCam, local USB printers, scanners, cameras, etc.
    "When you dual-boot Windows, Windows exists along side of Linux. When you use VirtualBox, Windows exists at the pleasure of Linux." -- ThomasAaron @ System76

Bookmarks

Posting Permissions

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