2

I apologize if this has been asked, I couldn't find it. I'm running Ubuntu 12.04, and I have a VirtualBox VM that starts headless when the machine boots up. For some reason, when it first tries to run, VirtualBox complains that it's can't find the virtual disk (which is on another drive) - once I open the directory manually, I can run the VM and everything is fine.

Why doesn't Ubuntu see the other drive at first? Has anyone encountered this?

aserwin
  • 246

2 Answers2

0

The answer was to find the UUID of the drive using blkid and inserting a line in fstab...

UUID=<id of drive> /media/ntfs ntfs 0 1
aserwin
  • 246
0

I usually backup things on another drive, for that it needs that drive to be mounted at boot. You can try the fstab method described above, or you can run a cron job at reboots.

sudo su
crontab -e
@reboot mount /dev/sda2 /mnt

where /dev/sda2 is the drive and /mnt is the mount point

uniquerockrz
  • 7,327