<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>270808</bug_id>
          
          <creation_ts>2011-04-13 03:34:42 +0000</creation_ts>
          <short_desc>External hard disks should be spun down when &apos;safely removed&apos;</short_desc>
          <delta_ts>2019-10-26 01:52:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-solid</product>
          <component>general</component>
          <version>5.44.0</version>
          <rep_platform>Fedora RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>usability</keywords>
          <priority>NOR</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Syam">get.sonic</reporter>
          <assigned_to name="Lukáš Tinkl">lukas</assigned_to>
          <cc>a.frankova.contact</cc>
    
    <cc>afiestas</cc>
    
    <cc>alivema4ever</cc>
    
    <cc>amrecio</cc>
    
    <cc>bberberov+kde</cc>
    
    <cc>chrno-sphered</cc>
    
    <cc>ckakman</cc>
    
    <cc>cpigat242</cc>
    
    <cc>Davidp2004</cc>
    
    <cc>dubvulture1963</cc>
    
    <cc>einlanzer</cc>
    
    <cc>epost.kde</cc>
    
    <cc>fademind</cc>
    
    <cc>filipfila.kde</cc>
    
    <cc>g11072813</cc>
    
    <cc>glutbugreports</cc>
    
    <cc>gordon.lack</cc>
    
    <cc>guanx.bac</cc>
    
    <cc>hapstad</cc>
    
    <cc>harrisonf100</cc>
    
    <cc>ict</cc>
    
    <cc>jc</cc>
    
    <cc>jeremy9856</cc>
    
    <cc>kcohar</cc>
    
    <cc>kde</cc>
    
    <cc>kdelibs-bugs-null</cc>
    
    <cc>kdeu</cc>
    
    <cc>lukas</cc>
    
    <cc>luminoso</cc>
    
    <cc>medzernik1</cc>
    
    <cc>mikzyth</cc>
    
    <cc>myriam</cc>
    
    <cc>nate</cc>
    
    <cc>noob</cc>
    
    <cc>null</cc>
    
    <cc>ottwolt</cc>
    
    <cc>proteus5</cc>
    
    <cc>rafaelsoaresbr</cc>
    
    <cc>stefan.bruens</cc>
    
    <cc>subdiff</cc>
    
    <cc>vindrg</cc>
          
          <cf_commitlink>https://commits.kde.org/solid/867f53608d3a5145e3380e8c1686f40be8f06c31</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1107421</commentid>
    <comment_count>0</comment_count>
    <who name="Syam">get.sonic</who>
    <bug_when>2011-04-13 03:34:42 +0000</bug_when>
    <thetext>Version:           4.6 (using KDE 4.6.1) 
OS:                Linux

I&apos;ve been using an external (USB) had disk with multiple partitions and always used &apos;safely remove&apos; from KDE device notifier (or Dolphin) to unmount all partitions and then disconnect the USB connection.
Recently, I&apos;ve noticed that the disk has developed errors, possibly due to removal before spin down.

On Windows, after I do a &apos;safely remove&apos;, the lamp on the HDD goes a little dim and the manual says that it&apos;s then safe to disconnect the drive.
On Linux, using the Palimpsest Disk Utility (http://library.gnome.org/users/palimpsest/ ), I can do a &apos;power down&apos; and the same dimming of the lamp is observed.

It&apos;d be great (and safe) if this would automatically be done when unmounting from KDE. Otherwise, it&apos;s a risk to disconnect the drive even after &apos;safely removing&apos; it.

Reproducible: Always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1220979</commentid>
    <comment_count>1</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2012-01-31 00:31:40 +0000</bug_when>
    <thetext>*** Bug 292759 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1261396</commentid>
    <comment_count>2</comment_count>
    <who name="Syam">get.sonic</who>
    <bug_when>2012-06-02 10:35:10 +0000</bug_when>
    <thetext>The new version of Palimpsest (or &apos;Gnome Disk Utility&apos; or just &apos;Disks&apos; in F17) doesn&apos;t have the &apos;Safe removal&apos; option anymore. Now there&apos;s no (easy) way to power down the HDD on KDE or GNOME. :-(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1294992</commentid>
    <comment_count>3</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2012-09-07 11:22:41 +0000</bug_when>
    <thetext>Confirmed by duplicate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1315956</commentid>
    <comment_count>4</comment_count>
    <who name="guanx">guanx.bac</who>
    <bug_when>2012-11-15 23:30:38 +0000</bug_when>
    <thetext>This is always a problem. Some people want only a umount, some want eject and spin down. My guess is 
1) umount is sufficient, and is the most proper way to deal with USB flash storage devices;
2) For CDROMs or other devices that can actually eject, eject is what most users want;
3) For external hard disks, an additional &quot;hdparm -Y&quot; is also welcome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1315959</commentid>
    <comment_count>5</comment_count>
    <who name="guanx">guanx.bac</who>
    <bug_when>2012-11-15 23:34:59 +0000</bug_when>
    <thetext>BTW, If you know you want to spin down your block device, just add an &quot;hdparm -Y&quot; to &quot;/usr/lib/kde4/libexec/kdeeject&quot; for the moment (before there can be a sophisticated solution).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1315962</commentid>
    <comment_count>6</comment_count>
    <who name="guanx">guanx.bac</who>
    <bug_when>2012-11-16 00:25:04 +0000</bug_when>
    <thetext>My mistake. The proper place to spin down a hard drive seems to be in KDiskFree instead of the command line utility kdeeject.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1344959</commentid>
    <comment_count>7</comment_count>
    <who name="Alex Fiestas">afiestas</who>
    <bug_when>2013-02-24 20:53:01 +0000</bug_when>
    <thetext>Luka, any thoughts on this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1344960</commentid>
    <comment_count>8</comment_count>
      <attachid>77554</attachid>
    <who name="Lukáš Tinkl">lukas</who>
    <bug_when>2013-02-24 20:57:54 +0000</bug_when>
    <thetext>Created attachment 77554
