2

I mistakenly removed my sd* device files via the following command: rm /dev/sd*. Is it possible to recreate the device files via mknod?

1
  • Yes it is possible to recreate them. You just need to rescan the SCSI bus. The command to rescan for new hardware depends mainly on the manufacturer of your hardware. For instance, at the times of HP DL380 machines, there was hp_rescan -a. Don't know what hardware you have, hence don't know which exact command you need to run.
    – MelBurslan
    Jun 3, 2016 at 14:28

2 Answers 2

3

You can try running

# udevadm trigger

Or restart the udev daemon.

1

If you have a file named MAKEDEV ( yes upper case) in /dev directory, you can try to run it.

HP UX use insf -e.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .