V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
simenet
V2EX  ›  Linux

急救,误删除系统文件

  •  
  •   simenet · Jun 25, 2019 · 3687 views
    This topic created in 2507 days ago, the information mentioned may be changed or developed.
    各位大神问一个事情 centos 7 系统 /usr/lib/locale/locale-archive 被误删除 无法启动 无法连接。。。我是外行 现在我想能不能把这台丢失文件的硬盘拿下来 ,挂载到正常的电脑上面,把丢失的文件拷贝到坏的机器上 ,,能不能修复
    1 replies    2019-07-07 02:42:13 +08:00
    Hardrain
        1
    Hardrain  
       Jul 7, 2019
    理论上可以
    但建议你用完全一样的环境,比如虚拟机安装好 CentOS 7, 更新完成后把硬盘在虚拟机里挂载再拷。
    注意权限和 ownership。

    如果有可能建议 chroot 进去(我平时用 debian/ubuntu 和 arch,对 RH 系不熟悉,不知能否做到)
    用 rpm/yum/dnf 查找这个文件属于哪个包,在 chroot 环境里重装这个包是最保险的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3248 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 14:07 · PVG 22:07 · LAX 07:07 · JFK 10:07
    ♥ Do have faith in what you're doing.