Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [hot-plug]

The process of replacing or adding components without stopping or shutting down a computer system.

1
vote
2answers
32 views

Change CPU count on live Linux VM

Is it possible to change the number of VCPUs on a KVM virtual machine on Linux without stopping it first? The Linux kernel has calls for addition and removal of CPUs (CPU hotplug in the Kernel) for ...
0
votes
0answers
47 views

Udev - Network cable hotplug event not catched

I'm running a buildroot custom linux (kernel 4.9.87) on a custom board based on an Atmel Sama5d2. I'm trying to configure the network on the eth0 interface using dhcp only at hotplug. Originally, ...
1
vote
1answer
61 views

XFCE with laptop that is often plugged/unplugged to different displays

at work I was given a ubuntu laptop with gnome and unity. However I ran in a few issues, for example the fact that I could not get the screen to lock after some time and other stuff. As I am a XFCE ...
0
votes
1answer
169 views

Hotplug at boot in OpenWRT

I want to run some scripts at boot. I tried a lot of things but couldn't achieve. Here is the OpenWRT boot sequence : https://openwrt.org/docs/techref/preinit_mount After taking a look at this link ...
1
vote
0answers
320 views

Blank screen after sleeping: hotplug event: connector link-state is BAD

In the past my laptop worked well, but for the past months I have had issues with the laptop screen not being able to wake up after certain events. Basically, after I suspend the laptop there is an ...
2
votes
0answers
370 views

Configure external monitor with MacBook Air

I have a MacBook Air (13-inch, Early 2015) and I run Ubuntu 16.04 on it. Under Ubuntu I cannot detect the external monitor with the thunderbolt cable. Settings -> Displays doesn't show any other ...
2
votes
1answer
1k views

Use USBIP for devices that are being removed and reconnected

I am using usbip and a raspberry pi to extend the range of a wireless keyboard to a computer that is just a tad too far away for the keyboard to work reliably on its own. Sometimes the USB receiver ...
1
vote
0answers
69 views

Is it enough to just say `allow-hotplug eth0`? [duplicate]

Are the following statements in /etc/network/interfaces equivalent? allow-hotplug eth0 and.. auto eth0 allow-hotplug eth0 That is, does allow-hotplug do everything that auto does and more?
1
vote
1answer
2k views

Sata hotplug doesn't work

Can you help me understand, why my SATA hotplug doesn't work? When I plug sata disk, lsblk doesn't change. There is only my system disk /dev/sda. I have linux: $ uname -a Linux Z170-D3H 4.9.0-3-...
1
vote
2answers
887 views

CentOS 73: how to ifup a NIC automatically?

In CentOS 7.3, without Network Manager, how do I ensure a NIC being ifup automatically? I added HOTPLUG=yes in the /etc/sysconfig/network-scripts/ifcfg-eth1, but when I hotplug the NIC, the NIC is ...
3
votes
2answers
843 views

How do I configure an Arch Linux system to automatic mount an external harddisk when it is plugged in?

I am wondering how I can configure an Arch Linux system to mount an external hard disk when it is plugged in (as opposed to have it plugged in at startup). In order to to that, I added /dev/sdb1 /...
1
vote
0answers
29 views

Proper automount on systemd Linux systems [duplicate]

What is the proper way to do a boot/hot-plug automount for ATA and USB storage devices on Linux systems using systemd without requiring a GUI or a user having to be logged in? It seems that calling ...
1
vote
0answers
737 views

Automount local drives on boot and hot-plug

I am trying to automatically mount all readable internal and external drives on boot and on hot-plug if they are not already mounted, preferably as a non-root user. I cannot use fstab to do this ...
1
vote
0answers
86 views

Belkin thunderbold docking station with external monitor not working on macbook pro with Fedora 24?

