Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26th October 2009, 02:15 PM
RalphCC Offline
Registered User
 
Join Date: Aug 2007
Location: London UK
Posts: 141
linuxfedorafirefox
linking disks between machines.

I am setting up my first disk share between linux machines using just mount to test ( as with mounting win disks) and it doesn't mount. I get messages like "special device - does not exist"
Should I be doing fstab entries from the start or what should I do?. One machine is F11 the other f10 if that makes a difference. I can link one linux to windows on the other machine.
Is this the right forum?
Thanks, Ralph.
Reply With Quote
  #2  
Old 26th October 2009, 04:41 PM
zak_neutron Offline
Registered User
 
Join Date: Jun 2007
Location: Derby, UK
Posts: 76
windows_xp_2003firefox
What command are you issuing for the mount?
Reply With Quote
  #3  
Old 27th October 2009, 12:40 AM
RalphCC Offline
Registered User
 
Join Date: Aug 2007
Location: London UK
Posts: 141
linuxfedorafirefox
Command

I've tried all sorts of variations on :
mount otherip:/dev/sda5 /here
I've tried by machine name and by address.
Does it need matching users on each machine - but commands are done as root?.
Ralph
Reply With Quote
  #4  
Old 27th October 2009, 02:23 AM
barry905 Offline
Registered User
 
Join Date: Jul 2007
Posts: 115
windows_xp_2003firefox
If you want to share a disk (or a directory) with another computer you can use either NFS or samba. NFS is really designed for file sharing between Linux (and unix) based PCs, while samba is used to share files between Windows and Linux.

To set up NFS you need to tell the host PC which filesystem to export, and then start the NFS daemon. With samba, you need to configure the samba server and as a part of that you will define the directory tp be shared.

Good luck!
Reply With Quote
  #5  
Old 27th October 2009, 05:12 PM
RalphCC Offline
Registered User
 
Join Date: Aug 2007
Location: London UK
Posts: 141
linuxfedorafirefox
Thanks

I hadn't found that because it is in a different chapter of the sysadmin book.
I have put root in the export file and will try it out.
Is export a tab separated file because I have put the bg subcommand in?.
Do I refer to the export by the /dev/sd.. construct on the remote machine still?.
Thanks for your help.
Ralph.
Reply With Quote
  #6  
Old 28th October 2009, 04:41 AM
barry905 Offline
Registered User
 
Join Date: Jul 2007
Posts: 115
linuxfedorafirefox
As an example, here is the /etc/exports file on my server:

/data/downloads *(rw,sync,nohide)
/data/mp3 *(rw,sync)
/data/stuff *(rw,sync)
/more_data/backups *(rw,sync,nohide,no_root_squash)
/misc/exports *(rw,sync)


I can't quite remember the exact syntax, but I believe that each line represents the filesystem to be exported, which machines can access it (it this case all of them, hence *) and any mount conditions (again, in this case read/write). The elements of each line are space and/or tab separated. You can get a full description from the man page (man exports).

To mount the filesystem from the other end, you simply mount it using something like:

mount test.example.com:/misc/export /misc/local

or by adding this to the fstab file:

test.example.com:/misc/export /misc/local nfs rsize=8192,wsize=8192,timeo=14,intr

in both cases this mounts the filesystem /misc/export from the server test.example.com on /misc/local

Hope that helps; if not please ask to more info....

Last edited by barry905; 28th October 2009 at 04:46 AM.
Reply With Quote
  #7  
Old 29th October 2009, 08:30 PM
trigpoint Offline
Registered User
 
Join Date: Dec 2004
Location: Shropshire, UK
Posts: 676
symbiansafari
The exports file on my server box includes network ip ranges that are allowed to access the shares, although I have masked them to allow any pc on my network to access them.
Code:
/mydata/data/        192.168.1.0/255.255.255.0(rw)
/home/myhome      192.168.1.0/255.255.255.0(rw)
.

Then to mount them
Code:
mount 192.168.1.10:/mydata/data /mnt/data/
mount 192.168.1.10:/home/myhome/mnt/data/
If you want to share with a windows machine, then install system-config-samba, it makes samba a doddle to configure.
Reply With Quote
  #8  
Old 10th November 2009, 08:11 PM
RalphCC Offline
Registered User
 
Join Date: Aug 2007
Location: London UK
Posts: 141
linuxfedorafirefox
What I am doing

I notice you are both using two levels of directory:
mount ip:/a/b /c/d (ip=an address I can ping)

I am trying :
mount ip:/a /b
does this matter

I get ' mount.nfs: mount(2): Input/output error '
Does this mean the daemons are not started, I can't see anything with ps .
Thanks for any help,
Ralph.
Reply With Quote
  #9  
Old 10th November 2009, 11:55 PM
CiaW's Avatar
CiaW Offline
Registered User
 
Join Date: May 2009
Location: eastern Washington (state) USA
Posts: 489
linuxopera
I spent hours and hours figuring out and getting NFS to work, between my Fedora7 laptop and my CentOS and now F12 machines. 1st thing: the directory you want to mount to has to already exist. I was used to my usb drive being mounted in /media/bigdrive without the /bigdrive directory existing before it was auto-mounted when I turned it on. So if you're mounting to /b/mystuff then make sure mystuff is a directory in /b.

2nd, unless you get the ports assigned that various NFS services want to use, it'll assign them differently sometimes. So you have to edit /etc/sysconfig/nfs Here are some good articles that explain various aspects of it:
http://kbase.redhat.com/faq/docs/DOC-3259

http://nfs.sourceforge.net/nfs-howto/ar01s07.html

3rd, you have to open the ports you configured above, in the firewall. If you select the service NFS in the firewall setting it'll just open port 2049 (I think that's the one?), and I'd already opened all of the other ones from /etc/sysconfig/nfs and it still wasn't working until I also added port 111 (portmapper -- that one seems to be standard so you don't have to define it). I think that made the difference, though I'm not positive. I have tons of notes I kept, but I didn't note every little thing I did, but I got it to work.

To see what ports are assigned to various parts of the service use the 'rpcinfo -p' command. You'll want them to match between machines.

Lastly, in case you're going to be going to Fedora12, I filed a bugzilla that will hopefully be fixed soon, where the system-config-nfs tool adds an http:/ in front of the host IP -- I had to manually edit the /etc/exports file to get it to mount. There was another rpc.statd bug filed too, against the livecd. I found a fix for that on the bugzilla page.

Hope that helps.
Reply With Quote
Reply

Tags
disks, linking, machines

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I mount floppy disks and cd disks? William F Using Fedora 9 2nd May 2006 05:25 AM
Linking /var/tmp and /tmp mauldus Using Fedora 0 2nd March 2006 01:52 AM
Linking? santabruzer Programming & Packaging 0 15th September 2004 12:31 AM


Current GMT-time: 17:19 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat