boot problem and vi doesn't work to modify fstab

Hi, the only one thing I changed is that I moved the SATA cable from connector 3 to connector 0 on the motherboard.

Now at boot I got a root mount error, and the following error message
Code:
the following file system had an unexpected inconsistency
Code:
enter full pathname of shell or RETURN for /bin/sh
Code:
can't stat /dev/ad3s2e
...
...
can't stat /dev/ad3s2f

Typing ? when I've to mount the root, I see that my actual disk is ad0, while system try to boot from ad3s2a. Thought this change is due to my change with SATA connector. Am I right?

Tried to run vi from terminal but it doesn't work, is an unknown command, and appears in /bin folder.

Apart from trying to put back the SATA connector, may I do something?
 
Did not get what you meant with 'appears in bin folder'. You could mount manually your /usr/ partition and use vi.

If it does not work, you could try ed (ed should work any time, and it is in /bin, but it's hard to use).

Also I could suggest you to use /dev/ufs naming instead of device nodes to have no such a problem in the future.
 
  • Thanks
Reactions: red
There is no vi in /bin. It's in /usr/bin and since /usr is not mounted, the system can't access it.

If the system disk is now seen as ad0, then tell the system to boot ad0s2a instead of ad3s2a. You can then mount the rest (including /usr), fix the /etc/fstab file and reboot normally.

Perhaps using labels can spare you from facing further problems in the future.
 
  • Thanks
Reactions: red
Back
Top