I have a Macbook pro (late 2015) with a Belkin thunderbolt docking station. On that docking station, I have a screen connected to it via (mini) DisplayPort, along with other items (keyboard, mouse, ...
5
votes
1answer
338 views

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 ...
3
votes
5answers
4k views

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 ...
1
vote
1answer
2k views

udev monitor hotplug rule not running

I have setup a basic udev rule to detect when I connect or disconnect a mDP cable. The file is /etc/udev/rules.d/95-monitor-hotplug.rules KERNEL=="card0", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{...
1
vote
1answer
431 views

Different keyboard layout for each keyboard

my setup is the following: I have a notebook (with integrated keyboard/non-Apple running Arch) and an external keyboard (fancy Apple keyboard) The problem is that Apple uses a different internal ...
0
votes
1answer
436 views

Embedded linux hotplug changed mount point

I have a linux media player that was very common before android's age. It is a MIPS running Linux Venus 2.6.12.6 and has 2 sata, 2 usb and 1 sdcard port. Since the flash memory is very limited, I ...
6
votes
1answer
761 views

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. ...
4
votes
2answers
11k views

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 ...
1
vote
1answer
40 views

Pushing changes to driver repos

My understanding of dkms is that its a way to dynamically manage all connected/disconnected device drivers on a Linux system. If that's correct, then I have to imagine that it allows you to configure ...
4
votes
0answers
1k views

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 ...
1
vote
0answers
773 views

udev rules fail to run a script on addition of usb device

Here is a simple rule I created in /etc/udev/rules.d/21-persistent-local.rules for my Seagate 500 GB expansion drive which uses a USB interface on a Debian machine running inside a VM. ACTION=="add",...
1
vote
0answers
146 views

Hotplug Device Driver Priority

Is it possible to have more than one driver for one purpose (eg. USB) included in the Linux kernel? If so, then how does the kernel decide which one to load?
1
vote
1answer
255 views

What's hotplug?

Many questions are tagged : hot-plug . However , No wiki found in : Tag info I've read this: Modularized USB drivers are loaded by the generic /sbin/hotplug support in the ker- nel, which is ...
3
votes
1answer
2k views

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 ...
3
votes
0answers
924 views

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 ...
1
vote
1answer
912 views

Changing resolution : with X and without X

I'm working on an Ubuntu server without X and I would like to easily change the resolution. In order to do that, I have to specify GRUB_GFXPAYLOAD_LINUX=1280x800 in the file /etc/default/grub, then ...
4
votes
0answers
388 views

Raspbian: how ifplugd works on lo and other interface

On my raspbian, I'm wondering why ifplugd (link detection daemon for ethernet devices) is also running on the lo the loopback interface. The ps command displays: /usr/sbin/ifplugd -i lo -q -f -u0 -...
2
votes
2answers
432 views

Detecting the device of a crypto mount

I have an external eSATA-hdd on an OpenSUSE 12.2 system. The external hdd has an LVM on a dm-crypt partition. I mount it by powering it up and then doing rescan-scsi-bus.sh cryptsetup -v luksOpen ...
3
votes
1answer
4k views

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 ...
1
vote
2answers
98 views

What modules in the Linux source code take care of hot-pluggability?

Could someone shed more light on the code/modules that are responsible for the hot-pluggabilty of the hardware used in Linux machines?
61
votes
5answers
72k views

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 ...
6
votes
2answers
5k views

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 ...
10
votes
4answers
10k views

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 ...
3
votes
2answers
6k views

How do you force Linux to detect a PS/2 device (e.g. mouse) on demand?

I plugged in a PS/2 mouse while inside my Gnome desktop, but Linux doesn't recognize it. Linux will only recognize the PS/2 mouse if it is plugged in before booting the machine (like a normal ...
1
vote
4answers
8k views

cfgmgr like command under Linux?

cfgmgr is a command under AIX/ksh that checks for new hardware; e.g. new HDD's that have been added without a shutdown. Question: Are there any similar commands under Linux? If "fdisk -l" doesn't ...
20
votes
2answers
16k views

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 ...