proposed patch to spid down the drive

Can you try the attached patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1345010</commentid>
    <comment_count>9</comment_count>
    <who name="Alex Fiestas">afiestas</who>
    <bug_when>2013-02-24 23:20:44 +0000</bug_when>
    <thetext>For the patch to work you have to use udisk2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1386505</commentid>
    <comment_count>10</comment_count>
    <who name="Alex Fiestas">afiestas</who>
    <bug_when>2013-07-28 20:45:07 +0000</bug_when>
    <thetext>Closing the thread for lack of activity.

@Lukáš Tinkl Should we push this to master ? or just drop the patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1386672</commentid>
    <comment_count>11</comment_count>
    <who name="Lukáš Tinkl">lukas</who>
    <bug_when>2013-07-29 09:09:08 +0000</bug_when>
    <thetext>Without proper feedback, nope</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1454317</commentid>
    <comment_count>12</comment_count>
    <who name="Jean-Christophe Baptiste">jc</who>
    <bug_when>2014-06-10 13:46:24 +0000</bug_when>
    <thetext>This is now the behavior in all major OS and DE: Windows, Mac OS, Gnome...
KDE should also do it. This is far safer for disk drive to be shut before being unplugged.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1457798</commentid>
    <comment_count>13</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-06-25 18:13:26 +0000</bug_when>
    <thetext>*** Bug 324981 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1468497</commentid>
    <comment_count>14</comment_count>
    <who name="Alivema4ever">alivema4ever</who>
    <bug_when>2014-08-30 20:35:00 +0000</bug_when>
    <thetext>Voted +20 for this.
This is a basic feature that (hopefully) extends the lifespan of external harddisks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1470293</commentid>
    <comment_count>15</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-09-09 10:41:24 +0000</bug_when>
    <thetext>*** Bug 338912 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1473432</commentid>
    <comment_count>16</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-09-28 13:31:55 +0000</bug_when>
    <thetext>Lukáš, what feedback do you need? Is this patch risky to apply?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1473436</commentid>
    <comment_count>17</comment_count>
    <who name="Alivema4ever">alivema4ever</who>
    <bug_when>2014-09-28 14:23:56 +0000</bug_when>
    <thetext>Since most of us don&apos;t build kde by ourselves, it&apos;s better to just merge the patch with the testing / beta KDE branch. So that, when the package manager syncs the testing branch, it will be automatically applied and built and ready for testing. Let the beta tester do the test.
The rest is simple. Patch maker should listen to the feedback and bug reports on the testing branch.
If no serious issue reported during the testing period, the patch is ready to go stable branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1477982</commentid>
    <comment_count>18</comment_count>
    <who name="Jean-Christophe Baptiste">jc</who>
    <bug_when>2014-10-25 03:20:45 +0000</bug_when>
    <thetext>So when can we get this patch applied please ?
Meanwhile, we are using that stuff daily...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1478069</commentid>
    <comment_count>19</comment_count>
    <who name="Alivema4ever">alivema4ever</who>
    <bug_when>2014-10-25 18:26:41 +0000</bug_when>
    <thetext>No need to force developers to implement a feature that they don&apos;t consider to be important. Because it&apos;s your removable hdds which are at risks, not their fixed hdds.

I always power off my removable drive by issuing the following command after unmounting all mounted partitions on the particular drive.

```
udisksctl power-off /dev/sdb
```

Udisksctl comes from udisks2 package, which is installed by default on most distributions.

That solves this problem without needs to apply this half-hearted patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1478073</commentid>
    <comment_count>20</comment_count>
    <who name="Jean-Christophe Baptiste">jc</who>
    <bug_when>2014-10-25 19:14:27 +0000</bug_when>
    <thetext>Unfortunately, I cannot force anyone. The purpose is that they should just follow the common sense, and optionally listen to their users.
KDE is propably the last modern environment not implementing this (at least, it works well on Gnome, Windows and Mac OS).

Honnestly, I don&apos;t care there is a command line (I knew about this one). When you use KDE for working, you just don&apos;t want to throw a command every time you use external disks (in my case, often). Such dumb functionalities should be managed by the desktop environment.

Again, that&apos;s common sense. Nothing else.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1484476</commentid>
    <comment_count>21</comment_count>
    <who name="">a.frankova.contact</who>
    <bug_when>2014-12-07 20:44:47 +0000</bug_when>
    <thetext>Hi,
