script post init

script post init

  • .

    Votes: 0 0.0%
  • .

    Votes: 0 0.0%

  • Total voters
    0
Status
Not open for further replies.

cozd74

Dabbler
Joined
May 31, 2018
Messages
45
on my freenas I connected a USB disk to backup the data of my volume, I have provided a startup script to mount the disk on the backup_usb folder at startup but it does not work although the script I have scheduled it as a task Postinit
why?
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
Because the script contains the line
Code:
umount -f /backup_usb/


Ok ok, We are not psychic. We need a LOT more information like the script and the absolute path to the mount point, FULL hardware specs including model numbers and any other information that may be relevent.
 

cozd74

Dabbler
Joined
May 31, 2018
Messages
45
Because the script contains the line
Code:
umount -f /backup_usb/


Ok ok, We are not psychic. We need a LOT more information like the script and the absolute path to the mount point, FULL hardware specs including model numbers and any other information that may be relevent.

sorry! my script is:

#rwxrwxrwx

### /bin/sh
#!/usr/local/bin/bash

kldload fuse

ntfs-3g /dev/da1p2 /mnt/myVolume/backup_usb1
echo "disco usb1-da1p2 montato su /mnt/myVolume/backup_usb1"
ll "/mnt/myVolume/backup_usb1"


my disk is a Verbatin USB (ver 3) disk, capacity 3TB (da1 in figure) :

upload_2018-7-3_18-40-45.png


my Task is:

upload_2018-7-3_18-41-28.png


thanks!
D.
 
Status
Not open for further replies.
Top