This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| app-notes:samba-server [2026/02/16 16:53] – [Integrating external storage into the container system] gray | app-notes:samba-server [2026/02/25 09:56] (current) – [Integrating external storage into the container system] gray | ||
|---|---|---|---|
| Line 34: | Line 34: | ||
| From a Jenkins server you get the current image for the container | From a Jenkins server you get the current image for the container | ||
| - | * Jenkins Server Page image-alpine '' | + | * Jenkins Server Page image-alpine '' |
| The "'' | The "'' | ||
| Line 125: | Line 125: | ||
| With this information, | With this information, | ||
| + | |||
| + | ** | ||
| + | <WRAP center round important 90%> | ||
| + | This change is made directly in the router software. When updating the router software, this entry must be made again because it is not part of the official software. | ||
| + | </ | ||
| + | ** | ||
| < | < | ||
| Line 133: | Line 139: | ||
| </ | </ | ||
| - | Simply add these four entries to the lxc config | + | Simply add these four entries to the LXC configuration |
| 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 167: | Line 173: | ||
| samba-client | samba-client | ||
| cifs-utils | cifs-utils | ||
| + | ntfs-3g | ||
| + | fuse-exfat | ||
| </ | </ | ||
| Line 223: | 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. | ||
| + | |||
| + | < | ||
| + | ~ $ blkid /dev/sda1 | ||
| + | /dev/sda1: UUID=" | ||
| + | ~ $ | ||
| + | </ | ||
| + | |||
| First, we create a script file called '' | First, we create a script file called '' | ||
| + | The entry for the '' | ||
| < | < | ||
| mknod /dev/sda1 b 8 1 | mknod /dev/sda1 b 8 1 | ||
| mount -t vfat /dev/sda1 / | mount -t vfat /dev/sda1 / | ||
| + | </ | ||
| + | |||
| + | The entry for the '' | ||
| + | |||
| + | < | ||
| + | mknod /dev/sda1 b 8 1 | ||
| + | mount -t exfat /dev/sda1 / | ||
| + | </ | ||
| + | |||
| + | For the '' | ||
| + | |||
| + | < | ||
| + | mknod /dev/sda1 b 8 1 | ||
| + | mount -t ntfs-3g /dev/sda1 / | ||
| </ | </ | ||
| 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. | ||
| - | '' | + | '' |
| To test it, you can now simply run this file. | To test it, you can now simply run this file. | ||
| Line 239: | Line 271: | ||
| < | < | ||
| - | + | @reboot / | |
| - | * * * * * | + | * * * * * / |
| </ | </ | ||
| Line 246: | 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. | ||
| ''" | ''" | ||
| + | |||
| + | After completing the setup, please reboot the router again so that all settings and changes are applied by the Linux system. | ||
| ---- | ---- | ||
| Line 252: | Line 286: | ||
| < | < | ||
| - | sudo mount -t cifs -o user=loidl, | + | mount -t cifs -o user=loidl, |
| </ | </ | ||