misconfigured fstab file

darkstar

New Member


Messages: 10

Dear All,

I was misconfigure in fstab file and after reboot, my freebsd cannot boot. because wrong configure.

ufs: /dev/ad4s1e.noatime (/usr)
unknown error; help

so, how can i edit fstab file or change dot character with comma character ??

thank you
 

kamikaze

Well-Known Member

Reaction score: 75
Messages: 365

You can boot into single user mode, run mount -a and edit it with vi.
 
OP
darkstar

darkstar

New Member


Messages: 10

kamikaze said:
You can boot into single user mode, run mount -a and edit it with vi.

I got error after execute vi

# vi
vi: not found

My /usr slice cannot boot,. :(

# mount -a
mount: /dev/ad4s1e.noatime : No such file or directory
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 9,512
Messages: 34,309

Boot to single usermode

Then:

Code:
# fsck -y
# mount -u /
# /rescue/vi /etc/fstab
# mount -a
# exit
 
OP
darkstar

darkstar

New Member


Messages: 10

SirDice said:
Boot to single usermode

Then:

Code:
# fsck -y
# mount -u /
# /rescue/vi /etc/fstab
# mount -a
# exit


  1. when i execute fsck -y, i got error can't stat /dev/ad4s1e.noatime: No such file or directory

  • when i execute /rescue/vi /etc/fstab i got error vi: No terminal database found
 

kamikaze

Well-Known Member

Reaction score: 75
Messages: 365

You have to mount /usr manually, because the terminal-db is in /usr/share (makes /rescue/vi quite useless sometimes).

# /rescue/mount /dev/ad4s1f /usr
# /rescue/vi /etc/fstab
 

danger@

Administrator
Staff member
Administrator
Moderator
Developer

Reaction score: 369
Messages: 995

maybe `ee' would work (not sure though)...
 
OP
darkstar

darkstar

New Member


Messages: 10

Problem Solved

Thank you For kamikaze, SirDice and danger.

My problem is solve.
First, i boot freebsd in single user mode then i renamed fstab file with another name, then i maked new fstab file and type manually contains of fstab file with echo.
echo '/dev/ad4s1e /usr ufs rw 2 2' >> /etc/fstab
and what the result?
i got new fstab file. I reboot my FreeBSD, and my FreeBSD boot normally.

Thank You
 
Top