Announcement

Collapse
No announcement yet.

Auto mounting drives?

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

    Auto mounting drives?

    Hi all,

    I have Kubuntu 10.04 successfully running in Virtual Box on Windows XP without any problems. I do, however, want to get some drives to auto mount at boot. Right now I execute the commands below and they do work, but is there a way to get them to auto-mount at boot?

    sudo mount -t vboxsf c-drive /mnt/c
    sudo mount -t auto /dev/cdrom /cdrom

    #2
    Re: Auto mounting drives?

    I'm a VMware user, not a VBox user, so I may not have the best answer on this.

    Your Win XP OS is the "owner" of the optical drive, at the time you start your VM. I don't see how you can force it to release ownership without using the VBox user interface to "take over" that drive. In VMware, it's a "Removable Devices" menu item, that you simply click once to attach the drive to the guest OS. It stays connected to the guest OS until you either (a) disconnect it via the menu, or (b) close the guest VM.

    On the hard drive/partition, in VMware the guest OS (Kubuntu, in your case) can use its networking / file manager GUI (Dolphin, Konqueror, Krusader ...) to locate the drive you want. Of course, the partition, or directory, needs to be "shared" via the host OS to show up in the guest. But if you do it that way, there is no need for a mount command or an /etc/fstab entry -- it is present and available on the network as seen from the guest.

    I hope this helps.

    Comment


      #3
      Re: Auto mounting drives?

      Hi dibl,

      Thanks for the reply. I'm not trying to auto-mount the 'real' CD drive, but rather the virtual one automatically. I cannot see the shared drive before I mount it via the command above. I believe editing /etc/fstab will give me what I want, thanks for mentioning that. But is there a GUI way in Kubuntu to auto-mount drives? Googling around shows a bunch of old screenshots for things that don't seem to exist anymore in Kubuntu.

      Comment


        #4
        Re: Auto mounting drives?

        AFAIK, the partitions and drives listed in /etc/fstab are the only ones that have ever been automatically mounted at boot time.

        Comment

        Working...
        X