I have the exact same problem (an external usb drive not spinning down after ejecting). I just found this bugreport and I would love to help to get this worked out. Is there any way I can help? I&apos;m just a common Kubuntu user so I don&apos;t have any advanced experience, but I definitely can do testing and give feedback.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1485345</commentid>
    <comment_count>22</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-12-12 21:18:07 +0000</bug_when>
    <thetext>The patch that needs testing is attached here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1485353</commentid>
    <comment_count>23</comment_count>
    <who name="">a.frankova.contact</who>
    <bug_when>2014-12-12 21:45:17 +0000</bug_when>
    <thetext>(In reply to Christoph Feck from comment #22)
&gt; The patch that needs testing is attached here.

Okay, after some googling, I&apos;ve realized I&apos;m treading much deeper water than I expected. (Yay, go newbies.) I&apos;ll still try and help, but in case anyone with more experience than me is reading this, feel free to pick this up, it&apos;ll probably be faster. :P
Otherwise I&apos;ll, uh, get back if/when I get it to work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1489205</commentid>
    <comment_count>24</comment_count>
    <who name="M G Berberich">kde</who>
    <bug_when>2015-01-05 16:07:36 +0000</bug_when>
    <thetext>I vote for reopening this bug.
I can”t understand why it has status CLOSED/WONTFIX, this should be fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1489327</commentid>
    <comment_count>25</comment_count>
    <who name="Syam">get.sonic</who>
    <bug_when>2015-01-06 10:13:35 +0000</bug_when>
    <thetext>There seems to be enough demand and &apos;activity&apos; for this report. Reopening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1539939</commentid>
    <comment_count>26</comment_count>
    <who name="Rafael">rafaelsoaresbr</who>
    <bug_when>2015-08-27 16:30:57 +0000</bug_when>
    <thetext>Hello guys, the following command has solved this problem (as root):
# hdparm -B 127 /dev/sdb
I&apos;ve noted that previous value was 128 (never spin down)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1551913</commentid>
    <comment_count>27</comment_count>
    <who name="luminoso">luminoso</who>
    <bug_when>2015-10-22 11:18:03 +0000</bug_when>
    <thetext>Comment 26 does not work for me. Although &quot;udisksctl power-off -b /dev/sdX&quot; does work.

How can I, in a Fedora 22 system can test the proposed patch?

I am using plasma-workspace 5.4.2, framework 5.15.0 and applications 15.08.2. I suggest bumping this bug(or feature request) for plasma5 series.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1551916</commentid>
    <comment_count>28</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2015-10-22 11:48:51 +0000</bug_when>
    <thetext>The attached patch is of no use in frameworks I presume, judging from the date this was done in Qt4, so could somebody take care of this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1571316</commentid>
    <comment_count>29</comment_count>
    <who name="noric">g11072813</who>
    <bug_when>2016-01-22 14:45:52 +0000</bug_when>
    <thetext>I&apos;m willing to test this patch on KDE 4.14 (Kubuntu 14.04).
Could a dev please give me a hint about where to start with compiling KDE4?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1571378</commentid>
    <comment_count>30</comment_count>
    <who name="noric">g11072813</who>
    <bug_when>2016-01-22 20:40:31 +0000</bug_when>
    <thetext>Ok, I&apos;ve searched a lot and I think I need to compile &quot;Solid&quot; with kdesrc-build. If not possibile to just compile Solid (not sure about it), then I&apos;m going to compile the whole &quot;kdelibs&quot;.
Please let me know if I&apos;m in the right direction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1582460</commentid>
    <comment_count>31</comment_count>
    <who name="Davide Olianas">noob</who>
    <bug_when>2016-03-14 14:58:33 +0000</bug_when>
    <thetext>I modified the patch to work with the current git master branch. Should I attach it?
I&apos;m trying it on manjaro linux, plasma-desktop 5.5.5-1.1, kio 5.19.0-1, dolphin 15.12.2-1.

Still, it doesn&apos;t work. I have an external usb drive with three partitions, when I choose &quot;safely remove&quot; on the last mounted partition, the hard disk is still spinning. udisks --detach works for me too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1586313</commentid>
    <comment_count>32</comment_count>
    <who name="Soukyuu">chrno-sphered</who>
    <bug_when>2016-04-02 16:43:04 +0000</bug_when>
    <thetext>I do hope this will get fixed eventually, my external HDD makes unhealthy screeching noises when I unplug it without letting it spin down. I can&apos;t imagine it being healthy in the long run - especially since it seems to trigger the &quot;unexpected power loss&quot; counter on S.M.A.R.T. statistics. 

The same HDD gracefully (and silently) spins down in windows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1586314</commentid>
    <comment_count>33</comment_count>
    <who name="Soukyuu">chrno-sphered</who>
    <bug_when>2016-04-02 16:49:27 +0000</bug_when>
    <thetext>Oh and all &quot;udisksctl power-off /dev/sdx&quot; does in my case is spin the HDD down.... then up again.
OT: why can&apos;t I seem to find the vote link for this bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1606428</commentid>
    <comment_count>34</comment_count>
    <who name="David Polák">Davidp2004</who>
    <bug_when>2016-07-09 12:56:14 +0000</bug_when>
    <thetext>I am affected by this bug, HDD spins down and then right back up again and shows up in Device Notifier.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1619872</commentid>
    <comment_count>35</comment_count>
    <who name="Alivema4ever">alivema4ever</who>
    <bug_when>2016-09-07 10:08:01 +0000</bug_when>
    <thetext>I think the udisks subsystem of KDE should distinguish between unmounting the partitions of a drive and safely removing the drive.

Unmounting the mounted filesystem should be clearly assigned as unmount action. This is the dependency of safely remove.

Safely removing the drive should ensure that all partitions are unmounted prior to powering off the drive.

The proper graphical application to power off external disk is gnome-disk[1]. This application can be used as reference on how to implement power-off feature for safely removing external hard disks. Unfortunately, there is no equivalent app on KDE.

[1] https://git.gnome.org/browse/gnome-disk-utility/

@Soukyuu: I mistyped the command.
The proper udisksctl command to power off the drive is
``udisksctl power-off -b /dev/sdb``
``udisksctl power-off --block-device /dev/sdb``</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1619884</commentid>
    <comment_count>36</comment_count>
    <who name="guanx">guanx.bac</who>
    <bug_when>2016-09-07 10:51:59 +0000</bug_when>
    <thetext>(In reply to Alivema4ever from comment #35)
&gt; I think the udisks subsystem of KDE should distinguish between unmounting
&gt; the partitions of a drive and safely removing the drive.
&gt; //snip

Absolutely.

Normally there are three actions to unload a mounted drive: unmount, power off, and eject. This does not take into account anything to do with the device mapper, or there can be more actions.
To me it is acceptable to do all three by default, but it&apos;s obviously inconvenient if the other choices are not available in the context menu (right-click pop-up menu).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1621696</commentid>
    <comment_count>37</comment_count>
    <who name="David Polák">Davidp2004</who>
    <bug_when>2016-09-12 20:52:57 +0000</bug_when>
    <thetext>There is currently no way to remove external disks safely in KDE.

`udisksctl power-off --block-device /dev/sdb` spins down the disk for about a second, before KDE spins it back up.

Workarounds:
1) Turn off your computer, remove disk, turn on your computer.
2) Kill X server, udiskctl spin down, start X server

