tech:linux_server_new_drive
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| tech:linux_server_new_drive [2026/09/29 19:34] – Added Section for SMB and minor updates katsimbris | tech:linux_server_new_drive [2026/10/01 16:33] (current) – add timeout katsimbris | ||
|---|---|---|---|
| Line 186: | Line 186: | ||
| <code bash> | <code bash> | ||
| - | echo ' | + | echo ' |
| </ | </ | ||
| Line 192: | Line 192: | ||
| This prevents a failed, disconnected, | This prevents a failed, disconnected, | ||
| + | |||
| + | '' | ||
| + | |||
| + | The combination: | ||
| + | |||
| + | < | ||
| + | nofail, | ||
| + | </ | ||
| + | |||
| + | means that Ubuntu will give the drive up to 60 seconds to appear, but will still continue booting if the drive is missing or unavailable. | ||
| The entry follows this format: | The entry follows this format: | ||
| < | < | ||
| - | UUID=FILESYSTEM-UUID /mnt/NAME ext4 defaults, | + | UUID=FILESYSTEM-UUID /mnt/NAME ext4 defaults, |
| </ | </ | ||
| Line 202: | Line 212: | ||
| < | < | ||
| - | UUID=a28ee7c4-9f5a-468a-a7aa-c82acdb2c798 /mnt/media8 ext4 defaults, | + | UUID=a28ee7c4-9f5a-468a-a7aa-c82acdb2c798 /mnt/media8 ext4 defaults, |
| </ | </ | ||
| - | ===== 9. Reload systemd ===== | + | ===== 9. Reload systemd |
| After changing ''/ | After changing ''/ | ||
| Line 211: | Line 221: | ||
| <code bash> | <code bash> | ||
| sudo systemctl daemon-reload | sudo systemctl daemon-reload | ||
| + | </ | ||
| + | |||
| + | Validate the '' | ||
| + | |||
| + | <code bash> | ||
| + | sudo findmnt --verify --verbose | ||
| + | </ | ||
| + | |||
| + | The important result is that there are no parse errors or errors. | ||
| + | |||
| + | Warnings may still appear for certain filesystem types or the swap file and do not necessarily indicate an invalid '' | ||
| + | |||
| + | For a media drive using the recommended settings, '' | ||
| + | |||
| + | < | ||
| + | userspace options: nofail, | ||
| </ | </ | ||
| Line 260: | Line 286: | ||
| < | < | ||
| [media8] | [media8] | ||
| - | path = / | + | path = / |
| - | | + | browseable = yes |
| - | | + | read only = no |
| - | | + | valid users = mike |
| - | | + | force group = media |
| - | | + | create mask = 0664 |
| - | | + | directory mask = 0775 |
| </ | </ | ||
| Line 273: | Line 299: | ||
| <code bash> | <code bash> | ||
| sudo tee -a / | sudo tee -a / | ||
| - | |||
| [media8] | [media8] | ||
| - | path = / | + | path = / |
| - | | + | browseable = yes |
| - | | + | read only = no |
| - | | + | valid users = mike |
| - | | + | force group = media |
| - | | + | create mask = 0664 |
| - | | + | directory mask = 0775 |
| EOF | EOF | ||
| </ | </ | ||
| Line 369: | Line 394: | ||
| <code bash> | <code bash> | ||
| sudo blkid /dev/sdi2 | sudo blkid /dev/sdi2 | ||
| + | </ | ||
| + | |||
| + | Check that all expected media mounts are currently mounted: | ||
| + | |||
| + | <code bash> | ||
| + | for m in / | ||
| + | if mountpoint -q " | ||
| + | echo " | ||
| + | else | ||
| + | echo " | ||
| + | fi | ||
| + | done | ||
| + | </ | ||
| + | |||
| + | Validate ''/ | ||
| + | |||
| + | <code bash> | ||
| + | sudo findmnt --verify --verbose | ||
| </ | </ | ||
| Line 385: | Line 428: | ||
| ===== Important Notes ===== | ===== Important Notes ===== | ||
| - | * Never format a drive until its identity has been confirmed using its size, model, serial number, existing filesystem, and mount status. | + | |
| - | * Do not rely on names such as ''/ | + | * Do not rely on names such as ''/ |
| - | * Permanent mounts should therefore use filesystem UUIDs in ''/ | + | * Permanent mounts should therefore use filesystem UUIDs in ''/ |
| - | * All external/ | + | * All external/ |
| - | * SMB shares should be validated with '' | + | * External/ |
| + | * The recommended combination for media drives is '' | ||
| + | | ||
tech/linux_server_new_drive.txt · Last modified: by katsimbris
