[SOLVED] Transmission: how to wait for USB storage?

M66B

Mitglied
Mitglied seit
17 Feb 2010
Beiträge
225
Punkte für Reaktionen
0
Punkte
0
I get
Code:
Starting transmission daemon... 
'/var/media/ftp/uData/bittorrent' doesn't exist. Creating directory.
What is the best way to wait for availability of USB storage before starting a service like transmission?
 
Zuletzt bearbeitet:
I do not know, which startlevel has transmission, but I assume, it has 20 or 40, like all other packages. In this case your external medium shold be already mounted, if transmission starts.
1. Do you use automount patch or FREETZMOUNT?
2. What is ../ftp/uData/.. ? Do you use LABEL under FREETZMOUNT and your external medium is labeled as "uDATA"?
3. Could you post your .config please?

Best regards,
 
Thanks for your response!
  1. I use FREETZMOUNT
  2. Yes I use the 'label' option and the disk is named uData
  3. See below
Code:
FREETZ_HAVE_DOT_CONFIG=y
FREETZ_AVM_VERSION_7270_04_80=y
FREETZ_TYPE_FON_WLAN_7270=y
FREETZ_TYPE_FON_WLAN_7270_16MB=y
FREETZ_AVM_VERSION_STRING="7270_04.80"
FREETZ_TYPE_LANG_EN=y
FREETZ_TYPE_LANG_STRING="en"
FREETZ_TYPE_STRING="7270"
FREETZ_INSTALL_BASE=y
FREETZ_REPLACE_BUSYBOX=y
FREETZ_SHOW_ADVANCED=y
FREETZ_REPLACE_KERNEL_AVAILABLE=y
FREETZ_REPLACE_KERNEL=y
FREETZ_TARGET_IPV6_SUPPORT=y
FREETZ_TARGET_REF="8mb_26"
FREETZ_KERNEL_REF="8mb_26"
FREETZ_KERNEL_LAYOUT="ur8"
FREETZ_KERNEL_MTD_SIZE=246
FREETZ_HAS_PHONE=y
FREETZ_HAS_TAM=y
FREETZ_HAS_WLAN=y
FREETZ_HAS_USB_HOST=y
FREETZ_HAS_AVM_INETD=y
FREETZ_HAS_LIBSSL=y
FREETZ_LANG_EN=y
FREETZ_LANG_STRING="en"
FREETZ_PATCH_FREETZMOUNT=y
FREETZ_PATCH_RCFTPD=y
FREETZ_USBSTORAGE_AUTOMOUNT=y
FREETZ_AUTOMOUNT_EXT3=y
FREETZ_PATCH_MAXDEVCOUNT=y
FREETZ_REMOVE_ANNEX_B_FIRMWARE=y
FREETZ_REMOVE_DTRACE=y
FREETZ_PACKAGE_AICCU=y
FREETZ_PACKAGE_DNSMASQ=y
FREETZ_PACKAGE_DROPBEAR=y
FREETZ_PACKAGE_DROPBEAR_DISABLE_HOST_LOOKUP=y
FREETZ_PACKAGE_FUSE=y
FREETZ_PACKAGE_INETD=y
FREETZ_PACKAGE_NANO=y
FREETZ_PACKAGE_NANO_TINY=y
FREETZ_PACKAGE_NFS_UTILS=y
FREETZ_PACKAGE_PHP=y
FREETZ_PACKAGE_PORTMAP=y
FREETZ_PACKAGE_RADVD=y
FREETZ_PACKAGE_SAMBA=y
FREETZ_PACKAGE_NMBD=y
FREETZ_PACKAGE_TRANSMISSION=y
FREETZ_PACKAGE_TRANSMISSION_DAEMON=y
FREETZ_PACKAGE_TRANSMISSION_REMOTE=y
FREETZ_PACKAGE_TRANSMISSION_WEBINTERFACE=y
FREETZ_PACKAGE_VNSTAT=y
FREETZ_PACKAGE_VNSTAT_DAEMON=y
FREETZ_PACKAGE_VNSTAT_IMAGE=y
FREETZ_PACKAGE_XMAIL=y
FREETZ_PACKAGE_XMAIL_WITH_SSL=y
FREETZ_PACKAGE_AVM_FIREWALL=y
FREETZ_PACKAGE_AUTHORIZED_KEYS=y
FREETZ_PACKAGE_NFSD_CGI=y
FREETZ_PACKAGE_NHIPT=y
FREETZ_PACKAGE_IPTABLES=y
FREETZ_PACKAGE_IPTABLES_KERNEL_MODULES=y
FREETZ_MODULE_ip_conntrack=y
FREETZ_MODULE_ip_conntrack_ftp=y
FREETZ_MODULE_iptable_filter=y
FREETZ_MODULE_ip_tables=y
FREETZ_MODULE_ipt_iprange=y
FREETZ_MODULE_ipt_LOG=y
FREETZ_MODULE_ipt_REJECT=y
FREETZ_MODULE_x_tables=y
FREETZ_MODULE_xt_conntrack=y
FREETZ_MODULE_xt_multiport=y
FREETZ_MODULE_xt_state=y
FREETZ_MODULE_xt_tcpudp=y
FREETZ_MODULE_ip6_tables=y
FREETZ_MODULE_ip6table_filter=y
FREETZ_PACKAGE_IPTABLES_SHARED_LIBS=y
FREETZ_LIB_libipt_icmp=y
FREETZ_LIB_libipt_LOG=y
FREETZ_LIB_libipt_REJECT=y
FREETZ_LIB_libxt_conntrack=y
FREETZ_LIB_libxt_iprange=y
FREETZ_LIB_libxt_multiport=y
FREETZ_LIB_libxt_standard=y
FREETZ_LIB_libxt_state=y
FREETZ_LIB_libxt_tcp=y
FREETZ_LIB_libxt_udp=y
FREETZ_LIB_libip6t_icmp6=y
FREETZ_PACKAGE_PHPXMAIL=y
FREETZ_PACKAGE_RRDSTATS=y
FREETZ_PACKAGE_SYSLOGD_CGI=y
FREETZ_PACKAGE_TRANSMISSION_CGI=y
FREETZ_PACKAGE_VNSTAT_CGI=y
FREETZ_PACKAGE_LDD=y
FREETZ_PACKAGE_LSOF=y
FREETZ_PACKAGE_LTRACE=y
FREETZ_PACKAGE_STRACE=y
FREETZ_PACKAGE_USBUTILS=y
FREETZ_PACKAGE_USBUTILS_IDS=y
FREETZ_PACKAGE_ASTERISK=y
FREETZ_PACKAGE_CHAN_CAPI=y
FREETZ_PACKAGE_E2FSPROGS=y
FREETZ_PACKAGE_E2FSPROGS_STATIC=y
FREETZ_PACKAGE_E2FSPROGS_E2FSCK=y
FREETZ_PACKAGE_E2FSPROGS_BLKID=y
FREETZ_PACKAGE_FSTYP=y
FREETZ_PACKAGE_RRDTOOL=y
FREETZ_PACKAGE_RSYNC=y
FREETZ_PACKAGE_S3FSLITE=y
FREETZ_PACKAGE_S3FSLITE_DEBUG=y
FREETZ_PACKAGE_SQLITE=y
FREETZ_PACKAGE_TCP_WRAPPERS=y
FREETZ_PACKAGE_UNRAR=y
FREETZ_SHOW_UNSTABLE_PACKAGES=y
FREETZ_PACKAGE_HASERL=y
FREETZ_PACKAGE_MODCGI=y
FREETZ_DL_KERNEL_SITE="@AVM/fritz.box/fritzbox.fon_wlan_7270/x_misc/opensrc"
FREETZ_DL_KERNEL_SOURCE="fritzbox7270-source-files-04.80.tar.gz"
FREETZ_DL_KERNEL_SOURCE_MD5="bcd49b28a54293e1481b8170b07245e0"
FREETZ_DL_SITE="@AVM/fritz.box/fritzbox.fon_wlan_7270/firmware/english"
FREETZ_DL_SOURCE="FRITZ.Box_Fon_WLAN_7270_16.AnnexB.en-de-es-it-fr.54.04.81.image"
FREETZ_DL_SOURCE_MD5="a5f56166aa8ce2b9862e8e01db0e3c8d"
FREETZ_MOD_DL_NUM_SITES="5"
FREETZ_MOD_DL_SITE_1="http://freetz.3dfxatwork.de"
FREETZ_MOD_DL_SITE_2="http://freetz.wirsind.info"
FREETZ_MOD_DL_SITE_3="http://freetz.magenbrot.net"
FREETZ_MOD_DL_SITE_4=""
FREETZ_MOD_DL_SITE_5=""
FREETZ_SECURITY_LEVEL=0
FREETZ_VERBOSITY_LEVEL=2
FREETZ_FAVICON_NONE=y
FREETZ_CHECK_CHANGED=y
FREETZ_FAVICON_STRING="none"
FREETZ_SUBVERSION_STRING=y
FREETZ_DEVELOPER_VERSION_STRING=y
FREETZ_STYLE_COLORED=y
FREETZ_STYLE="colored"
FREETZ_USER_DEFINED_COMMENT=""
EXTERNAL_ENABLED=y
EXTERNAL_SERVICES=y
EXTERNAL_SERVICES_FREETZ=y
EXTERNAL_SERVICES_OWN=""
EXTERNAL_SUBDIRS=y
EXTERNAL_CREATEPAK=y
EXTERNAL_CUSTOM_DIR=y
EXTERNAL_CUSTOM_DIRNAME="/var/media/ftp/uFlash/external"
EXTERNAL_DIRECTORY="/var/media/ftp/uFlash/external"
EXTERNAL_OWN_FILES=""
EXTERNAL_FREETZ_PACKAGE_ASTERISK=y
EXTERNAL_FREETZ_PACKAGE_ASTERISK_CONFIGS=y
EXTERNAL_FREETZ_PACKAGE_ASTERISK_BINARY=y
EXTERNAL_FREETZ_PACKAGE_ASTERISK_MODULES=y
EXTERNAL_FREETZ_PACKAGE_ASTERISK_SOUNDS=y
EXTERNAL_FREETZ_PACKAGE_LDD=y
EXTERNAL_FREETZ_PACKAGE_LSOF=y
EXTERNAL_FREETZ_PACKAGE_LTRACE=y
EXTERNAL_FREETZ_PACKAGE_PHP=y
EXTERNAL_FREETZ_PACKAGE_RSYNC=y
EXTERNAL_FREETZ_PACKAGE_SQLITE=y
EXTERNAL_FREETZ_PACKAGE_STRACE=y
EXTERNAL_FREETZ_PACKAGE_UNRAR=y
EXTERNAL_FREETZ_LIB_libsqlite3=y
FREETZ_SQUASHFS_BLOCKSIZE_65536=y
FREETZ_BUSYBOX_AR=y
FREETZ_BUSYBOX_CHGRP=y
FREETZ_BUSYBOX_FUSER=y
FREETZ_BUSYBOX_INETD=y
FREETZ_BUSYBOX_IP=y
FREETZ_BUSYBOX_FEATURE_IP_ADDRESS=y
FREETZ_BUSYBOX_FEATURE_IP_LINK=y
FREETZ_BUSYBOX_FEATURE_IP_ROUTE=y
FREETZ_BUSYBOX_FEATURE_IP_TUNNEL=y
FREETZ_BUSYBOX_NICE=y
FREETZ_BUSYBOX_REALPATH=y
FREETZ_BUSYBOX_START_STOP_DAEMON=y
FREETZ_BUSYBOX_UNZIP=y
FREETZ_BUSYBOX_WGET=y
FREETZ_BUSYBOX_PING6=y
FREETZ_MODULE_ext3=y
FREETZ_MODULE_fuse=y
FREETZ_MODULE_jbd=y
FREETZ_MODULE_nls_cp437=y
FREETZ_MODULE_nls_iso8859_1=y
FREETZ_MODULE_mbcache=y
FREETZ_MODULE_ipv6=y
FREETZ_MODULE_sit=y
FREETZ_LIB_libcapi20=y
FREETZ_LIB_libcrypto=y
FREETZ_LIB_libssl=y
FREETZ_LIB_libz=y
FREETZ_LIB_libgcc_s=y
FREETZ_LIB_libfreetype=y
FREETZ_LIB_libart_lgpl_2=y
FREETZ_LIB_libjpeg=y
FREETZ_LIB_libpng12=y
FREETZ_LIB_libgd=y
FREETZ_LIB_libcurl=y
FREETZ_LIB_libelf=y
FREETZ_LIB_libevent=y
FREETZ_LIB_libfreetz=y
FREETZ_LIB_libfuse=y
FREETZ_LIB_libpcre=y
FREETZ_LIB_libpopt=y
FREETZ_LIB_libsqlite3=y
FREETZ_LIB_libusb=y
FREETZ_LIB_libncurses=y
FREETZ_SHARE_terminfo=y
FREETZ_SHARE_terminfo_ansi=y
FREETZ_SHARE_terminfo_gnome=y
FREETZ_SHARE_terminfo_konsole=y
FREETZ_SHARE_terminfo_linux=y
FREETZ_SHARE_terminfo_putty=y
FREETZ_SHARE_terminfo_rxvt=y
FREETZ_SHARE_terminfo_screen=y
FREETZ_SHARE_terminfo_screenMINUSw=y
FREETZ_SHARE_terminfo_sun=y
FREETZ_SHARE_terminfo_vt100=y
FREETZ_SHARE_terminfo_vt102=y
FREETZ_SHARE_terminfo_vt102MINUSnsgr=y
FREETZ_SHARE_terminfo_vt102MINUSw=y
FREETZ_SHARE_terminfo_vt200=y
FREETZ_SHARE_terminfo_vt220=y
FREETZ_SHARE_terminfo_vt52=y
FREETZ_SHARE_terminfo_xterm=y
FREETZ_SHARE_terminfo_xtermMINUScolor=y
FREETZ_SHARE_terminfo_xtermMINUSxfree86=y
FREETZ_LIB_ld_uClibc=y
FREETZ_LIB_libcrypt=y
FREETZ_LIB_libdl=y
FREETZ_LIB_libm=y
FREETZ_LIB_libnsl=y
FREETZ_LIB_libpthread=y
FREETZ_LIB_libresolv=y
FREETZ_LIB_librt=y
FREETZ_LIB_libuClibc=y
FREETZ_LIB_libutil=y
FREETZ_LIB_libuClibc__=y
FREETZ_LIB_libxml2=y
FREETZ_BUILD_TOOLCHAIN=y
FREETZ_TARGET_ARCH="mipsel"
FREETZ_TARGET_CROSS="mipsel-linux-uclibc-"
FREETZ_TARGET_MAKE_PATH="toolchain/target/bin"
FREETZ_TARGET_CFLAGS="-Os -pipe -march=4kc -Wa,--trap"
FREETZ_JLEVEL=2
FREETZ_KERNEL_CROSS="mipsel-unknown-linux-gnu-"
FREETZ_KERNEL_MAKE_PATH="toolchain/kernel/bin"
FREETZ_KERNEL_VERSION_2_6_19_2=y
FREETZ_KERNEL_VERSION="2.6.19.2"
FREETZ_TARGET_UCLIBC_VERSION_0_9_29=y
FREETZ_TARGET_COMPILER_GCC_4_2_4_UCLIBC_0_9_29=y
FREETZ_TARGET_GCC_VERSION="4.2.4"
FREETZ_TARGET_UCLIBC_VERSION="0.9.29"
FREETZ_TARGET_BINUTILS_VERSION="2.18"
FREETZ_TARGET_UCLIBC_CONFIG_MOD=y
FREETZ_TARGET_UCLIBC_REF="mod"
FREETZ_TARGET_GXX=y
FREETZ_TARGET_CCACHE=y
FREETZ_TARGET_LFS=y
FREETZ_KERNEL_COMPILER_GCC_3_4_6=y
FREETZ_KERNEL_GCC_VERSION="3.4.6"
FREETZ_KERNEL_BINUTILS_VERSION="2.17.50.0.17"
Externalized:
Code:
usr/bin/unrar
usr/bin/ldd
usr/bin/lsof
usr/bin/php-cgi
usr/bin/rsync
usr/bin/sqlite3
usr/lib/asterisk/sounds/*
usr/lib/asterisk/modules/*
usr/lib/freetz/libsqlite3.so.0.8.6
usr/sbin/strace
usr/sbin/asterisk
usr/sbin/ltrace
etc/asterisk/*
 
As workarround you can redefine transmission start option from "automatic" to "manual". Thereafter you should create two scripts on your media with names "autorun.sh" and "autoend.sh". These scripts should have execute permission. In autorun.sh you can start transmission with
Code:
/etc/init.d/rc.transmission start
and in autoend.sh you can stop it:
Code:
/etc/init.d/rc.transmission stop

But I can not understand, why you do have these start problems. Do you have the bittorent directory on your media?

Best regards,
 
The bittorrent directory is on a media, but Transmission itself isn't (not externalized).

I didn't had this problem before, but there have been not much changes (update to latest trunk and installed Asterisk external, but not using/starting it yet).

The workaround is a nice find, but I rather had the disks mounted before the services are being started (should they?).
 
BTW, this problem I have, seems to be related. This worked before too.
 
FREETZMOUNT mounts usualy all external media BEFORE rc-scripts of FREETZ packages were started. You are alone with this problem. Are you sure, that your media do not have errors and therefore can't be mounted correctly?

Best regards,
 
Yes, I am pretty sure, because the disk becomes available. XMail is waiting for it and then it starts:
Code:
Starting transmission daemon... 
'/var/media/ftp/uData/bittorrent' doesn't exist. Creating directory.

'/var/media/ftp/uData/bittorrent/config' doesn't exist. Creating directory.

'/var/media/ftp/uData/bittorrent/download' doesn't exist. Creating directory.

'/var/media/ftp/uData/bittorrent/download/incomplete' doesn't exist. Creating directory.

'/var/media/ftp/uData/bittorrent/download/completed' doesn't exist. Creating directory.
without password protection.. done.
Starting XMail SMTP/POP3 server ...Directory /var/media/ftp/uData/XMail not available at round 60 - sleeping
Directory /var/media/ftp/uData/XMail not available at round 59 - sleeping
done.
But I have to say this is new behavior too. I will check the disk for errors.

Maybe noteworthy is that swap and vnstat start correctly, but they depend on another media (memory stick).
 
The disk is okay (checked with e2fsck). I re-attached the disk to another port of the USB hub and now the reboot was fine (flashed latest trunk too). Maybe the hub is broken ...

I will set this topic to solved. Thanks for helping me.
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.