share directory from linux to unix


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers share directory from linux to unix
# 1  
Old 10-08-2009
share directory from linux to unix

hello,Smilie
I want to share a directory from Linux server to Unix server, i did it before for Unix servers only ,
first server:
share -F nfs /backup

second server:
mount -F nfs 192.1.1.208:/backup /

but i can't find share command in linux, we tried to use samba but it doesn't works.

any one knows how to do it.
# 2  
Old 10-08-2009
It is exportfs in debian, and not "share".

Code:
exportfs IP:Dir_Of_FileSystem_To_Export

exportfs 192.168.1.1:/mnt

Which linux distribution you are speaking about ?!
# 3  
Old 10-08-2009
In Linux there isn't a 'share' command. Instead, edit the /etc/exports file per your requirements, and then reload the NFS server, eg
Code:
/etc/init.d/nfsserver reload

# 4  
Old 10-08-2009
we are using ubuntu distribution, and it doesn't have exportfs command ..
# 5  
Old 10-08-2009
In ubuntu, the procedure is.

1. Install nfs-kernel-server as
Code:
sudo apt-get install nfs-kernel-server

2. Edit /etc/exports
( check the examples there & do like that. )

3. Restart the nfs-kernel-server as
Code:
/etc/init.d/nfs-kernel-server restart

Not tested, but would work. Let us know.
# 6  
Old 10-20-2009
sorry for late , i was busy ..it works now thanks... this what i have done..

=== in linux ( 192.1.1.208)
Code:
 sudo apt-get install nfs-kernel-server
 sudo chmod 777 /backup 
 sudo exportfs 10.2.128.18:/backup/

we removed the read only option from Webmin nfs export module, and we found that the /etc/exports edited by this line.
Code:
/export/backup  (rw)


=== in Unix (10.2.128.18)
Code:
mount -F nfs -o vers=3 192.1.1.208:/backup /NWBackup

hope it helps....

Last edited by zaxxon; 10-20-2009 at 07:45 AM.. Reason: code tags
# 7  
Old 10-20-2009
To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Directory / File changes on CIFS share mounted on Red Hat Linux

I have a requirement to copy the changed file on CIFS share mounted on Red Hat Linux to a remote FTP/SFTP server. I tried inotify-tools, but this didn't track the modified files. Has anyone tried incron or any other suggestion? (1 Reply)
Discussion started by: SupeAlok
1 Replies

2. Red Hat

compare/diff two directory in two different linux/unix machine

Hi, I have two server , one linux and one unix . I want to compare two different directry in them . What command or tool I can use instead of search the dir one by one ??? thank (3 Replies)
Discussion started by: chuikingman
3 Replies

3. UNIX for Dummies Questions & Answers

Linux Server Network Settings - Share Directory Structure

Hello Unix Gurus Who I Hope Reads This, I have quasi-inherited control over a Linux cluster at a university research lab. The post-doc that set it up is gone, and the person in charge of administering the cluster doesn't know a ton about Linux. Amongst other things, I want to use the cluster... (0 Replies)
Discussion started by: mbl
0 Replies

4. AIX

How to share a directory in AIX to access from Solaris and windows?

Hi All, I am basically new to this forum as well as AIX. To share some huge files between 2 servers I thought of creating a shared Directory in my AIX machine to access it in Solaris. I am very new to this AIX. Help me out how can u share a directory in AIX to access (mount) it on Solaris. Hope... (2 Replies)
Discussion started by: babuchoudary_g
2 Replies

5. UNIX for Dummies Questions & Answers

How do I share a directory in UNIX for another UNIX server?

Hi, Here's my newbie question! I've two servers with Oracle on. I've created an oralce export (10 GB) on server 1. Server 2 does not have enough space to copy the export and import it. I'd like to import the export from server 1 to server 2 remotely. If this was windows I'd create a... (2 Replies)
Discussion started by: AngryBunny
2 Replies

6. Linux

how i can share the file between unix or linux in windows ??

hello everybody i have one quetion :( about how i can share my file in windows to use it in linux explane i have to opreating system windows xp and linux fedore core and unix ( sun solaris 10 ) and i want to open me file that is storege in windows <<< want to open it in unix or... (4 Replies)
Discussion started by: msn22
4 Replies

7. UNIX for Dummies Questions & Answers

Unix/Linux Directory Structure

Does anyone know of a good Internet source that explains the directory structure of Unix/Linux?? Thanks Gregg (2 Replies)
Discussion started by: gdboling
2 Replies
Login or Register to Ask a Question