February 25, 201610 yr Hey, is there a easy way to create a btrfs filesystem on a USB 3.0 Harddrive and automount it whenever its pluged in so crashplan can Backup, lets say Disk 1 ,whenever i plug in Backup-Disk 1 (incrementally). Currently my USB HDD only shows up as /dev/sdd with 0 Bytes of space (its not yet formated).
February 25, 201610 yr See here for a start. If you want to use it inside a container, you have to restart the Docker service after mounting. This can be accomplished by this script: #!/bin/bash PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin ## Available variables: # AVAIL : available space # USED : used space # SIZE : partition size # SERIAL : disk serial number # ACTION : if mounting, ADD; if unmounting, REMOVE # MOUNTPOINT : where the partition is mounted # FSTYPE : partition filesystem # LABEL : partition label # DEVICE : partition device, e.g /dev/sda1 # OWNER : "udev" if executed by UDEV, otherwise "user" # PROG_NAME : program name of this script # LOGFILE : log file for this script case $ACTION in 'ADD' ) /etc/rc.d/rc.docker restart echo "Added" ;; 'REMOVE' ) /etc/rc.d/rc.docker stop sleep 15 && /etc/rc.d/rc.docker start & echo "Removed" ;; esac
February 25, 201610 yr Author That Plugin scared me away cause i feared i had to do my own script (im a Windows Guy). I tried it out and it actualy sees the drive (by Model Number), and after smashing my head against the table i also found the settings to enable the destructive mode Sry for the stupid question, i was paralised by the scripts... Thanks for the autorestart srcipt
February 26, 201610 yr That Plugin scared me away cause i feared i had to do my own script (im a Windows Guy). I tried it out and it actualy sees the drive (by Model Number), and after smashing my head against the table i also found the settings to enable the destructive mode Sry for the stupid question, i was paralised by the scripts... Thanks for the autorestart srcipt Have it being successful? I'll add it to the CrashPlan OP.
Archived
This topic is now archived and is closed to further replies.