exFat on linux

make sure exfat fuse and utils are installed on the system

emerge -av sys-fs/exfat-utils sys-fs/fuse-exfat sys-fs/dosfstools

exFAT seems not handle well the switches -pgo that relate to permissions. When using standard switches -avgh, it will trigger errors
rsync: mkstemp “/run/media/3461-3338/ki.txt.ws6eA5” failed: Function not implemented (38)

Instead when coping use the following flags

rsync -rltDv [SRC] [DESTINATION]

Create partitions with parted to look something like

GNU Parted 3.2
Using /dev/sdf
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: Multiple Card Reader (scsi)
Disk /dev/sdf: 64.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 64.0GB 64.0GB primary fat32 lba

Create vfat file system with:

mkfs.vfat -F 32 /dev/sdX1

Dynamic DNS

There are few free dynamic DNS options such as

  • dnsdynamic.org
  • freedns.afraid.org
  • ydns.eu
  • dtdns.com
  • duckdns.org
  • noip.com

Install ddclient.

emerge -av net-dns/ddclient

Let’s focus on freedns.afraid.org. Open an account and pick a domain name.

Prepare config file

nano -w /etc/ddclient/ddclient.conf

Enter information on the subdomain name you just created.

daemon=3600
syslog=yes
protocol=freedns
use=if, if=eth0
ssl=yes
use=web, web=myip.dnsomatic.com
server=freedns.afraid.org
login=userID
password='password'
XXXXXX.mooo.com

Start and add ddclient to boot

/etc/init.d/ddclient start
rc-update add ddclient default

Alternatively you could use cron job with url given at http://freedns.afraid.org/dynamic/

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin

0,5,10,15,20,25,30,35,40,45,50,55 * * * * sleep 34 ; wget -O - http://freedns.afraid.org/dynamic/update.php?aXXXXXXXXXXXXXXXXXXXXXX >> /tmp/freedns_XXXXX_mooo_com.log 2>&1 &

smartmon configuration


emerge -av sys-apps/smartmontools

add to init
rc-update add smartd default

nano -w /etc/smartd.conf

# DEVICESCAN For all disks with SMART capabilities.
#
# -o off Turn off automatic running of offline tests. An offline test
# is a test which may degrade performance.
#
# -n standby Do not spin up the disk for the periodic 30 minute (default)
# SMART status polling, instead wait until the disk is active
# again and poll it then.
#
# -W 2 Report temperature changes of at least 2 degrees celsius since
# the last reading. Also report if a new min/max temperature is
# detected.
#
# -S on Auto save attributes such as how long the disk has been powered
# on, min and max disk temperature.
#
# -s (L/../.[02468]/1/04|S/../.[13579]/1/04)
# '-------a--------' '--------b-------'
#
# a: Long test on even monday mornings at 04:00
# b: Short test on uneven monday mornings at 04:00

DEVICESCAN -o off -n standby -W 2 -S on -s (L/../.[02468]/1/04|S/../.[13579]/1/04)