gesshoku
Dabbler
- Joined
- Jun 23, 2012
- Messages
- 46
Hi there,
I did something as stupid as overwriting /bin/sh (not on purpose of course ;-)). Now my FreeNAS installation doesn't boot anymore. It will get stuck here (for obvious reasons):
I can access the rescue shell by specifying /rescue/sh as shell.
As per this link I have mounted the filesystem read-write:
Since my installation is not working anyway, I thought of taking a copy of /bin/sh of my other working FreeNAS system to overwrite the faulty one. I try to do this by issuing this command:
(working-sh being on an ISO mounted into my FreeNAS vm)
This results in the following error:
Any ideas on how I can accomplish this? Will this solve my issue at all? I am still not sure, if /bin/sh contains system specific entries.
Edit: So excited that I forgot to add some information on my build...
My FreeNAS Version is 11.2 (recently upgraded from 9.3).
It's running in a VM on ESXi 6.7 U1 with an IBM1015 (LSI IT Mode) passed through.
Hope this is all the information needed.
Thanks in advance.
gesshoku
I did something as stupid as overwriting /bin/sh (not on purpose of course ;-)). Now my FreeNAS installation doesn't boot anymore. It will get stuck here (for obvious reasons):
Code:
"Enter full pathname of shell or RETURN for /bin/sh:"
I can access the rescue shell by specifying /rescue/sh as shell.
As per this link I have mounted the filesystem read-write:
Code:
/rescue/mount -uw /
Since my installation is not working anyway, I thought of taking a copy of /bin/sh of my other working FreeNAS system to overwrite the faulty one. I try to do this by issuing this command:
Code:
mv working-sh /bin/sh
(working-sh being on an ISO mounted into my FreeNAS vm)
This results in the following error:
Code:
mv: rename working-sh to /bin/sh: Read-only file system
Any ideas on how I can accomplish this? Will this solve my issue at all? I am still not sure, if /bin/sh contains system specific entries.
Edit: So excited that I forgot to add some information on my build...
My FreeNAS Version is 11.2 (recently upgraded from 9.3).
It's running in a VM on ESXi 6.7 U1 with an IBM1015 (LSI IT Mode) passed through.
Hope this is all the information needed.
Thanks in advance.
gesshoku