Announcement

Collapse
No announcement yet.

Stopping USB drives

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Stopping USB drives

    There is a problem, I noticed, which came along with the update to KUBUNTU 13.10:
    Before 13.10, a USB drive, which was selected to remove safely in Dolphin, was removed from the device tree and was spinning down (stopping).
    Now with KUBUNTU 13.10, the drive does neither disappear from the device tree in Dolphin, nor does it spin down.
    Since many people make their backups on USB drives and want to remove them savely, this is quite annoying, you always have to shutdown the system first to remove the drive.
    After many unsuccessfull attemps with hdparm, I finally found a workaround:

    sudo sdparm --readonly --command=stop /dev/sdd

    with sdd as your USB device you want to spin down.

    It would be nice, if KUBUNTU would spin down the drives automatically when chosen for save removing, just as before.

    #2
    At here, the USB devices are behaving as with the Raring/KDE 4.10 - earlier: http://www.kubuntuforums.net/showthr...-back!-Grrrrrr


    It would be nice...
    You may want to file a wish/bug report against the Ubuntu / KDE USB handling...
    A good place to start: Topic: Top 20 Kubuntu FAQs & Answers
    Searching FAQ's: Google Search 'FAQ from Kubuntuforums'

    Comment


      #3
      Thanks for the other thread.
      Could you please give me a link or forum's path, where I can file a wish/bug report against the Ubuntu / KDE USB handling, couldn't find anything here in the forum.
      The best solution would be if Dolphin would have the following three entries in the context menue for each USB device:
      - start (spin up) and mount device,
      - unmount device,
      - unmount and stop (spin down) device (save remove).

      Comment


        #4
        The KDE has the 'Brainstorm': http://forum.kde.org/viewforum.php?f=83

        The Dolphin has own forum: http://forum.kde.org/viewforum.php?f=222

        It seems the Ubuntu is closing down it's own 'brainstorm': http://www.omgubuntu.co.uk/2013/05/u...o-get-the-boot
        A good place to start: Topic: Top 20 Kubuntu FAQs & Answers
        Searching FAQ's: Google Search 'FAQ from Kubuntuforums'

        Comment


          #5
          Here is a shell script that works for me. I got it from the Linux Mint forum IIRC. I made a launcher for it and the launcher resides in my panel. Rename the file with an extension of .sh and make it executable.
          Attached Files

          Comment


            #6
            The problem is not the unmounting but the missing spinning down (stopping the motor).
            When you hear the motor spinning down, you know that the drive can savely be removed.

            Comment


              #7
              The script I posted completely shuts down the drive, not just dismount it.

              Comment


                #8
                Thanks, you are right, the script works fine.
                The script is based mainly on the two commands:
                udisks --unmount $partition
                udisks --detach ${device[$index-1]}
                The manpages says that detach would also turn off the power of the usb port, which is nice if you want to remove the drive.

                Comment


                  #9
                  Here in Kubuntu 12.04 I have used the command "udisks --detach /dev/sdc" method for some time to safely disconnect my USB external drive. You can actually hear the heads parking and then it stops spinning too.

                  Thanks Detonate, I will start using that script myself as it's more sophisticated than my one line command.
                  Last edited by Rod J; Nov 11, 2013, 09:56 PM.
                  Desktop PC: Intel Core-i5-4670 3.40Ghz, 16Gb Crucial ram, Asus H97-Plus MB, 128Gb Crucial SSD + 2Tb Seagate Barracuda 7200.14 HDD running Kubuntu 18.04 LTS and Kubuntu 14.04 LTS (on SSD).
                  Laptop: HP EliteBook 8460p Core-i5-2540M, 4Gb ram, Transcend 120Gb SSD, currently running Deepin 15.8 and Manjaro KDE 18.

                  Comment

                  Working...
                  X