ISOs automounting in samba

Ideas, discussions about all topics - no matter how brilliant or stupid they are. Place for hobby-psychatrists, hobby-architects, hobby-scientists, hobby-whatever...
Post Reply
gilthanaz
Site Admin
Posts: 443
Joined: Fri Aug 29, 2003 9:29 pm
Contact:

ISOs automounting in samba

Post by gilthanaz »

[Problem]
Often in the LAN, its needed to mount ISOs into a samba share on a linux server. It would be awesome to automatically do this :)



[Idea]
1. ISOs are created/downloaded/whatever
2. The ISOs are put automatically into a folder
3. A script/daemon scans this folder periodically(?) and:
* creates a mountpoint
* mounts the ISO into it
* adds necessary share information into smb.conf
* makes samba reload its config to make it available
4. Fun!


Additional:
* Automatically remove mount-point/share if ISO is moved out of folder?
* Error correction, as in some ISOs need different flags
-> parse error and try different method before throwing a real error?
* Cleanup option
-> to remove all mountpoints and smb config blocks
-> maybe with tags in the config file ( <ISOs> </ISOs> as comments)

Edit:
Maybe better, have ONE share so leave the smb config changes out - maybe called 'Mounted_ISOs' or something, and mount the ISOs in subdirectories there?
Post Reply