LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-27-2010, 11:34 AM   #1
V-fixer
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Rep: Reputation: 0
Writing to one disk from two or more computers at the same time


Hello, another naive question.


I've got a few linux boxes (fedora 13 and 11) with a common disk mounted. I'm trying to get them all to write files to that disk, however it seems that only the first to connect actually has permission to write.

I'm very new to this networking stuff and this is a bit of a hack. Is there anyway to give all computers write access to a disk (it's actually a managed back up disk, primarily for windows users but is the only shared disk in the building), or is this likely to be very very complicated?


Thanks
Sven
 
Old 10-27-2010, 11:53 AM   #2
udaman
Member
 
Registered: Oct 2010
Location: New England, USA
Distribution: OpenSUSE/Slackware64/RHEL/Mythbuntu
Posts: 187

Rep: Reputation: 39
You didn't say how the disk was externally mounted, so I'll assume it's NFS mounted.

Here's some info to read.

http://www.linuxhomenetworking.com/w...ccess_with_NFS
 
Old 10-27-2010, 03:59 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 11,380

Rep: Reputation: 1395Reputation: 1395Reputation: 1395Reputation: 1395Reputation: 1395Reputation: 1395Reputation: 1395Reputation: 1395Reputation: 1395Reputation: 1395
What is the error reported if any?
 
Old 10-27-2010, 04:48 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,856

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I would also assume you are sharing the drive via samba since you mentioned windows. You really have not provided much information and therefore difficult to provide help.

Please define what you mean by common disk? External USB, SATA etc...
Which computer if any is it attached to?
What is its filesystem?
How is it being shared? NFS samba etc.
What are its permissions?
How is it mounted?
If sharing via samba post the section from smb.conf
As already asked what are the error messages?
 
Old 10-27-2010, 05:23 PM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
I'll bet OP has that disk mounted multiple times, not shared. This would be the source of the problem; every filesystem will expect to have exclusive access to the disk, and strange things happen when two or more operating systems simultaneously mount the drive.

The drive should be mounted on one system, which then shares it via SMB or NFS to everyone else. Then it will work.
 
Old 10-28-2010, 04:26 AM   #6
V-fixer
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for those questions. I'll check with the sysadmin (a windows man).
 
Old 10-28-2010, 07:03 AM   #7
V-fixer
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
From the sys admin

"As for the questions:
The shared folder is an SMB share on a Windows server. Your user account has full share access permissions and full NTFS permissions on the disk itself which is directly attached to the server."
 
Old 10-28-2010, 09:40 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,856

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Is this a real server or a shared drive on a workstation?
I assume you are not trying to write to the same file at the same time.
 
Old 10-28-2010, 10:34 AM   #9
V-fixer
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Hi, I believe it's a real server, run by it's own computer.

I'm trying to write to different files with each computer (initialy just "touching" a blank file).

I used "mount -t cifs..." to connect all the computers to the drive.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How many computers have wrong time zone? rblampain General 8 07-19-2010 11:02 AM
Writing to tty causes writing to disk? (in ancient 2.2.x kernel) borsburn Linux - Kernel 0 12-17-2008 12:47 PM
LXer: Why Can't Computers Just Work All the Time? LXer Syndicated Linux News 0 12-05-2008 11:02 PM
Computers for Writing and for Keyboard (Midi) webwolf70 Linux - Software 2 09-14-2005 05:48 AM
How to make multiple computers beep at the same time? vdogvictor Programming 4 05-10-2004 10:49 PM


All times are GMT -5. The time now is 10:05 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration