Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a Ubuntu 10.04 LTS in a VirtualBox.

Running fsck -n indicates some orphan nodes exist in the root file system and I try to fix it with following actions:

1) edit /etc/default/rcS and set FSCKFIX=yes  
2) touch /forcefsck  
3) reboot  

The system reboots repeatedly with following error messages:

fsck terminated with status 3  
mountall main process terminated with status 4

Any help?

share|improve this question

migrated from stackoverflow.com Mar 8 '11 at 7:42

This question came from our site for professional and enthusiast programmers.

2  
This belongs to AskUbuntu: askubuntu.com –  Greg Mar 8 '11 at 6:45

1 Answer 1

On the next reboot, add init=/bin/sh to your kernel command line, fix the problem, sync and umount -oremount,readonly any mounted filesystems that you can, and then exit.

share|improve this answer
    
The server reboot AUTOMATICALLY after print error messages before any shell prompt showing :-( –  Smartkid Mar 8 '11 at 7:00
    
@Smartkid, you need to add that init=/bin/sh to your kernel command line, through grub. Hit e to edit the command line, add init=/bin/sh, then ^X to boot the edited kernel command line. –  sarnold Mar 8 '11 at 7:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.