As far as what I am looking for, I want to share the entire /mnt/sd2 R/W with everyone on the network. Well maybe require a PW to do R/W and no password for R/O if that is not too difficult. Thank you.
swap is not mounted, but rather enabled. you need to change the partition table to make sda1 have a different partition type, namely the linux swap type. Also after changing the partition type, you need to initialize the swap space, using mkswap
Not entirely sure what commands you've run but here's a quick 'n dirty solution (yes, it's not the safest solution around but it works fine). I reserve the right to have included typos
=== Partitioning ===
Partition your HDD with two slices, one for swap and one for storage (this will nuke anything that's currently on the HDD) and make sure to umount any file systems before continuing.
fdisk /dev/sda (based on version 2.34)
Print all partitions on the storage device by typing p
Delete all partitions using d until you have no partitions left by verifying using p
Create a GPT partition table using g
If it asks whether you want to clear/delete any Windows related information (such as NTFS) select yes
Create a new partition using n
For ending sector/size type +1G (this will create a parition with 1 gigabyte in size)
Change partition type to 19 by typing t (Linux Swap)
Allocate the rest of your storage device by typing n again, this time you don't need to change any of the values.
Verify that your partition table looks sane with p
Exit and write your changes by typing w
=== Creating filesystems ===
Create swap by using the command mkswap /dev/sda1
Create either ext4 or btrfs (you need to have the appropriate packages installed)
ext4: mkfs.ext4 /dev/sda2
Packages: e2fsprogs swap-utils (kernel module is already included)
btrfs: mkfs.btrfs /dev/sda2
Packages: btrfs-progs (will also pull in the kernel module)
=== Enable auto mount of filesystem and swap ===
Install package block-mount
Change so all anon and auto values in /etc/config/fstab says 1 instead of 0 using your editor of choice. nano (package) is a good idea if you aren't used to vi.
=== Setup Samba 4.x (this will not sync with the web frontend) ===
Install samba package
Stop and disable samba
/etc/init.d/samba stop
/etc/init.d/samba disable
Create necessary directories for Samba (smbd) to run
Put this in /etc/samba/smb4.conf (clear if anything is in it)
[global]
workgroup = homegroup
server string = My NAS Box
reset on zero vc = yes
bind interfaces only = true
interfaces = br-lan
load printers = no
disable spoolss = yes
printing = bsd
printcap name = /dev/null
unix extensions = no
use sendfile = yes
syslog = 2
smb encrypt = disabled
smb passwd file = /etc/samba/smbpasswd
printable = no
passdb backend = smbpasswd
guest account = root
null passwords = yes
map to guest = Bad User
enable core files = no
encrypt passwords = true
deadtime = 15
veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/
delete veto files = yes
smb passwd file = /etc/samba/smbpasswd
[exthdd]
comment = My External HDD
path = /mnt/sda2/share
public = yes
guest ok = yes
writable = yes
write list = root
browseable = yes
Create a Samba user that matches root account on router including password pdbedit -a -u root
=== Misc ===
Reboot router to make the sure swap and partition mounts
You can verify this by using free and df -h
Create the directory which Samba will share and set permissions mkdir /mnt/sda2/share chmod 777 /mnt/sda2/share
Start smbd manually and verify that it runs (use top) smbd -D -s /etc/samba/smb4.conf
Verify that Samba shares are accessable
On Windows: Run --> \\<ip-to-your-router> ie \\192.168.1.1
Enter "exthdd" and try to create a directory or copy a file
Once that's verified working you can autostart smbd by adding this to /etc/rc.localbeforeexit 0 line smbd -D -s /etc/samba/smb4.conf
And Kodi is working off an OTA connected to the firestick with USB storage at the moment. So I'll try to finalize the server next. Thanks for the detailed guide !!!!!