LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-03-2024, 12:15 PM   #1
jeffshead
LQ Newbie
 
Registered: Feb 2022
Posts: 5

Rep: Reputation: 0
fstab - multiple remote folders to one mount point


I have a situation where I have multiple Windows servers on the same LAN. Each server has multiple folders containing ISO files. I want to mount all of those remote folders, containing the ISO's, to a single directory on a particular Linux server. I'm trying to have a single directory on this particular Linux server that contains all of the ISO's, from all of the other servers. Is this even possible?

I have tried using fstab with the following code but it does not work:

Code:
//192.168.1.150/c$/path/folder  /path/to/isofolder cifs ro,credentials=/root/.smbcredentialsa 0 0
//192.168.1.155/c$/path/folder  /path/to/isofolder cifs ro,credentials=/root/.smbcredentialsb 0 0
However, it works if I comment out either of the lines so that there is only one folder being mounted to that Linux directory.

Last edited by jeffshead; 03-03-2024 at 12:16 PM.
 
Old 03-03-2024, 12:54 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898
There are a few ways to join directories/filesystems together but not sure how well it will work with remote filesystems. I would try overlayfs.

https://wiki.archlinux.org/title/Overlay_filesystem

Assuming you are using a systemd based distribution you could write a service to overlay after the network is up and the shares are mounted.
 
Old 03-03-2024, 06:59 PM   #3
mw.decavia
Member
 
Registered: Feb 2024
Distribution: Slackware64-15 & Afterstep , oh my
Posts: 78

Rep: Reputation: 8
Thank you for your question, it gave me something to think about.

Perhaps overlayfs will suit your needs, but if it does not, how about this idea?

- a script that mounts each remote share to a separate subdirectory, then reads the directory of the share it just mounted, and adds each iso file as a symlink in one single master directory. Anyone looking at that master directory would see all the iso files.

Of course you would need to deal with file names duplicated across shares. And to update added/removed iso files.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian 11 revoked mount-point privileges and created second mount-point with privileges sheetrock Debian 8 09-17-2023 02:06 PM
redirecting folders to a separate mount point in /etc/fstab etortola Linux - Server 1 06-20-2009 09:47 AM
puppy+grub saves ram installed mount point as HD install mount point agualust Linux - Newbie 0 04-10-2009 11:23 AM
mount NFS to mount point then share out the mount point ionic_slim Linux - Networking 2 04-20-2008 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:03 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration