Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: Dev Random

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! NightShade03's Avatar
    Join Date
    Apr 2010
    New York

    Dev Random

    We want to create more entropy for an application so we setup:

    rm -f /dev/random
    ln -s /dev/urandom

    This is exactly what I want. However whenever I reboot the system the /dev/random file has been recreated and the soft link is gone. I can't seem to figure out why this happens.

  2. #2
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Seattle, WA, USA
    This happens because /dev does not contain normal files. /dev contains your devices, and it is populated dynamically as things change on the system (you plug in a USB key, etc.).

    If you want to make a "persistent" change to /dev, there are two options:

    1) Write a kernel module

    2) Write an init script

    The second is MUCH easier . Basically, write an init script that removes /dev/random and links it to /dev/urandom. This way, on boot, the action will be taken, and it will appear that the change is permanent.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts