我正在ThinkPad X220上安装NixO。虽然我对shell非常满意,但这是我第一次建立自己的系统,在尝试用fdisk
对硬盘进行分区时遇到了一些未知的情况。
笔记本电脑目前已经安装了Windows,我打算完全用NixOS替换它。我运行fdisk
来查看当前的分区,并用新的分区方案替换它们。
删除原始分区后,我创建了一个小型(500 the )引导分区,fdisk
报告:
Partition #1 contains a ntfs signature.
Do you want to remove the signature? [Y]es/[N]o:
我不知道这意味着什么,在googling上搜索"ntfs签名“并没有显示出任何有启发性的东西,所以我中止了整个过程(目前)。
有人能解释一下这一警告的意义吗?取消ntfs签名是否会对未来产生不利影响?
我还想知道是否应该尝试将驱动器从MBR转换为GPT,部分原因是许多人似乎建议使用gdisk
来管理分区。我不确定这个硬件是否支持GPT,以及它是通过BIOS还是UEFI引导。
作为参考,我的fdisk
会话有一个更完整的日志:
[root@nixos:~]# fdisk /dev/sda
Welcome to fdisk ...
Command (m for help): p
Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 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: dos
Disk identifier: 0x65f5b331
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1026047 1024000 500M 7 HPFS/NTFS/exFAT
/dev/sda2 1026048 199606271 198580224 94.7G 7 HPFS/NTFS/exFAT
/dev/sda3 199606272 234441646 34835375 16.6G 5 Extended
/dev/sda5 199608320 234440703 34832384 16.6G bc Acronis FAT32 LBA
Command (m for help): d
Partition number (1-3,5, default 5): 5
Partition 5 has been deleted.
Command (m for help): d
Partition number (1-3, default 3): 3
Partition 3 has been deleted.
Command (m for help): d
Partition number (1,2, default 2): 2
Partition 2 has been deleted.
Command (m for help): d
Selected partition 1
Partition 1 has been deleted.
Command (m for help): p
Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 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: dos
Disk identifier: 0x65f5b331
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-234441647, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-234441647, default 234441647): +500M
Created a new partition 1 of type 'Linux' and of size 500 MiB.
Partition #1 contains a ntfs signature.
Do you want to remove the signature? [Y]es/[N]o:
发布于 2017-10-04 03:02:12
好的,快速回答是:
是的,您可以移除ntfs标志,这是Windows的特性,您在安装NixO时不需要它。
第二个问题,有些人更喜欢GPT而不是MBR,因为您可以在磁盘上创建无限的分区.我使用MBR,有3个主分区(3个Linux发行版)和一个扩展分区,这是我的/home
。问题是,通常情况下,windows必须位于GPT分区上,因此如果您想要双引导或使用UEFI,那么您需要GPT。在这种情况下,需要运行gdisk
才能设置GPT标签。
https://unix.stackexchange.com/questions/395950
复制相似问题