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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...