1

Is there a linux command that shows the disk plugin? What I want to do is looping and find new disk plugin, mount the new disk to some specified path and read the data in it, but it seems like a BIOS feature, how to list the plugin disk?

coanor
  • 3,746
  • 4
  • 50
  • 67
  • here, I got the answer: http://stackoverflow.com/questions/200960/find-all-storage-devices-attached-to-a-linux-machine – coanor Jan 27 '15 at 15:21

1 Answers1

1

Use udev to detect plugged/unplugged devices.

You can write a udev rule in order to detect a specific device you are interested.

Here is a tutorial on it.

deimus
  • 9,565
  • 12
  • 63
  • 107