aspose file tools*
The moose likes Linux / UNIX and the fly likes Execute startup script in Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Execute startup script in Linux" Watch "Execute startup script in Linux" New topic
Author

Execute startup script in Linux

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9426
    
    2

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, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16137
    
  21

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: 9426
    
    2

I#m doing that using VMBoxWare...
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16137
    
  21

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Execute startup script in Linux