Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Ktorrent stalls if left on its own

  1. #1
    Join Date
    Mar 2009
    Location
    Bangkok
    Posts
    431

    Default Ktorrent stalls if left on its own

    I've noticed this weird behavior where kTorrent would just stall downloading stuff if left on its own for a few hours. Once you activate kTorrent window from the panel it just gets on with the job, changing status from "stalled" to "downloading" in a few seconds.

    Could it have something to do with the external disk I'm downloading on (some of the downloads, not all) being physically different one and connected via usb but mounted in a home directory?

    I suspect this because Windows machine connected via samba also loses connection after a while as if there's some "time expiration" set on mounting drives into home.

    Here is the fstab line for the suspected mount:

    /dev/disk/by-id/usb-Seagate_FreeAgentDesktop_3QK0A0N7-0:0-part1 /home/stan/Seagate ext2 acl,user_xattr 1 2

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,734
    Blog Entries
    20

    Default Re: Ktorrent stalls if left on its own

    Could be HD spin down but I would have though that shouldn't happen if it's in use.

    Or what about powersave/screensave settings

    I would have thought involving Samba in any torrent downloads was typically a good idea, but I don't use Samba. I do run torrents on a sever with a remote machine via ssh -X, and have no issue. Quite different I know.
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3
    Join Date
    Mar 2009
    Location
    Bangkok
    Posts
    431

    Default Re: Ktorrent stalls if left on its own

    Oh, yeah, the HD "spin down" is what I want to hear more about. I suppose torrent download CAN put it out of use if there's no activity for a while.

    I have another external HD connected via USB that seems to display "spin down" effect or something when mounted but I have commented it out from fstab altogether. When it's mounted it could take half a minute for Delphin to display itself while I can really hear the disk being activated.

    What is this "spin down" effect afterall?



    Samba is not involved in any downloads, afaik, it's just that I noticed that when its down, ktorrent is down, too. Need more investigation on this connection, though.

    Just a casual observation, the only connecting point for me is the status of the mounted disk. If ktorrent things it's down, samba, I suspect, thinks its down, too.

  4. #4
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,734
    Blog Entries
    20

    Default Re: Ktorrent stalls if left on its own

    Spin down allows the HDD to stop working but AFAIK it doesn't unmount it.
    I don't know enough about this subject to start advising you.
    I do know you shouldn't need USB drives in fstab though!

    hdparm; is what is involved
    man hdparm; in a terminal will give you the manual
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  5. #5
    Join Date
    Mar 2009
    Location
    Bangkok
    Posts
    431

    Default Re: Ktorrent stalls if left on its own

    I unmounted and removed one external disk from fstab, the one that was audibly spinning down and up, and the issue has gone away.

    Should an external drive be in fstab at all? I've heard "it shouldn't" a few times but it's a pain in the ass to manually mount it after every boot and I was caught a million times firing off ktorrent, or even simply clicking on a torrent file in my browser, and then getting an endless stream of "cannot locate files" errors because I forgot to mount the drive first.

    By "forgot to mount" I mean click on it in notification icon or Dolphin, not necessarily mount it from terminal.

    My solution was to put it in fstab, if there's something else I would like to hear it.

  6. #6
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,734
    Blog Entries
    20

    Default Re: Ktorrent stalls if left on its own

    It should not be in fstab
    Change the settings in kde to auto mount
    System Settings > Removable Devices, check to auto mount
    http://dl.dropbox.com/u/10573557/SUS...automount.jpeg
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  7. #7
    Join Date
    Mar 2009
    Location
    Bangkok
    Posts
    431

    Default Re: Ktorrent stalls if left on its own

    Ok, but that mounts it into /media into a generic "disk-1" directory, with "disk" being reserved for a windows partition on the same external disk that I have no intention of auto mounting.

    Is there a way to always mount it into a designated folder in "home" instead?

  8. #8
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,734
    Blog Entries
    20

    Default Re: Ktorrent stalls if left on its own

    Give the Disk a Label (Volume Label)
    I use Parted Magic

    For example one of my USB HDD's is ELEMENTS
    And it always mounts in /media/ELEMENTS
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  9. #9
    Join Date
    Mar 2009
    Location
    Bangkok
    Posts
    431

    Default Re: Ktorrent stalls if left on its own

    I understand neither Gparted nor Suse's partitioner can assign labels to disks. Ok, downloading Parted Magic now, but shouldn't there be a way to automount the disk exactly where I want it to?

    Fstab did that for me.

    If the disk mounts outside home directory there needs to a separate Samba share and Linux machines on the network need a separate fuse script to access it. No big deal but not the most elegant solution either.

    I would even consider writing a small script to mount it into home and then run the script at start up if there's no way to tinker with automount.

    Having a volume label sounds like a useful idea regardless, thanks.

  10. #10
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,734
    Blog Entries
    20

    Default Re: Ktorrent stalls if left on its own

    Stan - I don't know enough about this. You need someone like @hcvv
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •