恢复linux服务器-segmentation fault错误

启动的时候就报下面的错误:
init:version 2.84 booting                        ok
welcome to /etc/rc.d/rc.sysinit: line 70 :  37 segmentation  fault    
LC_ALL=C grep -q "red hat"  /etc/redhat-release
red hat linux
press 'i' to enter interactive startup
mounting proc filesystem:                       failed
/etc/rc.d/rc.sysinit: line 90:  44 segmentation fault     LC_ALL=C grep -q/initrd/proc/mounts
configuring kernel parameters: error:/ proc must be mounter to mount /proc at boot you need an /etc/fstab line like :
/proc /proc  proc   defaults
in the meantime, mount /proc /proc -t proc              failed
setting clock   .......                                              ok
loading default keymap(us)                                     ok
setting hostname                                                  ok
/etc/rc.d/rc.sysinit: line 182: 68 segmentation fault    LC_ALL=C grep -iq "nousb" /proc//cmdline 2>;/dev/null
/etc/rc.d/rc.sysinit :line 182: 69 segmentation fault    LC_ALL=C grep -q "usb" /proc/device 2 >;/dev/null

解决方法
1)进入LINUX救援模式  linux rescue
2)Copy another pc OS(linux9.0/as4)(sbin,bin,rc.d/(rc,rc.local,rc.sysinit))
  to remove device
3)在救援模式下挂载移动设备(不进行chroot /mnt/sysimage的前提下)
  fdisk -l (查看移动设备)
  mount /mnt/sysimage/dev/sda1 /mnt/sysimage/mnt
4)Copy file
  cp /mnt/sysimage/mnt/sbin/* /mnt/sysimage/sbin
  cp /mnt/sysimage/mnt/bin/* /mnt/sysimage/bin
  cp /mnt/sysimage/etc/rc.d/rc /mnt/sysimage/etc/rc.d
  cp /mnt/sysimage/etc/rc.d/rc.local /mnt/sysimage/etc/rc.d
  cp /mnt/sysimage/etc/rc.d/rc.sysinit /mnt/sysimage/etc/rc.d
5)init 6 重启即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值