You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 17.10升级/重装异常后的数据恢复求助

解决Ubuntu升级失败后的 data recovery 方案

Hey there, let's work through this data recovery and system issue step by step—you've hit a rough patch with your Ubuntu setup, but we'll prioritize getting your data safe first.

第一步:进入Ubuntu试用模式访问硬盘

Grab that Ubuntu 17.10 USB installation drive you made, boot from it, and select "Try Ubuntu without installing". This will load a live environment where you can access your computer's hard drive without needing to log into your broken system.

第二步:挂载你的旧Ubuntu分区

  1. Open the file manager (it's the folder icon on the dock). Look in the left sidebar—you should see your internal hard drive partitions listed. Find the one that was your Ubuntu root partition (it's usually formatted as ext4 and will have a size matching your Ubuntu installation). Click it to mount it automatically.
  2. If you don't see it in the file manager, open a terminal (press Ctrl+Alt+T) and run:
    lsblk
    
    This will list all your storage devices and partitions. Identify your Ubuntu partition (look for the TYPE="part" entry with the right size), then mount it manually with:
    sudo mount /dev/sdXn /mnt
    
    Replace /dev/sdXn with your partition path (like /dev/sda5 for example).

第三步:备份你的重要数据

Once your old partition is mounted, plug in an external storage device (USB drive, external hard drive) and mount it too. Then navigate to /mnt/home/[your-username]/ (replace [your-username] with your actual Ubuntu username) and copy all critical files—documents, photos, downloads, code projects, and any personal config files—to your external drive.

Pro tip: Don't skip this step! Even if we can fix the system later, having a backup ensures you won't lose your data if something goes wrong during repairs.

第四步:修复或重新安装系统(可选,数据已备份后操作)

If you want to get Ubuntu working again after securing your data:

  • Try re-running the installer, but this time select "Something else" when asked about installation type. Manually select your existing Ubuntu root partition, set its mount point to /, and make sure the "Format" box is unchecked (unless you want a fresh start). If you're using UEFI boot, also select your EFI partition (formatted as fat32) and set its mount point to /boot/efi.
  • If the login loop was the original issue (before the failed install), once you have a working system again, you could check permissions on your home directory with sudo chown -R $USER:$USER /home/$USER to fix any ownership problems that might cause login failures.

内容的提问来源于stack exchange,提问作者Coma

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 10:44:46