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/20 09:01] – [2. Adjust the LXC config so that the USB port can be used in the container.] 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 139: | 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 173: | Line 173: | ||
| samba-client | samba-client | ||
| cifs-utils | cifs-utils | ||
| + | ntfs-3g | ||
| + | fuse-exfat | ||
| </ | </ | ||
| 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. | ||
| + | |||
| + | < | ||
| + | ~ $ 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 245: | Line 271: | ||
| < | < | ||
| - | + | @reboot / | |
| - | * * * * * | + | * * * * * / |
| </ | </ | ||
| Line 252: | 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 258: | Line 286: | ||
| < | < | ||
| - | sudo mount -t cifs -o user=loidl, | + | mount -t cifs -o user=loidl, |
| </ | </ | ||