Jump to content

Remote file opening problem [solved]


jpmartin
 Share

Recommended Posts

So i've read elswhere that fstab was readed too early in the boot process to get any network drive mounted...

 

The solution would be to have an autostart - as Yves had mentioned - but the problem i see is that only the root user can mount a drive once the system is up...

 

Now i see that this might be another thread, i'll let the moderator decide, but in the mean time if you have any thoughts i'd be interested.

 

jp

Link to comment
Share on other sites

Ok, problem solved completely.

 

So to open remote files (.xls, .doc, etc) on a windows server...

 

1. you have to mount the drive - just connecting to it won't work.

2. you'll want to automate the mounting at bootup.

 

For #2 simple solution :

1st : have your system recognize the remote drive using Samba config in Mandriva Control Center... After this step, it sould look something like this in the etc/fstab file :

UUID=1151304d-0810-4b44-8059-fe9f6ddd14aa / ext3 defaults 1 1

//server0/data /home/jp/data cifs domain=cora,user=user,pass=pass 0 0

 

2nd : add a mount command, which should look something like this[ mount -t cifs //server/data /home/data -o user=user,pass=pass ], to the S99local script in etc/rc5.d folder and give "execute read and write" wrights to the S99local script with the chmon 755 command.

 

And Voilà !

 

jpm

Edited by jpmartin
Link to comment
Share on other sites

That file is probably a symlink to /etc/rc.local which is where I normally put some additional local stuff unique to me that I can't get to run anywhere else.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...