Those workarounds should be satisfactory enough for everybody. /rant</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1628567</commentid>
    <comment_count>38</comment_count>
    <who name="dubvulture">dubvulture1963</who>
    <bug_when>2016-10-01 11:39:17 +0000</bug_when>
    <thetext>5 years and this is still not fixed?!
We&apos;re talking about users&apos; hard disks undermining here, not just some random crash or arguable behiaviour.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1633494</commentid>
    <comment_count>39</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2016-10-19 01:55:29 +0000</bug_when>
    <thetext>*** Bug 371161 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1655132</commentid>
    <comment_count>40</comment_count>
    <who name="">kdeu</who>
    <bug_when>2017-01-18 14:01:48 +0000</bug_when>
    <thetext>(In reply to David Polák from comment #37)
&gt; There is currently no way to remove external disks safely in KDE.
&gt; 
&gt; `udisksctl power-off --block-device /dev/sdb` spins down the disk for about
&gt; a second, before KDE spins it back up.
&gt; 
Consider my vote added.

&gt; Workarounds:
&gt; 1) Turn off your computer, remove disk, turn on your computer.
&gt; 2) Kill X server, udiskctl spin down, start X server
&gt; 
&gt; Those workarounds should be satisfactory enough for everybody. /rant

Is this workaround successful for you?
Step
1   Eject in dolphin
2   # hdparm -y /dev/sdb
3   Press HDD enclosure power button/Remove USB cable to external HDD


Some more background to this.

Turns out that most cheap external USB/SATA/firewire enclosures don’t properly issue a stop command to the drive when you flick the power switch. Instead, the power switch simply cuts power to the drive, which forces the drive to do an emergency head retract. If you think that sounds bad, you’re right. Emergency retracts aren’t going to brick your drive immediately, but if they occur regularly they’re putting a lot of unnecessary wear and tear on the drive. In fact, some drives monitor how often this happens with S.M.A.R.T. attribute 192.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1686982</commentid>
    <comment_count>41</comment_count>
    <who name="LordDan">einlanzer</who>
    <bug_when>2017-07-04 19:20:54 +0000</bug_when>
    <thetext>Well, it&apos;s just shameful that KDE still can&apos;t power off an USB removable hard disk.
Others DEs do it: Gnome, XFCE, Windows, MacOS... Perhaps LXDE.
I still rely on Gnome Disk Utility (Disks) for safe removal of an external HD...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721658</commentid>
    <comment_count>42</comment_count>
      <attachid>109812</attachid>
    <who name="Michael Heidelbach">ottwolt</who>
    <bug_when>2018-01-12 09:57:23 +0000</bug_when>
    <thetext>Created attachment 109812
~/.local/share/solid/actions/usb-drive-eject.desktop</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721659</commentid>
    <comment_count>43</comment_count>
      <attachid>109813</attachid>
    <who name="Michael Heidelbach">ottwolt</who>
    <bug_when>2018-01-12 10:01:35 +0000</bug_when>
    <thetext>Created attachment 109813
~/bin/usb-drive-eject

Maybe this helps. (plus attachment of previous post)
Works for me for &gt; 2 years
I never had the problem of respinning though</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721710</commentid>
    <comment_count>44</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-01-12 14:03:25 +0000</bug_when>
    <thetext>Me neither. My external backup hard drive always spins down after being ejected.

