The process of replacing or adding components without stopping or shutting down a computer system.
Questions tagged [hot-plug]
52 questions
86
votes
6 answers
How can I safely remove a SATA disk from a running system?
I sometimes need to plug a disk into a disk bay. At other times, I have the very weird setup of connecting a SSD using a SATA-eSATA cable on my laptop while pulling power from a desktop.
How can I safely remove the SATA disk from the system? This…
Lekensteyn
- 20,173
- 18
- 71
- 111
25
votes
2 answers
What happens when a USB drive is plugged in?
What is the flow of USB events from kernel space to user space? I get a popup on my desktop when I plug in a USB drive -- what is the sequence of events that leads from detecting the new USB drive to mounting it and showing that popup?
Navaneeth Sen
- 9,369
- 17
- 58
- 65
13
votes
2 answers
Prevent keyboard layout reset when USB keyboard is plugged in
Whenever I plug in a USB keyboard, the layout of all keyboards is reset to some system default (a US layout which doesn't have modifiers and other keys the way I want them). I've observed this on many Debian and Ubuntu systems, including Ubuntu…
Gilles 'SO- stop being evil'
- 807,993
- 194
- 1,674
- 2,175
9
votes
5 answers
Find when new hardware is connected on FreeBSD
How can I find out when a device is connected to my FreeBSD machine? Lets say I plug in a USB device, HDMI device, Bluetooth or something like that.
Can I have a console output to say [device] and gives some output about the device?
user1610950
- 759
- 2
- 9
- 22
9
votes
4 answers
How can I switch to my USB headset automagically when it's plugged in?
I'm running Funtoo Linux, a Gentoo derivative. My two new Plantronics USB headsets (one wired, one wireless) work nicely. I plug one in, ALSA notices it, and if I manually set an application to use it instead of the default devices, it will.
I'd…
HedgeMage
- 439
- 1
- 4
- 13
8
votes
2 answers
How to check if a drive supports hotswap?
Not all SATA drives support hot-swap. Especially older models do not seem to work correctly and require the system to be rebooted, despite the fact that the controller works well with newer drives.
QUESTION: How do I check if a drive supports…
Konrad Gajewski
- 437
- 5
- 14
7
votes
2 answers
VirtualBox guest: 16 CPUs detected but only 1 online
I am running VirtualBox (using the Qiime image http://qiime.org/install/virtual_box.html)
The physical hardware is a 32 core machine. The virtual machine in VirtualBox has been given 16 cores.
When booting I get:
Ubuntu 10.04.1 LTS
Linux…
Ole Tange
- 33,591
- 31
- 102
- 198
7
votes
2 answers
On Linux, (how) can I "hot-unplug" memory?
This is what I've tried:
sudo zsh -c 'echo offline >/sys/devices/system/memory/memory109/state'`
and got the following error:
zsh:echo:1: write error: device or resource busy
Do I perhaps need to make sure that the memory module that I am about…
Wizek
- 171
- 5
7
votes
2 answers
Is it possible to simulate/force/fake an USB device unplug and replug on Linux?
So I've got a strange problem that I've been running onto. I've got a bitcoin usb miner, Bitfury, and I'm using CGMiner to mine.
When I start the application, as root, the USB device is not detected automatically. CGMiner only detects the stick when…
user63936
- 71
- 1
- 2
6
votes
1 answer
How to prevent kernel or any broadcast messages from flooding the TTYs?
Because of some hot-plugging issue, similar to what talked of here, the TTY displays show a continuous stream of messages (which are also logged in the /var/log directory). Every text I key in flows away visually, but it does take the inputs (I can…
rusty
- 1,841
- 6
- 21
- 25
5
votes
2 answers
Ethernet to USB adapter on Linux
I've recently bought an Ethernet to USB adapter.
When I plug this into my computer running Linux (Ubuntu in my case) , this just works automatically, and I can see an internet connection over this interface without doing anything.
What I want to…
Engineer999
- 1,111
- 2
- 15
- 32
4
votes
1 answer
How to check if hot-swap or hot-plug are activated on my Linux machine
I have Ubuntu 12.04.1 LTS 64-bit on a PowerEdge 2900. My current setup has two 300GB disks (no RAID), but I want migrate the system to three new 600GB disks. I'm trying to connect the new disks, make a RAID5 array, and copy my partitions to the new…
rkmax
- 354
- 9
- 19
4
votes
2 answers
dmesg: pci BAR 7: can't assign io
I have VMware virtual machine running Debian Wheezy. I have compiled my own kernel 3.14. I have noticed dmesg is flooded with messages pci BAR 7: can't assign io (size 0x1000).
I have no idea what these messages mean. The VM seems to be running OK,…
Martin Vegter
- 69
- 66
- 195
- 326
4
votes
0 answers
Keep keyboard layout upon inserting external keyboard
I have a custom keyboard layout, that I enable using this commands:
setxkbmap -verbose us -variant altgr-intl
xmodmap -verbose /home/coub/.myxmodmap
This works just fine, the thing is, that when I attach an external keyboard, the attaching will…
ryskajakub
- 141
- 3
4
votes
0 answers
The proper way to turn off an external sata encolsure?
I have an e-sata external enclosure with a port expander and 4 sata disks in it that I use for periodic backups. I have what I think is a sound method for powering it off, but not sure if it is the best method. After unmounting the filesystem and…
casey
- 14,584
- 5
- 45
- 62