LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   my linux error : Couldn't open /dev/null (read-only filesystem) (https://www.linuxquestions.org/questions/linux-general-1/my-linux-error-couldnt-open-dev-null-read-only-filesystem-109319/)

Darick Ang 10-27-2003 09:43 PM

my linux error : Couldn't open /dev/null (read-only filesystem)
 
Hi,

I got a serious problem, i suspect my linux is crash. when i boot up my linux server, it show a lot of failure due to the reason of 'couldn't open /dev/null (read-only filesystem)'. then it prompt me to key in the password of press CTRL-D to continue. i did key in my password and login successfully, then it show 'Repair filesystem:' instead of 'root:', and the whole partition is read-only, i can't change any single file. is anyone see this problem b4, please help me on this.

thanks

misophist 10-28-2003 08:46 AM

Have you done fsck? That's the first step of repairing the file system.

Robert0380 10-28-2003 12:00 PM

yea, when you put in the password, do this:


fsck /

if you have /usr /var/ or /home on different partitions, do the same for those:

fsck /usr
fsck /var and so on.

after u run fsck and repair the filesystem, the computer should be able to boot normally. if all goes well.

misophist 10-28-2003 01:27 PM

Depending on the file system you are using, you may have to use different forms of fsck. I should have mentioned this earlier. 'man fsck' should lead you in the right direction.


All times are GMT -5. The time now is 01:42 PM.