启动的时候就报下面的错误:
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 重启即可
恢复linux服务器-segmentation fault错误
最新推荐文章于 2024-07-05 14:48:37 发布