Are people still experiencing this using KDE Frameworks 5.41+?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721724</commentid>
    <comment_count>45</comment_count>
    <who name="Jean-Christophe Baptiste">jc</who>
    <bug_when>2018-01-12 15:24:06 +0000</bug_when>
    <thetext>Yes. OpenSUSE 42.3, Nautilus (Gnome) spins down the disk, Dolphin in KDE session does not.

But sadly I doubt it will be fixed some day.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721790</commentid>
    <comment_count>46</comment_count>
    <who name="Davide Olianas">noob</who>
    <bug_when>2018-01-12 19:46:31 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #44)
&gt; Me neither. My external backup hard drive always spins down after being
&gt; ejected.
&gt; 
&gt; Are people still experiencing this using KDE Frameworks 5.41+?

Do you know a distro with the version of KDE Frameworks you mentioned so that I can report if it works on my PC?


I&apos;m currently on Kubuntu 16.04, KDE Frameworks 5.18.0. udisksctl works for me, but the &quot;safe remove&quot; from Dolphin doesn&apos;t spin down the disk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721875</commentid>
    <comment_count>47</comment_count>
    <who name="Vincas Dargis">vindrg</who>
    <bug_when>2018-01-13 07:35:32 +0000</bug_when>
    <thetext>I&apos;m on Debian Testing, with KDE Plasma 5.10.4 and KDE Frameworks 5.37.0, and external drive is still not stopped when &quot;safely&quot; removing it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721876</commentid>
    <comment_count>48</comment_count>
    <who name="Vincas Dargis">vindrg</who>
    <bug_when>2018-01-13 07:36:07 +0000</bug_when>
    <thetext>Maybe I should check on KDE Neon live cd, that should have latest KDE, yes?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721975</commentid>
    <comment_count>49</comment_count>
    <who name="Davide Olianas">noob</who>
    <bug_when>2018-01-13 18:24:33 +0000</bug_when>
    <thetext>The problem is still present with KDE Neon (KDE Frameworks 5.41).

The script usb-drive-eject works when launched from the CLI. The .desktop launcher does not work, I receive the following error message: &quot;The desktop entry of type Service is unknown&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721995</commentid>
    <comment_count>50</comment_count>
    <who name="Michael Heidelbach">ottwolt</who>
    <bug_when>2018-01-13 19:56:57 +0000</bug_when>
    <thetext>@Davide
Click Device manager icon in toolbar
Click &apos;actions for ...&apos; for a mounted partition.

You should see something like &apos;Eject&apos; or &apos;Auswerfen&apos;
Click that and you disk should power down.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1722067</commentid>
    <comment_count>51</comment_count>
    <who name="Davide Olianas">noob</who>
    <bug_when>2018-01-14 09:31:18 +0000</bug_when>
    <thetext>(In reply to Michael Heidelbach from comment #50)
&gt; @Davide
&gt; Click Device manager icon in toolbar
&gt; Click &apos;actions for ...&apos; for a mounted partition.
&gt; 
&gt; You should see something like &apos;Eject&apos; or &apos;Auswerfen&apos;
&gt; Click that and you disk should power down.

Thanks! Previously I forgot to move the .desktop file in the correct folder. I now see the action for the external disk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1722775</commentid>
    <comment_count>52</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2018-01-16 23:59:42 +0000</bug_when>
    <thetext>I use &apos;hdparm -y&apos; to spin down the external SATA disk. This command needs root privileges, so I am wondering whether (or how) Solid could do it without root access.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1722920</commentid>
    <comment_count>53</comment_count>
    <who name="Michael Heidelbach">ottwolt</who>
    <bug_when>2018-01-17 13:00:58 +0000</bug_when>
    <thetext>(In reply to Christoph Feck from comment #52)
&gt; I use &apos;hdparm -y&apos; to spin down the external SATA disk. This command needs
&gt; root privileges, so I am wondering whether (or how) Solid could do it
&gt; without root access.

$ udisksctl power-off -b ...
can do for unpriviledged users.

$ dbus --system org.freedesktop.UDisks2 /org/freedesktop/UDisks2/drives/TOSHIBA_MQ01UBD100_44K3TR2HT
void org.freedesktop.UDisks2.Drive.PowerOff(QVariantMap options)

also looks promising.
Couldn&apos;t use it with qdbus due to (QVariantMap options)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1727627</commentid>
    <comment_count>54</comment_count>
    <who name="Filip Fila">filipfila.kde</who>
    <bug_when>2018-02-04 16:52:08 +0000</bug_when>
    <thetext>Yeah, external HDDs still don&apos;t spin down with the safe remove option for me. 

Seconded on the uncomfortable noise coming from the HDD if you just pull it out - it can&apos;t be good for the drive. Power off has been the default option in all Windows&apos; except 7 I think, and Thunar, Nautilus etc. and their respective DEs do power off HDDs if you press Eject.

A big vote from me for fixing this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1731393</commentid>
    <comment_count>55</comment_count>
    <who name="Øystein Steffensen-Alværvik">epost.kde</who>
    <bug_when>2018-02-18 10:17:53 +0000</bug_when>
    <thetext>As a user who prefers not to fiddle with terminal commands to do something simple as powering off an ext. HDD, I second this.

Either
a) provide option in Device Notifications to power off HDDs that support it
or
b) make unmount from Device Notifications automatically power off HDDs that support it</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1745841</commentid>
    <comment_count>56</comment_count>
    <who name="Glut">glutbugreports</who>
    <bug_when>2018-04-16 12:47:34 +0000</bug_when>
    <thetext>I can confirm this on Kubuntu 18.04, KDE frameworks v. 5.44.0.

