歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> /dev/null丟失後

/dev/null丟失後

日期:2017/2/27 14:27:33   编辑:更多Linux
  事情是這樣的,一不小心把/dev/null刪掉了 系統文件/dev/null丟失怎麼辦呀 重啟時出現如下問題 /etc/rc.d/rc.sysinit:line 88: /dev/null: Read-only file system /etc/rc.d/rc.sysinit:line 99: /dev/null: Read-only file system configuring kernel parameters: dup2: Bad file descriptor [failed] Setting clock (localtime):Au 60A 18 18:05:04 CST 2005 dup2:Bad file descriptor [failed] loading default keymap (us): /etc/rc.d/rc.sysinit: line 159: /dev/null: Read-only file system [failed] Setting hostname snowtty: dup2:Bad file descriptor [failed] /etc/rc.d/rc.sysinit: line 176: /dev/null: Read-only file system Initializing USB controller (usb-uhci):dup2 : Bad file descriptor [failed] /etc/rc.d/rc.sysinit:line 187: /dev/null :Read-only file system Checking root filesystem dup2: Bad file descriptor [failed] *****An error occurred during the file system check *****Dropping you to a shell ; the system will reboot *****when you leave the shell. Give root passWord for maintenance 我被要求輸入管理員密碼之後需要修理文件系統。問題是根分區是被以只讀的方式安裝的!慘啊,什麼都沒有辦法做了。 有什麼辦法沒有?各位多謝了! 哎,, 由於裡面放了好多重要的數據,當時真是急死了,不過還好,算我心細,可能是這個文件丟失了好長時間了,只是沒有關,機,所以表現不出來,只是有一個時間出現過,我用普通user進入init5結果說是/dev/null有問題,那時我就知道點,結果後來不知道誰可能是為了玩QQ吧,,把我的機子給關了,結果就那樣了,後面我到vmware上把Linux中的dev/null刪了,還是出現這樣的問題,哎,,終於松了一口氣,Google中......... 用rescue模式進入系統, cd /mnt/sysimage/dev mknod null c 1 3 chmod 666 null reboot OK又見到熟悉的東東了, happy




Copyright © Linux教程網 All Rights Reserved