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:52] – [Integrating external storage into the container system] grayapp-notes:samba-server [2026/02/25 09:56] (current) – [Integrating external storage into the container system] gray
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 269: 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>