| Author |
Execute startup script in Linux
|
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
Guys,
In my VMBox, I have Ubuntu guest OS. I have a shared folder created. I would like to know how to get that shared folder mounted each and every time I bring my Ubuntu guest OS up. Where could I locate the startup scripts?
|
SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14486
|
|
|
How are you sharing it? If you're using NFS or Samba/cifs/Windows File Shares (3 names for the same thing), you'd simply define a mount point and add an entry to the VM's /etc/fstab directory just like you would on a stand-alone system.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
|
I#m doing that using VMBoxWare...
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14486
|
|
I think you're not so much "sharing" as you are publishing a part of the host's filesystem into the guest. The main differences are that 1) - the "share" is presented as a virtual hard drive and 2) you probably aren't provided with filesystem locks that true sharing needs where both host and guest can write to files without danger of corruption.
If you're doing the virtual hard drive thing, just make note of what virtual device ID it uses (for example, /dev/sdb) and create a mount in fstab jiust like you would for NFS or Samba. Or an actual physical hard drive.
|
 |
 |
|
|
subject: Execute startup script in Linux
|
|
|