Cutting the connection manually after &quot;safely removing&quot; a drive makes an awful noise and leaves me wondering each time how many days I&apos;ve shaved off of the drive&apos;s life time.

Seriously though, this seems like such an important issue that I really do need to ask why this has yet to be addressed after 5 years? I would absolutely understand if this were an incredibly complex and novel problem that nobody in the Linux world has been able to fix yet, but it seems like all distros outside of KDE have found a solution for it. So what gives?

If there is any additional information you need us to provide to help with tracking this down, please let us now. I&apos;m sure that everyone subscribed to this bug report is annoyed enough by this issue to invest as much time as they can to help with fixing it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1745880</commentid>
    <comment_count>57</comment_count>
    <who name="Øystein Steffensen-Alværvik">epost.kde</who>
    <bug_when>2018-04-16 16:10:33 +0000</bug_when>
    <thetext>Can Framework&apos;s specific method of ejecting a harddrive be invoked from the command line, for debugging purposes?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746620</commentid>
    <comment_count>58</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-04-18 21:42:06 +0000</bug_when>
    <thetext>We don&apos;t need more information; what we need is for someone who has familiarity with the code involved to fix it. In FOSS, the general limitation is manpower.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746759</commentid>
    <comment_count>59</comment_count>
    <who name="Glut">glutbugreports</who>
    <bug_when>2018-04-19 15:18:09 +0000</bug_when>
    <thetext>@Michael Heidelbach:

Thanks a lot for the custom eject action! I&apos;ve just set it up and it seems like it&apos;s working perfectly so far.

@Nate:

I understand. I&apos;m sorry if my last comment came off as antagonistic. I appreciate all the time and effort you and all the other KDE contributors put into these projects. It&apos;s just that issues with the core system like these can be very frustrating sometimes – especially if they&apos;ve been open for so long and you feel like there&apos;s nothing you can do to help move things along.

I really do hope that somebody picks this up eventually.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746791</commentid>
    <comment_count>60</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-04-19 16:49:11 +0000</bug_when>
    <thetext>I do too! :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1748839</commentid>
    <comment_count>61</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2018-04-29 12:46:20 +0000</bug_when>
    <thetext>*** Bug 393632 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1761955</commentid>
    <comment_count>62</comment_count>
    <who name="David">medzernik1</who>
    <bug_when>2018-06-17 21:08:42 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #58)
&gt; We don&apos;t need more information; what we need is for someone who has
&gt; familiarity with the code involved to fix it. In FOSS, the general
&gt; limitation is manpower.

Can&apos;t we implement the script someone provided here as the solution for the bug? This should get fixed immediately and this could work somehow?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1761966</commentid>
    <comment_count>63</comment_count>
    <who name="Filip Fila">filipfila.kde</who>
    <bug_when>2018-06-17 22:33:58 +0000</bug_when>
    <thetext>I did not have success with the .desktop file that was attached in this thread, but I did with this other one found on Reddit so I&apos;m copy pasting it:

&quot;I think I&apos;ve found a workaround (at least for me). Create a file called poweroff.desktop at ~/.local/share/solid/actions/ with the following content:

[Desktop Action open]
Exec=solid-hardware unmount %i &amp;amp;&amp;amp;  udisksctl power-off -b %d
Icon=kt-stop
Name=Power off device

[Desktop Entry]
Actions=open;
Type=Service
X-KDE-Action-Custom=true
X-KDE-Solid-Predicate=[ IS StorageVolume AND StorageVolume.ignored == false ]

