AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1888078
Accepted
siddhant singh
siddhant singh
Asked: 2025-03-23 23:43:50 +0800 CST2025-03-23 23:43:50 +0800 CST 2025-03-23 23:43:50 +0800 CST

如何将分区和结构从一个驱动器复制到另一个驱动器?

  • 772

我有一个双启动设置,最近得到了一个新的 SSD,我想将我的 Windows 分区转移到新的驱动器。

该驱动器如下所示:
在此处输入图片描述

Disk /dev/nvme1n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: INTEL SSDPEKNW512G8L                    
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: C7D99CBF-8EE2-464B-87CA-B6E9DA062ED4
Device             Start        End   Sectors   Size Type
/dev/nvme1n1p1      2048     534527    532480   260M EFI System
/dev/nvme1n1p2    534528     567295     32768    16M Microsoft reserved
/dev/nvme1n1p3    567296  367994879 367427584 175.2G Microsoft basic data
/dev/nvme1n1p4 367994880  986656766 618661887   295G Linux filesystem
/dev/nvme1n1p5 986656768  997142524  10485757     5G Microsoft basic data
/dev/nvme1n1p6 998166528 1000214527   2048000  1000M Windows recovery environmen
/dev/nvme1n1p7 997142528  998166523   1023996   500M EFI System

我运行以下 dd 命令将前 3 个分区传输到新磁盘:

sudo dd if=/dev/nvme1n1 of=/dev/nvme0n1 bs=1b count=367994880 status=progress
188362383872 bytes (188 GB, 175 GiB) copied, 3308 s, 56.9 MB/s
367994880+0 records in
367994880+0 records out
188413378560 bytes (188 GB, 175 GiB) copied, 3312.56 s, 56.9 MB/s

然而,分区表似乎存在一些问题,我无法使用 gdisk 解决:

GPT fdisk (gdisk) version 1.0.8

Warning! Disk size is smaller than the main header indicates! Loading
secondary header from the last sector of the disk! You should use 'v' to
verify disk integrity, and perhaps options on the experts' menu to repair
the disk.
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: ERROR
Main partition table: OK
Backup partition table: ERROR

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: damaged

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************

我尝试e将备份数据结构重新定位到磁盘末尾,但没有成功

Caution: The CRC for the backup partition table is invalid. This table may
be corrupt. This program will automatically create a new backup partition
table when you save your partitions.

Problem: partition 4 is too big for the disk.

Problem: partition 5 is too big for the disk.

Problem: partition 6 is too big for the disk.

Problem: partition 7 is too big for the disk.

Warning! Secondary partition table overlaps the last partition by
23441393 blocks!
You will need to delete this partition or resize it in another utility.

Identified 6 problems!
hard-drive
  • 1 1 个回答
  • 23 Views

1 个回答

  • Voted
  1. Best Answer
    grawity
    2025-03-23T23:52:33+08:002025-03-23T23:52:33+08:00

    复制之后这些结果都是正常的dd。

    • 您不仅复制了前 3 个分区,还复制了整个分区表,包括所有分区的条目。由于实际分区未被复制,因此您必须使用dfdisk 或 gdisk 中的命令手动删除这些分区条目。

    • GPT 分区表存在于两个位置:磁盘的开头(主)和磁盘的结尾(备份)。由于您复制了一个,而没有复制另一个,因此新磁盘仅在备份表所在的末尾有垃圾。fdisk 或 gdisk 将在之后修复此问题e,然后w写出分区表(例如,在您修复第一个问题之后)。

    • 0

相关问题

  • 可以读取硬盘驱动器并专门写入 RAM 的系统?

  • 5 年后我应该更换/升级我的硬盘吗?

  • 我应该对用于存储的辅助(非操作系统)SSD 进行分区吗?[关闭]

  • 在 Windows 10 中运行 CrystalDiskMark 会导致 BSOD

  • “写悬崖”现象是否只发生在SSD盘上?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve