Aderalia Posted February 25, 2016 Share Posted February 25, 2016 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). Quote Link to comment
trurl Posted February 25, 2016 Share Posted February 25, 2016 See here for a start. Quote Link to comment
gfjardim Posted February 25, 2016 Share Posted February 25, 2016 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 Quote Link to comment
Aderalia Posted February 25, 2016 Author Share Posted February 25, 2016 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 Quote Link to comment
gfjardim Posted February 26, 2016 Share Posted February 26, 2016 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.