Then log out and in again. The file creates a new entry for the device notifier in the control panel to power off the device. The command first unmounts the drive and then powers it off. In contrast to OP&apos;s experience my external HDD stays off and doesn&apos;t restart again.&quot; - by a user who&apos;s now deleted his post or even account</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1761969</commentid>
    <comment_count>64</comment_count>
    <who name="Krešimir Čohar">kcohar</who>
    <bug_when>2018-06-17 23:05:18 +0000</bug_when>
    <thetext>(In reply to Filip from comment #63)
&gt; I did not have success with the .desktop file that was attached in this
&gt; thread, but I did with this other one found on Reddit so I&apos;m copy pasting it:
&gt; 
&gt; &quot;I think I&apos;ve found a workaround (at least for me). Create a file called
&gt; poweroff.desktop at ~/.local/share/solid/actions/ with the following content:
&gt; 
&gt; [Desktop Action open]
&gt; Exec=solid-hardware unmount %i &amp;amp;&amp;amp;  udisksctl power-off -b %d
&gt; Icon=kt-stop
&gt; Name=Power off device
&gt; 
&gt; [Desktop Entry]
&gt; Actions=open;
&gt; Type=Service
&gt; X-KDE-Action-Custom=true
&gt; X-KDE-Solid-Predicate=[ IS StorageVolume AND StorageVolume.ignored == false ]
&gt; 
&gt; Then log out and in again. The file creates a new entry for the device
&gt; notifier in the control panel to power off the device. The command first
&gt; unmounts the drive and then powers it off. In contrast to OP&apos;s experience my
&gt; external HDD stays off and doesn&apos;t restart again.&quot; - by a user who&apos;s now
&gt; deleted his post or even account

i had to modify this a little bit to make it work with the latest edition of plasma:


[Desktop Action open]
Exec=udisksctl unmount -b %d;  udisksctl power-off -b %d
Icon=kt-stop
Name=Power off device
 
[Desktop Entry]
Actions=open;
Type=Service
X-KDE-Action-Custom=true
X-KDE-Solid-Predicate=[ IS StorageVolume AND StorageVolume.ignored == false 

(changed solid-hardware unmount to udisksctl unmount)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1765949</commentid>
    <comment_count>65</comment_count>
    <who name="hap">hapstad</who>
    <bug_when>2018-07-08 18:14:32 +0000</bug_when>
    <thetext>Adding to this request. Every other distro I have used powers off the spinning HDDs when &quot;ejecting&quot; or &quot;safely removing&quot;. This is a fundamental behavior and can cause damage to drives when people are on KDE but muscle memory from other distros takes over. Please either build in the power off to &quot;safely remove drive&quot; as other distros do, or add another option that does include powering down like &quot;eject and poweroff&quot; etc. Users shouldnt need to take multiple steps in disk utilities or the terminal to do this simple task.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1792572</commentid>
    <comment_count>66</comment_count>
    <who name="Stefan Brüns">stefan.bruens</who>
    <bug_when>2018-10-08 19:42:36 +0000</bug_when>
    <thetext>Git commit 867f53608d3a5145e3380e8c1686f40be8f06c31 by Stefan Brüns.
Committed on 08/10/2018 at 19:42.
Pushed by bruns into branch &apos;master&apos;.

[UDisks2] Power down drive on remove if supported

Summary:
It is preferable to to do a controlled shutdown prior to disconnecting
and eventually cutting of power to the drive.
Closes T9730

Test Plan:
Connect external drive, select &quot;Savely Remove&quot; from context menu
1. if drive has only on partition, fs is unmounted and drive spins down
2. if drive has multiple partitions:
 a) first (not last) partition can be unmounted and remounted
 b) &quot;Remove&quot;ing last partition spins down drive

Reviewers: #frameworks, ngraham, broulik

Reviewed By: ngraham, broulik

Subscribers: broulik, kde-frameworks-devel, ngraham

Tags: #frameworks

Maniphest Tasks: T9730

Differential Revision: https://phabricator.kde.org/D15932

M  +10   -1    src/solid/devices/backends/udisks2/udisksstorageaccess.cpp

https://commits.kde.org/solid/867f53608d3a5145e3380e8c1686f40be8f06c31</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1794279</commentid>
    <comment_count>67</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2018-10-14 15:32:24 +0000</bug_when>
    <thetext>*** Bug 399792 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1834510</commentid>
    <comment_count>68</comment_count>
    <who name="Vincas Dargis">vindrg</who>
    <bug_when>2019-01-27 17:16:08 +0000</bug_when>
    <thetext>External HDD now spins down in Debian Buster! Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887774</commentid>
    <comment_count>69</comment_count>
    <who name="Gordon Lack">gordon.lack</who>
    <bug_when>2019-10-26 01:52:53 +0000</bug_when>
    <thetext>And powering off an external drive can be a real pain, as I then need to physically unplug and re-insert as device if I want to use it again.

I may well want to unmount a device (as I don;t need it &quot;now&quot;), but leave it plugged in as I may need it later.

So I&apos;ve opened https://bugs.launchpad.net/ubuntu/+source/dolphin/+bug/1827778 to re-add the option to *just* unmount a device.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>77554</attachid>
            <date>2013-02-24 20:57:54 +0000</date>
            <delta_ts>2013-02-24 20:57:54 +0000</delta_ts>
            <desc>proposed patch to spid down the drive</desc>
            <filename>solid-sa-poweroff.patch</filename>
            <type>text/plain</type>
            <size>2670</size>
            <attacher name="Lukáš Tinkl">lukas</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL3NvbGlkL3NvbGlkL2JhY2tlbmRzL3VkaXNrczIvdWRpc2tzc3RvcmFnZWFj
