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

安装Lubuntu 17.10并删除Win7后,原硬盘分区(D:\、E:\)消失如何解决?

Fix Missing Windows Partitions (D:, E:) in Lubuntu

Hey there, let's work through this missing partitions problem—this is a pretty common hiccup when setting up Lubuntu, whether you're dual-booting or have removed Windows entirely. Let's break down the steps to get those partitions back visible.

First: Verify the Partitions Actually Exist

Before panicking, let's confirm if your old D:, E:\ partitions are still on the drive (not accidentally deleted during installation). We'll use two simple command-line tools:

  • Run lsblk in the terminal. This will list all your storage devices and their partitions. Look for entries with sizes matching your old Windows partitions—they might just be unmounted (no /mnt/... path next to them).
  • For more detail, run sudo fdisk -l. This will show you the file system type (look for NTFS—that's the Windows format) and the exact device name (like /dev/sda3 or /dev/sdb2).

If Partitions Exist but Are Unmounted: Manually Mount Them

If you see your partitions in the above commands but they aren't showing up in the file manager, you just need to mount them:

  1. Create a mount point (a folder where the partition will be accessible):
    sudo mkdir /mnt/windows-d
    # Repeat for E:\: sudo mkdir /mnt/windows-e
    
  2. Mount the NTFS partition (replace /dev/sda3 with your actual partition device name from fdisk -l):
    sudo mount -t ntfs-3g /dev/sda3 /mnt/windows-d
    
  3. Check if it works: Open your file manager and navigate to /mnt/windows-d, or run cd /mnt/windows-d && ls in the terminal.

Make Mounts Permanent (Auto-Mount on Boot)

To avoid mounting manually every time you start Lubuntu, add the partition to your fstab file:

  1. Open the fstab editor:
    sudo nano /etc/fstab
    
  2. Add a line at the bottom (replace the device name and mount point with your own):
    /dev/sda3 /mnt/windows-d ntfs-3g defaults,uid=1000,gid=1000 0 0
    
    • uid=1000 and gid=1000 ensure you (the regular user) have read/write access without using sudo.
  3. Save and exit: Press Ctrl+O, hit Enter, then Ctrl+X.
  4. Test the setup to make sure there are no errors:
    sudo mount -a
    

If Partitions Seem to Be Gone (After Deleting Windows)

If you removed Windows 7 and now the partitions are missing (but they showed up when you tried Lubuntu live), chances are the partition table might have been corrupted during installation, or you accidentally overwrote it. We can use testdisk to recover lost partitions:

  1. Install testdisk:
    sudo apt update && sudo apt install testdisk
    
  2. Run the tool:
    sudo testdisk
    
  3. Follow the wizard:
    • Select Create to make a new log file.
    • Choose your hard drive from the list (double-check the size to pick the right one).
    • Select the partition table type (most modern systems use Intel/PC).
    • Choose Analyze > Quick Search.
    • When testdisk finds your lost partitions, use the arrow keys to select them and press P to mark them as Primary (or L for Logical if they were part of an extended partition).
    • Once all lost partitions are marked, press Write to save the new partition table. Confirm with Y.
  4. Reboot your system, then check if the partitions appear using lsblk or the file manager.

Important Notes

  • Backup first: Before messing with partition tables or mounts, if you have critical data left on the drive, make a backup using a live USB if possible—mistakes can lead to data loss.
  • NTFS issues: If you get errors mounting NTFS, ensure Windows wasn't left in hibernation mode (if you were dual-booting). Since you removed Windows, this might not apply, but it's worth mentioning.

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.19 09:30:14