Short story:
fsck "zero-sized" my /etc/passwd file. What's the best way to recover or recreate this file?
Full story:
I'm currently testing FreeBSD 9.0-RC3 on a Foxconn nT-A3500 Nettop computer.
After using chsh to change the default shell, I ran [cmd=]startx[/cmd] to start the Xorg desktop. The desktop was running fine with only a Firefox window open for about a minute, but then the system locked up and had to power cycle it.
fsck ran while rebooting and fixed some things on its own. Back on the login prompt, I was unable to log in: system was rejecting the password for my user account and the root account.
Rebooted once again and went into single user mode and found my /etc/passwd file had zero bytes in size. Now I'm thinking about how to get this file back. Is there any place where fsck puts broken files? Another way would probably to unpack this file from the distribution package and just add the missing user. But I've installed some packages which propably have added additional users into the system.
Any ideas on this?
fsck "zero-sized" my /etc/passwd file. What's the best way to recover or recreate this file?
Full story:
I'm currently testing FreeBSD 9.0-RC3 on a Foxconn nT-A3500 Nettop computer.
After using chsh to change the default shell, I ran [cmd=]startx[/cmd] to start the Xorg desktop. The desktop was running fine with only a Firefox window open for about a minute, but then the system locked up and had to power cycle it.
fsck ran while rebooting and fixed some things on its own. Back on the login prompt, I was unable to log in: system was rejecting the password for my user account and the root account.
Rebooted once again and went into single user mode and found my /etc/passwd file had zero bytes in size. Now I'm thinking about how to get this file back. Is there any place where fsck puts broken files? Another way would probably to unpack this file from the distribution package and just add the missing user. But I've installed some packages which propably have added additional users into the system.
Any ideas on this?