mounting an AS/400 shared folder to linux

25 pts.
Tags:
Connectivity
IBM iSeries
Linux
NFS
I am trying to find how to mount an i-series shared folder to my linux machine. I would ideally like to be able to use the cpy command on the i-series to copy files directly to the linux shared folder (it is currently shared on a windows machine). I have a program which selects the documents based on a criteria and I want to copy the documents from i-series shared folders to one single linux shared folder. Any help or documentation would be greatly appreciated:) I believe I have to set up a file share on the i-series for the linux folder i want to write to.

Software/Hardware used:
iseries and linux V5R4

Answer Wiki

Thanks. We'll let you know when a new response is added.

iSeries is unknown to me, but we live in a mixed Linux-Windows environment, where Linux runs on Wintel boxes.

Here we use the following script, to mount a specific Windows directory to a given Linux machine. The trick is to mount it so that Windows thinks you are a Windows user, with your Windows password. Then you can read, write, create, and delete files in the mounted directory, and of course sub-directories.

#!/bin/sh -x
#
# mount the Windows S drive under /windows/S
#
sudo umount /windows/S
#
sudo mount -t cifs //Your.server.url/YourDirectory  /windows/S -o username=YourUSER,workgroup=YourWORKGROUP,file_mode=0777

Good Luck!

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    I believe I have to set up a file share on the i-series for the linux folder i want to write to. You have two general possibilities.   First, if your Linux directory is already shared out to the Windows network, you can access it through the /QNTC file system on your iSeries. You'll probably want to try the MD command to see if the access currently is enabled. (It might already be visible under /QNTC.)   Second, you could use the NFS client on your iSeries to mount the Linux directory over a directory path on your iSeries.   Regardless of how it's done, the most likely obstacle is going to be authentication. In order to know how to handle that, you might need to do some experimentation.   Is your Linux server/directory visible in your Windows Network Neighborhood?   Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Here we use the following script, to mount a specific Windows directory to a given Linux machine.   Can you explain how that will help the iSeries to place documents on the Linux server?   Tom
    125,585 pointsBadges:
    report
  • brydell
    If your quote had gone on a bit... "The trick is to ...". I was assuming that you can do a similar NFS-mount from the Linux box to the iSeries, where you include an iSeries-uid in the mount command. Then the authorisation uses the normal iSeries authorisation.  Was my thinking .... As I started out saying, I know nothing about the inner workings of the iSeries, so I am probably wrong in my assumption. By the sound of your remark, I was. Bengt
    560 pointsBadges:
    report
  • TomLiotta
    I was assuming...   I've also been assuming, so we're in the same situation. A few more comments from bstars would sure help.   I understood the situation as being that the iSeries is currently placing ducuments out onto a Windows directory ("...(it is currently shared on a windows machine)") and that the target is going to be changed to point to a Linux-hosted directory. Essentially the iSeries is simply going to put the documents that it creates or processes on a Linux system rather than the current Windows system.   The problem would then be in knowing the method whereby the iSeries would communicate with Linux instead of Windows.   So, some clarification from the OP could be helpful.   Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following