Why will a USB flash drive get so hot when plugged into a Windows computer?

54

16

I have a laptop. When there is a Windows 10 OS on it, even if there is no data read or written, the USB flash drive will get extremely hot when just plugged into the computer.

However, with the same computer, with Linux installed on it, the situation is totally different. When I write and read data from and to the flash drive intensively, this flash drive just got a little bit warmer.

After I found this phenomenon, I tested various USB flash drives on my desktop, laptop ... with the same Linux and Windows OSes. The situation is similar.

In the Linux environment, I use

dd if=/dev/urandom of=/path/to/my/flash/parent/folder/test.bin bs=1024M count=4

to test a big file write. To test writing a great number of small files I use:

parallel dd if=/dev/urandom of=/path/to/my/flash/parent/test-{}.bin bs=1M count=1 ::: {0001..4096}

In the Windows 10 environment, I just plug the USB flash drive in and do nothing(Not run I/O intensive application on purpose) but wait for 10 minutes. NOTE: The Windows 10 environments on all test computers were freshly installed, and there was no 3rd-party application (I use Education Edition and I disable real-time protection when I start the machine before test. However, I just unset the checkbox in Windows Graphical Setting Manager. I don't know if there need a reboot to make change valid).

Update 1:

It may be due to the USB flash drive itself. Here is the model of flash drive I use in this test.(This is not the advertisement, I have no attitude toward these products)

  1. SanDisk Extreme PRO® USB 3.1 Solid State Flash Drive 128GB

  2. SanDisk 64GB USB 3.0 Flash Drive

  3. DataTraveler 100 G3 16GB

Update2:

There is an answer which consider the effect of the buffer of Linux system.

But for the Linux distro I used, when DD was finished, I typed sync and it took almost zero time to execute. Hence the effect of that is not considerable.


Why? Is this because Windows always does some useless accesses to a flash drive?

In addition when I have to use Windows, is there any practical way to make the USB flash drive cooler?

pah8J

Posted 2018-07-12T12:26:45.507

Reputation: 715

afaik, usb port gives 5v out. It would be really cool if we could practically measure the heat of the usb stick in real time. – Nick – 2018-07-12T12:52:51.397

2I don't believe this to be a general issue with Windows 10. I have used USB drives on my Desktop, two laptops, and my Wife's desktop; all running Windows 10 (Pro or Home, depending on device). My USB drives do not heat up to any appreciable degree. Is it possible the issue is specifically with Windows 10 Education edition? Or alternatively, that waste heat from the computer is blowing onto the USB stick? – Doc – 2018-07-12T14:43:24.453

I've had the reverse happen: the drive got really rather hot when writing a live installation image under Ubuntu, and never worked again (front ports on a desktop, so no thermal conduction issue) – Chris H – 2018-07-12T14:47:16.353

May the Windows 10 system be using ReadyBoost?

– mgarciaisaia – 2018-07-12T17:11:53.187

@Doc, How long did you plug you flash drive in USB port in average? – pah8J – 2018-07-12T22:54:14.897

@Chris H, did you use DD to burn disk image? – pah8J – 2018-07-12T22:59:06.937

I haven't noticed this behavior on any of a large number of Windows 10 computers yet. – Nat – 2018-07-12T23:17:12.700

Clarifications: (1) When you say that there's no reading/writing, do you mean that you aren't reading/writing, or do you mean that you've checked the resource manager to ensure that there's no reading/writing at all? (2) Do any of your other USB devices heat up, or is it just thumb drives? (3) Do the thumb drives' activity LED's blink like they're working? – Nat – 2018-07-12T23:22:29.013

@pah8J I have one Thumbdrive that's in almost 24/7 except when the laptop gets packed into it's bag for travel. The other drives will be plugged in for anywhere from a couple of minutes to a few hours depending on what I'm doing with it (watching a video, editing photos, grabbing a file real quick, etc). – Doc – 2018-07-12T23:36:27.157

@Nat, My mistake, It is a little bit confusing, (1) I just mean that I don't run those application like dd and so on. For the processes of Windows System, I don't know. However, When I open task manager, the data transfer speed is always lower than 1MB/s. (2) For HDDs or mobile disks, they never heat up. (3) Yes their light are always blinking. – pah8J – 2018-07-13T00:15:25.320

I'd suggest noting that other USB devices aren't heating up in the question statement. It's useful information because it helps to rule out the possibility that the heat's actually being generated inside of the computer and just being passed to the USB, e.g. as suggested in @NonnyMoose's answer. – Nat – 2018-07-13T00:40:05.297

@Nat, I agree with you. However, for HDD, it has large surface and the principle of it is different from flash NAND. Even if it reach the maximum performance, the temperature will never reach such high level. It will rotate constantly unless the system suspend it. So it is difficult to figure HDD out. – pah8J – 2018-07-13T00:49:59.667

I have noticed this issue too , but only when using cheaper pen drives, but it's odd in yourcase since you have used branded pen drives, maybe try on a different laptop or PC – Nigel Fds – 2018-07-13T04:02:12.357

I once had a similar issue with a usb stick getting too hot. In my case it was only one specific slot, the others worked clearly. The slot was above my wlan-module. I tried different things but wasnt able to figure out why this happens. I simply used other ports and this one for microphones etc., this worked well. I had Win7 on a acer laptop, usb3.0 – Chrᴉz says reinstate Monica – 2018-07-13T08:03:04.780

@pah8J I don't think I did directly. The tool I used may have done behind the scenes, but I can't remember, even if I knew. It was a couple of years ago, when upgrading from Xubuntu Precise to Xenial (with a fresh install onto a new SSD). – Chris H – 2018-07-13T08:32:20.233

1You could test the chassis warming the device by using a short extension cable to separate the device from the chassis. I would be quite curious to hear the results. – Traveler – 2019-02-03T17:40:05.793

Answers

40

On my laptop, the USB 3.0 port is physically very close (~ 2 in) to the fan assembly:

enter image description here

As a result, any USB device plugged in on that side feels approximately the same temperature as the outside of the fan (!).

My laptop is also a little bit slow. Consequently, Windows 10 runs considerably hotter at idle than Ubuntu, and I have noticed that flash drives seem to get hot on Windows as well.

You can test if this is the case for you as well by running a very CPU-intensive program in Ubuntu (say, a 4-core build) and observing whether a plugged-in flash drive gets hot during that time.

Edit: I just now saw Justin's comment. I hope this provides enough information to stand on its own.

Nonny Moose

Posted 2018-07-12T12:26:45.507

Reputation: 541

8Regarding the edit at the end: comments can be purged, answers aren't (except for violating rules), so it is good that you wrote this answer. Moreover, answers in comments are against the rules, so that comment is even more likely to be deleted. – user922538 – 2018-07-12T16:50:46.340

1That is not possible, for my laptop the fans are in the front near the screen. And for desktop, fans and the port I use are in opposite side. – pah8J – 2018-07-12T22:45:50.850

@pah8J Oh, that's really interesting! I see that you have now tested this on a desktop as well. Now I think the reason I have never experienced the same issue is because the usb port got hot for a different reason. :) – Nonny Moose – 2018-07-13T14:25:24.030

6This guy gets it. +1. The temperature of the chassis (ground) seeks to equalize itself thermally into everything connected to it, even weak little plastic-encapsulated USB drives. – user2497 – 2018-07-13T20:44:17.943

@user2497, could you explain it more detailed? Or present this idea as an Answer? – pah8J – 2018-07-14T06:35:42.790

@pah8J Nonny Moose’s answer is correct, I just expanded on it. – user2497 – 2018-07-14T08:41:32.660

@pah8J Fans can be anywhere almost, at either air intake, outtake or somewhere inbetween. Perhaps the fan is insufficient, or filled with dust. Use your finger to locate the hot spot. – user2497 – 2018-07-14T10:59:52.227

And Windows and Linux might use a different fan setting (like "system cooling policy = passive" in Windows). – AndreKR – 2018-07-15T10:16:51.030

7

Windows does have this thing where you "can use USB sticks to speed up your computer". It does this by using otherwise-unused-stick-memory as a cache, reducing disk I/O. It's possible this extra activity is generating the excess heat.

It's possible to test this by turning off this option, and see if the stick still gets hot

Jennifer

Posted 2018-07-12T12:26:45.507

Reputation: 179

14It is never on by default, unless you choose it when prompted after inserting a compatible drive. – user1686 – 2018-07-12T18:11:24.043

USB-disks are faster to get small files than traditional non-ssd harddisks due to the disks are rotating which must be waited for on average half a rotation. SSD-disks are just as fast as USB-drives or faster so no advantage there. – Thorbjørn Ravn Andersen – 2018-07-12T22:20:14.610

2

This feature is called ReadyBoost and is disabled if Windows is installed to a solid-state drive (which we don't know is the case or not for the author of this question).

– BACON – 2018-07-12T23:01:54.397

1My laptop has its own SSD, but my desktop only have HDD. However, I think it need to enable this feature on a flash drive manually. And the size of Ready Boost is determined by user. – pah8J – 2018-07-13T00:41:49.913

@grawity Yeah, and OP says they have tested this with three different flash drives, so I consider it unlikely that they activated this three times without realising the connection to heat. – Revetahw says Reinstate Monica – 2018-07-14T20:11:28.273

5

There are a few possibilities here.

  • Windows does indeed have more software that automatically scans, integrity checks, power manages, and generally uses USB memory sticks. This can cause the drive to get more activity in Windows than Linux, assuming default installations of each.
  • The Linux drivers may be using the drive as a USB 2.x connected disk, whereas Windows may have a 3.x driver and it may be a 3.x port. This would increase usage speed and heat.
  • Windows is assuming power is required over the USB port for a larger disk and is supplying more, even if unnecessary, through the port. More precisely, the device requests more power from the port than is required. This is unlikely, but can occur if the firmware for the motherboard is permissive and the driver software for the motherboard and/or the devices involved is bugged/not functioning properly. I've seen this happen with older motherboards and some off-brand USB devices. It can also happen if there is a USB extension or dongle involved and the cable is damaged internally, or on a direct connection, the interface board itself is having problems. In theory, Windows 10 will catch this and notify of a power surge on the port, particularly if the cable is damaged, but it does not always successfully deactivate the port when it occurs.
  • Windows Antivirus software may be doing scans of the drive when it isn't in use.

CDove

Posted 2018-07-12T12:26:45.507

Reputation: 1 155

Thanks for answering! For the 2nd possibility I partly don't agree, because the data transfer rate is over 100MB per second. I don't think there is any possibility to use USB 2.x in such speed. – pah8J – 2018-07-12T12:56:44.720

For the last one the possibility is almost zero, because I disable real-time protection when I finished installing Windows. – pah8J – 2018-07-12T13:10:37.723

33It's also possible that the whole computer is actually getting hotter when running Windows, and the heat is being transfered to the USB drive. (Either through the metal or if the fan blows near it). If you have an external USB hub you could rule this out. – Justin – 2018-07-12T13:45:11.300

83Downvoteing for point #3. Windows is assuming power is required over the USB port for a larger disk and is supplying more, even if unnecessary, through the port. This is not how electronics work. Think of it as a rope, the USB drive can pull up to 2A from the port, but the port can not push the rope into the stick. – Matt Clark – 2018-07-12T14:13:07.233

21I don't think it warrants a downvote, but I agree with @MattClark. Even if a port is USB-PD compliant, a thumbdrive isn't going to request higher voltages so the motherboard will default to 5V (I'm pretty sure it's a HW implementation, so Windows doesn't even see this other than maybe a flag saying "this port has switched to USB-PD mode" or the like). At 5V, even if the motherboard is capable of supplying ludicrous amounts of power (say up to 20A even though that's not realistic), since the thumbdrive doesn't need that much power, you don't have 20A running through it. – Doktor J – 2018-07-12T16:50:08.950

223rd point is not a technical possibility. – user253751 – 2018-07-13T00:29:28.300

9"Windows is assuming power is required over the USB port for a larger disk and is supplying more, even if unnecessary, through the port. " plain wrong. You can not shove power to the USB stick and it has handle it. You provide some voltage source and the stick uses as much current, and thus power, as it needs to do the things it does. – PlasmaHH – 2018-07-13T10:27:15.827

17Modified answer still is physically impossible. The PC provides +5V on the USB. It may choose to cut off this +5V to a misbehaving device, but then you get 0V. Given a 5V supply, the power drawn depends solely on the USB device. – MSalters – 2018-07-13T12:20:18.020

Unless a port with some proprietary charging extension would decide to up the voltage - but that would usually not heat up but destroy the flash drive. – rackandboneman – 2018-07-13T20:59:58.797

4I downvoted because more than half of this answer (especially points 2 and 3) is not technically possible (2 is wrong because OP said the drive is not being accessed when it heats up, so whether Linux is accessing it as USB2 or USB3 is irrelevant -- it's not accessing it at all). The remaining points probably cover the actual cause, but as a whole this answer is misleading. – R.. GitHub STOP HELPING ICE – 2018-07-14T01:17:55.073

@MSalters hypothetically the flash drive could have a power sink resistor that it chooses to connect to the supply if it is permitted the extra power. Why would someone actually do that is a different question, but they certainly have the ability. – John Dvorak – 2018-07-14T19:11:44.833

1The voltage tends to stick at 5V. All that can be negotiated is an increased maximum current. A USB device is not going to negotiate for a higher than default current, and if it actually short circuited, the voltage would suddenly drop and the device would fail (and that's assuming the short didn't burn something out or trigger a fail safe first). The default current is 100mA (meaning the power will be 500mW). That means the maximum draw is 100mA, but not that the draw will be that high. – forest – 2018-07-15T02:13:38.297

In other words, even if the device negotiated a higher current than it needs, it would not actually draw that current since the voltage stays the same. You could have a USB flash drive ask for the highest current it possibly can, which is 500mA (1.8A in rare circumstances), and it would not heat up at all unless there is a short, in which case it would break immediately. Note that this is for USB 2.0. USB 3.0 has a different default (150mA) and maximum (900mA) current draw. The conclusion is the same. – forest – 2018-07-15T02:19:28.727

@DoktorJ It is the current that is negotiated, not the voltage (which is always 5V). And the maximum cannot be 20A physically. The bMaxPower attribute specifies in 2mA increments a value between 100mA and 500mA. You could not even request 20A, much less get it delivered. Interestingly, while the default for an unconfigured device is only guaranteed to be 100mA, most laptops will provide the full 500mA immediately. You're right in that you will not be drawing the maximum current if it's not needed. – forest – 2018-07-15T02:30:32.347

@forest incorrect. With the USB-PD specification, systems can now actually negotiate voltage... but yes, with a standard USB port, current is all that's negotiated. I was throwing out the 20A number as an intentional ludicrous upper limit.

– Doktor J – 2018-07-15T05:40:30.490

@DoktorJ That's for USB-C only it looks like? I'm not familiar with it, I only know about 1.1 and 2.0. Interesting to learn though! I'll have to read up on its specifications. – forest – 2018-07-15T05:54:25.080

@forest I believe USB-PD can be implemented on USB 2.0 ports. Most of this document is over my head, but it looks like compliance testing/certification permits implementation of USB-PD on USB 2.0.

– Doktor J – 2018-07-19T16:39:19.743

3

According to OP, the difference in temperature happens on the same laptop, same hardware, so any proximity to heat exhaust is inconsequential.

The difference is likely due to different handling of LPM - link power management. LPM is a more sophisticated version of USB SUSPEND function. USB 3.0 mass storage devices got hot when USB host controller disables LPM (or LPM is not enabled in USB device, this is a mutual thing). Apparently the Windows OS somehow has difficulty in configuring the xHCI controller to run LPM (or has it disabled), while Linux has no problem with that.

To check Windows configuration for LPM, this link might be of some help.

Ale..chenski

Posted 2018-07-12T12:26:45.507

Reputation: 9 749

Yes, this possibility is considerable. However, If the Windows does not suspend the Pen drive. What component of pen drive is the source of heat? (NAND, Controller or etc.) – pah8J – 2018-07-16T08:13:32.813

1@pah8J, in USB 3.0 LPM has three levels of link "suspend", U1, U2, and U3. U3 corresponds to old "USB_SUSPEND", and you are correct, U3 is not used for mass storage devices. However, U1 and U2 provide automatic power savings if properly enabled and meet specifications. If the link is active (U0), flash interface controller can consume 0.5-1 W and will be hot. – Ale..chenski – 2018-07-16T15:19:04.187

This make sense in some extent. 1 Watt can rise the temperature significantly due to plastic case of pen drive. However, there may be also other causes. Thanks for this point. – pah8J – 2018-07-18T03:49:50.620

@pah8J, to what extent? The easiest way to verify if the link goes in and out of U0 state is to use a device that shows the USB link status, like this one: https://www.amazon.com/Status-Speed-Visualizer-Analyzer-Tester/dp/B01M4QR9C7

– Ale..chenski – 2018-07-18T04:08:17.173

I believe that the mechanism you mentioned. But a little doubt that 1 W power output will bring the temperature in such high level. It is physics issue now instead of technological one. Maybe for high performance pen drive, the power consumption of controller will be higher. I will collect further information in related area. All in all, you point me a hopeful direction. Thanks sincerely. – pah8J – 2018-07-18T04:18:16.343

2

Another possibility is a difference in how Linux and Windows handle writing to a removable drive. Windows by default will force all writes to happen as soon as possible, in case you remove the drive. Linux, on the other hand, expects you unmount the drive before you remove it, and thus keeps a write cache in memory.

Hence it is possible that your drive is actually getting less use at a given time under Linux, as the writes would be more spread out, and even less writes may be required (if you modify a file that had not been written to the drive yet.)

trlkly

Posted 2018-07-12T12:26:45.507

Reputation: 1 236

I partly agree with you. Windows will set all removable device as hot-plug. However, for DD command, when finished executing dd if=path/to/liveimage.iso of=/dev/sd1 when I type sync, it executed less than 0.01 sec. Maybe, different distro's situations are different. Finally, I think this aspect may be have effect, but it is not the major cause. – pah8J – 2018-07-14T03:00:26.997

This distinction is not as you describe, but at most one of degree. Keep in mind also that the user said no operation was being done - so any usage is automatic background usage, or some unauthorized software behavior to begin with. – Chris Stratton – 2018-07-14T15:43:31.780