Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
app-notes:samba-server [2026/02/24 12:11] – [1. Set up the LXC Contianer] grayapp-notes:samba-server [2026/02/25 09:56] (current) – [Integrating external storage into the container system] gray
Line 139: Line 139:
 </konsole> </konsole>
  
-Simply add these four entries to the lxc config file. Please make sure to fill them in with your own parameters.Restart the LXC service or router for these changes to take effect.+Simply add these four entries to the LXC configuration file. Please ensure that you fill them in with your own parameters. ''Restart the router'' for these changes to take effect.
  
 Now the USB device can be connected to the container and used. Now the USB device can be connected to the container and used.
Line 173: Line 173:
 samba-client samba-client
 cifs-utils cifs-utils
 +ntfs-3g
 +fuse-exfat
 </code> </code>
  
Line 229: Line 231:
  
 The whole thing is integrated via a cron job, so that it is always available when the router is restarted. The whole thing is integrated via a cron job, so that it is always available when the router is restarted.
 +
 +Queries with which file system the external storage was formatted.
 +
 +<konsole>
 +~ $ blkid /dev/sda1
 +/dev/sda1: UUID="3473-C3CA" TYPE="vfat"
 +~ $ 
 +</konsole>
 +
  
 First, we create a script file called ''“$ vi samba_release.sh"''. First, we create a script file called ''“$ vi samba_release.sh"''.
  
 +The entry for the ''vfat'' file system:
  
 <code> <code>
 mknod /dev/sda1 b 8 1 mknod /dev/sda1 b 8 1
 mount -t vfat /dev/sda1 /mnt/home/data -o uid=1000,gid=1000,umask=000 mount -t vfat /dev/sda1 /mnt/home/data -o uid=1000,gid=1000,umask=000
 +</code>
 +
 +The entry for the ''exfat'' file system:
 +
 +<code>
 +mknod /dev/sda1 b 8 1
 +mount -t exfat /dev/sda1 /mnt/home/data -o uid=1000,gid=1000,umask=000
 </code> </code>
  
Line 245: Line 264:
 </code> </code>
  
-On new Linux systems, ''“ntfs3”'' can also be used as a mount point. 
-                 
 We still need to change the permissions for this file so that it is executable. We still need to change the permissions for this file so that it is executable.
-''chmod a+x samba_release.sh”''+''“chmod a+x samba_release.sh”''
  
 To test it, you can now simply run this file. To test it, you can now simply run this file.
Line 254: Line 271:
  
 <konsole> <konsole>
- +@reboot /root/samba_release.sh 
-* * * * *           /root/samba_release.sh+* * * * * /root/samba_release.sh
 </konsole> </konsole>
  
Line 261: Line 278:
 The crond service must still be stored as a service in alpineOS so that it can be called up. The crond service must still be stored as a service in alpineOS so that it can be called up.
 ''"$ rc-update add crond"'' ''"$ rc-update add crond"''
 +
 +After completing the setup, please reboot the router again so that all settings and changes are applied by the Linux system.
  
 ---- ----
Line 267: Line 286:
  
 <code> <code>
-sudo mount -t cifs -o user=loidl,gid=1000,uid=1000 //192.168.1.100/data /mnt/austausch+mount -t cifs -o user=loidl,gid=1000,uid=1000 //192.168.1.100/data /mnt/home/exchange
 </code> </code>