Y2Vzcy5jcHAgYi9zb2xpZC9zb2xpZC9iYWNrZW5kcy91ZGlza3MyL3VkaXNrc3N0b3JhZ2VhY2Nl
c3MuY3BwCmluZGV4IDY5NTg0NTkuLjFhOWQwM2QgMTAwNjQ0Ci0tLSBhL3NvbGlkL3NvbGlkL2Jh
Y2tlbmRzL3VkaXNrczIvdWRpc2tzc3RvcmFnZWFjY2Vzcy5jcHAKKysrIGIvc29saWQvc29saWQv
YmFja2VuZHMvdWRpc2tzMi91ZGlza3NzdG9yYWdlYWNjZXNzLmNwcApAQCAtMTU3LDcgKzE1Nyw3
IEBAIHZvaWQgU3RvcmFnZUFjY2Vzczo6c2xvdERCdXNSZXBseSggY29uc3QgUURCdXNNZXNzYWdl
ICYgLypyZXBseSovICkKICAgICAgICAgICAgIGNoZWNrQWNjZXNzaWJpbGl0eSgpOwogICAgICAg
ICB9CiAgICAgfQotICAgIGVsc2UgaWYgKG1fdGVhcmRvd25JblByb2dyZXNzKSAgLy8gRklYTUUK
KyAgICBlbHNlIGlmIChtX3RlYXJkb3duSW5Qcm9ncmVzcykKICAgICB7CiAgICAgICAgIGlmIChp
c0x1a3NEZXZpY2UoKSAmJiAhY3RQYXRoLmlzRW1wdHkoKSAmJiBjdFBhdGggIT0gIi8iKSAvLyB1
bmxvY2tlZ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JiYgZHJp
dmUucHJvcCgiTWVkaWFBdmFpbGFibGUiKS50b0Jvb2woKSkgeworICAgICAgICAgICAgICAgICAg
ICAgUURCdXNDb25uZWN0aW9uIGMgPSBRREJ1c0Nvbm5lY3Rpb246OnN5c3RlbUJ1cygpOworICAg
ICAgICAgICAgICAgICAgICAgUURCdXNNZXNzYWdlIG1zZyA9IFFEQnVzTWVzc2FnZTo6Y3JlYXRl
TWV0aG9kQ2FsbChVRDJfREJVU19TRVJWSUNFLCBkcml2ZVBhdGgsIFVEMl9EQlVTX0lOVEVSRkFD
RV9EUklWRSwgIkVqZWN0Iik7CisgICAgICAgICAgICAgICAgICAgICBtc2cgPDwgUVZhcmlhbnRN
YXAoKTsgICAvLyBvcHRpb25zLCB1bnVzZWQgbm93CisgICAgICAgICAgICAgICAgICAgICBjLmNh
bGwobXNnLCBRREJ1czo6Tm9CbG9jayk7CisgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAg
IH0KIAogICAgICAgICAgICAgbV90ZWFyZG93bkluUHJvZ3Jlc3MgPSBmYWxzZTsK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>109812</attachid>
            <date>2018-01-12 09:57:23 +0000</date>
            <delta_ts>2018-01-12 09:57:23 +0000</delta_ts>
            <desc>~/.local/share/solid/actions/usb-drive-eject.desktop</desc>
            <filename>hdw.usb-drive-eject.desktop</filename>
            <type>application/x-desktop</type>
            <size>319</size>
            <attacher name="Michael Heidelbach">ottwolt</attacher>
            
              <data encoding="base64">W0Rlc2t0b3AgQWN0aW9uIG9wZW5dCkV4ZWM9JEhPTUUvYmluL3VzYi1kcml2ZS1lamVjdCAlZApJ
Y29uPWFwcGxpY2F0aW9uLWV4aXQKTmFtZT1FamVjdApOYW1lW2RlXT1BdXN3ZXJmZW4KCltEZXNr
dG9wIEVudHJ5XQpBY3Rpb25zPW9wZW47ClR5cGU9U2VydmljZQpYLUtERS1BY3Rpb24tQ3VzdG9t
PXRydWUKWC1LREUtU29saWQtUHJlZGljYXRlPVtbSVMgU3RvcmFnZVZvbHVtZSBBTkQgU3RvcmFn
ZURyaXZlLnJlbW92YWJsZSA9PSAndHJ1ZSddIE9SIFtJUyBTdG9yYWdlVm9sdW1lIEFORCBTdG9y
YWdlVm9sdW1lLnVzYWdlID09ICdGaWxlU3lzdGVtJ11dCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>109813</attachid>
            <date>2018-01-12 10:01:35 +0000</date>
            <delta_ts>2018-01-12 10:01:35 +0000</delta_ts>
            <desc>~/bin/usb-drive-eject</desc>
            <filename>usb-drive-eject</filename>
            <type>application/x-shellscript</type>
            <size>1251</size>
            <attacher name="Michael Heidelbach">ottwolt</attacher>
            
              <data encoding="base64">IyEvYmluL2Jhc2gKCmRlY2xhcmUgLUEgZGlza3M9KCkKCiMjIFVubW91bnQgYWxsIFVTQiBkcml2
ZXMKaWYgWyAkIyAtZXEgMCBdOyB0aGVuCiAgICBkcml2ZXM9KCAkKHB1c2hkIC9kZXYvZGlzay9i
eS1wYXRoICY+L2Rldi9udWxsOyBscyAtMSB8IGdyZXAgLW9FICdbYS16QS1aMC05Oi4tXSt1c2Jb
YS16QS1aMC05Oi4tXSsnfHhhcmdzIHJlYWxwYXRoIDI+L2Rldi9udWxsOyBwb3BkICY+L2Rldi9u
dWxsKSApCiAgICBmb3IgZCBpbiAiJHtkcml2ZXNbQF19IjsgZG8gCiAgICAgICAgZWNobyAiV2ls
bCB1bm1vdW50ICRkIiA+JjIKICAgICAgICBlY2hvIGRpc2s6JHtkLy9bMC05XX0gPiYyCiAgICAg
ICAgZGlza3NbIiR7ZC8vWzAtOV19Il09dHJ1ZQogICAgZG9uZQojIyBVbm1vdW50IDEgZGlzawpl
bHNlCiAgICBmb3IgZCBpbiAiJEAiOyBkbwogICAgICAgIGRpc2tzWyIke2QvL1swLTldfSJdPXRy
dWUKICAgIGRvbmUKZmkKCiMjIExlYX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