/dev/random entropy on readonly file system
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
My hostapd works very well on my raspberry Pi3. But if I put root filesystem in readonly, it does not work. I have put some folders like /var/run and /tmp in a ramdisk filesystem.
I have seen something in log files when the root filesystem is readonly:
random: Cannot read from /dev/random: Resource temporarily unavailable
random: Got 0/20 bytes from /dev/random
random: Only 0/20 bytes of strong random data available from /dev/random
random: Not enough entropy pool available for secure operations
So I think something is wrong with /dev/random when the root filesystem is in readonly mode.
What should I do to fix that ?
-- Edit --
Here is the output of ls -l /dev/random:
crw-rw-rw- 1 root root 1, 8 nov. 12 16:17 /dev/random
devices random
 |Â
show 1 more comment
up vote
2
down vote
favorite
My hostapd works very well on my raspberry Pi3. But if I put root filesystem in readonly, it does not work. I have put some folders like /var/run and /tmp in a ramdisk filesystem.
I have seen something in log files when the root filesystem is readonly:
random: Cannot read from /dev/random: Resource temporarily unavailable
random: Got 0/20 bytes from /dev/random
random: Only 0/20 bytes of strong random data available from /dev/random
random: Not enough entropy pool available for secure operations
So I think something is wrong with /dev/random when the root filesystem is in readonly mode.
What should I do to fix that ?
-- Edit --
Here is the output of ls -l /dev/random:
crw-rw-rw- 1 root root 1, 8 nov. 12 16:17 /dev/random
devices random
Can you add the output ofls -l /dev/random
(to your question, not as a response comment)?
â Andy Dalton
Nov 10 '17 at 21:37
Do you have the hardware random number generator enabled? If no, you might take a look at: nico-maas.de/?p=1562 You'll want to install and configure packagerng-tools
.
â Andy Dalton
Nov 13 '17 at 16:01
It is a raspberry pi3 so i do not know if there is an hardware random number genrator...
â Bob5421
Nov 14 '17 at 18:20
Raspberry pi 3 has a RNG.
â Andy Dalton
Nov 14 '17 at 21:18
Okay so what should i do to make it work ?
â Bob5421
Nov 15 '17 at 13:17
 |Â
show 1 more comment
up vote
2
down vote
favorite
up vote
2
down vote
favorite
My hostapd works very well on my raspberry Pi3. But if I put root filesystem in readonly, it does not work. I have put some folders like /var/run and /tmp in a ramdisk filesystem.
I have seen something in log files when the root filesystem is readonly:
random: Cannot read from /dev/random: Resource temporarily unavailable
random: Got 0/20 bytes from /dev/random
random: Only 0/20 bytes of strong random data available from /dev/random
random: Not enough entropy pool available for secure operations
So I think something is wrong with /dev/random when the root filesystem is in readonly mode.
What should I do to fix that ?
-- Edit --
Here is the output of ls -l /dev/random:
crw-rw-rw- 1 root root 1, 8 nov. 12 16:17 /dev/random
devices random
My hostapd works very well on my raspberry Pi3. But if I put root filesystem in readonly, it does not work. I have put some folders like /var/run and /tmp in a ramdisk filesystem.
I have seen something in log files when the root filesystem is readonly:
random: Cannot read from /dev/random: Resource temporarily unavailable
random: Got 0/20 bytes from /dev/random
random: Only 0/20 bytes of strong random data available from /dev/random
random: Not enough entropy pool available for secure operations
So I think something is wrong with /dev/random when the root filesystem is in readonly mode.
What should I do to fix that ?
-- Edit --
Here is the output of ls -l /dev/random:
crw-rw-rw- 1 root root 1, 8 nov. 12 16:17 /dev/random
devices random
edited Nov 12 '17 at 17:38
asked Nov 10 '17 at 20:59
Bob5421
1112
1112
Can you add the output ofls -l /dev/random
(to your question, not as a response comment)?
â Andy Dalton
Nov 10 '17 at 21:37
Do you have the hardware random number generator enabled? If no, you might take a look at: nico-maas.de/?p=1562 You'll want to install and configure packagerng-tools
.
â Andy Dalton
Nov 13 '17 at 16:01
It is a raspberry pi3 so i do not know if there is an hardware random number genrator...
â Bob5421
Nov 14 '17 at 18:20
Raspberry pi 3 has a RNG.
â Andy Dalton
Nov 14 '17 at 21:18
Okay so what should i do to make it work ?
â Bob5421
Nov 15 '17 at 13:17
 |Â
show 1 more comment
Can you add the output ofls -l /dev/random
(to your question, not as a response comment)?
â Andy Dalton
Nov 10 '17 at 21:37
Do you have the hardware random number generator enabled? If no, you might take a look at: nico-maas.de/?p=1562 You'll want to install and configure packagerng-tools
.
â Andy Dalton
Nov 13 '17 at 16:01
It is a raspberry pi3 so i do not know if there is an hardware random number genrator...
â Bob5421
Nov 14 '17 at 18:20
Raspberry pi 3 has a RNG.
â Andy Dalton
Nov 14 '17 at 21:18
Okay so what should i do to make it work ?
â Bob5421
Nov 15 '17 at 13:17
Can you add the output of
ls -l /dev/random
(to your question, not as a response comment)?â Andy Dalton
Nov 10 '17 at 21:37
Can you add the output of
ls -l /dev/random
(to your question, not as a response comment)?â Andy Dalton
Nov 10 '17 at 21:37
Do you have the hardware random number generator enabled? If no, you might take a look at: nico-maas.de/?p=1562 You'll want to install and configure package
rng-tools
.â Andy Dalton
Nov 13 '17 at 16:01
Do you have the hardware random number generator enabled? If no, you might take a look at: nico-maas.de/?p=1562 You'll want to install and configure package
rng-tools
.â Andy Dalton
Nov 13 '17 at 16:01
It is a raspberry pi3 so i do not know if there is an hardware random number genrator...
â Bob5421
Nov 14 '17 at 18:20
It is a raspberry pi3 so i do not know if there is an hardware random number genrator...
â Bob5421
Nov 14 '17 at 18:20
Raspberry pi 3 has a RNG.
â Andy Dalton
Nov 14 '17 at 21:18
Raspberry pi 3 has a RNG.
â Andy Dalton
Nov 14 '17 at 21:18
Okay so what should i do to make it work ?
â Bob5421
Nov 15 '17 at 13:17
Okay so what should i do to make it work ?
â Bob5421
Nov 15 '17 at 13:17
 |Â
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403823%2fdev-random-entropy-on-readonly-file-system%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Can you add the output of
ls -l /dev/random
(to your question, not as a response comment)?â Andy Dalton
Nov 10 '17 at 21:37
Do you have the hardware random number generator enabled? If no, you might take a look at: nico-maas.de/?p=1562 You'll want to install and configure package
rng-tools
.â Andy Dalton
Nov 13 '17 at 16:01
It is a raspberry pi3 so i do not know if there is an hardware random number genrator...
â Bob5421
Nov 14 '17 at 18:20
Raspberry pi 3 has a RNG.
â Andy Dalton
Nov 14 '17 at 21:18
Okay so what should i do to make it work ?
â Bob5421
Nov 15 '17 at 13:17