我曾经dd
在戴尔 XPS 9360 上将我的旧 SATA SSD 克隆到一个新的更大的 NVMe 模型中,并将 SATA 配置从原始 RAID On 切换到 AHCI 以使其启动。它可以工作,但新磁盘感觉比我的旧 SSD 慢很多,尤其是在启动过程中。与我之前的约 20 秒相比,启动时间在几分钟内就增加了。
我在某处读到,对于 M.2 NVMe PCIe 芯片,最好将 SATA 切换为禁用而不是 AHCI。是这样吗?
如果是,我怎样才能安全地切换模式?(我尝试在 BIOS 上切换它,但无法识别 SSD,我无法从它启动)。
如果我应该坚持使用 AHCI,我怎样才能获得更快的启动时间?(已在 BIOS 中启用 Fastboot)
最初提出的问题(但被认为是题外话)here
lshw:
$ sudo lshw
## output trimmed ##
*-pci:3
description: PCI bridge
product: Intel Corporation
vendor: Intel Corporation
physical id: 1d
bus info: pci@0000:00:1d.0
version: f1
width: 32 bits
clock: 33MHz
capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:125 memory:dc200000-dc2fffff
*-storage
description: Non-Volatile memory controller
product: Toshiba America Info Systems
vendor: Toshiba America Info Systems
physical id: 0
bus info: pci@0000:3c:00.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: storage pm msi pciexpress msix nvm_express bus_master cap_list
configuration: driver=nvme latency=0
resources: irq:16 memory:dc200000-dc203fff
## output trimmed ##
磁盘:
$ sudo fdisk -l
Disk /dev/loop0: 86,6 MiB, 90828800 bytes, 177400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop1: 86,6 MiB, 90812416 bytes, 177368 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop2: 86,6 MiB, 90759168 bytes, 177264 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/nvme0n1: 953,9 GiB, 1024209543168 bytes, 2000409264 sectors
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: A4EB683B-DB3D-49FD-AA58-67970447597C
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
/dev/nvme0n1p2 1050624 1550335 499712 244M Linux filesystem
/dev/nvme0n1p3 1550336 2000409230 1998858895 953,1G Linux filesystem
Disk /dev/mapper/sda3_crypt: 953,1 GiB, 1023413657088 bytes, 1998854799 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/mint--vg-root: 951,2 GiB, 1021388521472 bytes, 1994899456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/mint--vg-swap_1: 1,9 GiB, 2021654528 bytes, 3948544 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
高清晰度:
$ sudo hdparm -Tt --direct /dev/nvme0n1
/dev/nvme0n1:
Timing O_DIRECT cached reads: 1952 MB in 2.00 seconds = 976.68 MB/sec
Timing O_DIRECT disk reads: 2226 MB in 3.00 seconds = 741.09 MB/sec
$ sudo hdparm -Tt /dev/nvme0n1
/dev/nvme0n1:
Timing cached reads: 16664 MB in 1.99 seconds = 8352.90 MB/sec
Timing buffered disk reads: 2296 MB in 3.00 seconds = 765.09 MB/sec
lsb_release:
$ lsb_release -a
LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: LinuxMint
Description: Linux Mint 18.1 Serena
Release: 18.1
Codename: serena
姓名:
$ uname -a
Linux ricardo-ssd 4.4.0-128-generic #154-Ubuntu SMP Fri May 25 14:15:18 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux