我想在我当前的设置上替换 Ubuntu Linux。目前我有一个双启动乌班图伴侣和Windows 10。我想用 Arch 替换 Ubuntu 安装。
但在这样做之前,我想知道在擦除/dev/sdc
和重新安装之前我应该做哪些准备。我使用 Grub2 来选择启动哪个操作系统。
$ dpkg --list | grep grub
ii grub-common 2.02~beta2-36ubuntu3.17 amd64 GRand Unified Bootloader (common files)
ii grub-efi-amd64 2.02~beta2-36ubuntu3.17 amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 version)
ii grub-efi-amd64-bin 2.02~beta2-36ubuntu3.17 amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 binaries)
ii grub-efi-amd64-signed 1.66.17+2.02~beta2-36ubuntu3.17 amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 version, signed)
ii grub2-common 2.02~beta2-36ubuntu3.17 amd64 GRand Unified Bootloader (common files for version 2)
ii grub2-themes-ubuntu-mate 0.3.7 all GRand Unified Bootloader, version 2 (ubuntu-mate theme)
那么应该保存设置吗?如果是,这是如何实现的。再往下你会看到我有三个硬盘
$ parted --list
Model: ATA Samsung SSD 840 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 106MB 105MB fat32 EFI system partition boot, esp
2 106MB 240MB 134MB Microsoft reserved partition msftres
3 240MB 250GB 249GB ntfs Basic data partition msftdata
4 250GB 250GB 472MB ntfs hidden, diag
Model: ATA ST1000LM024 HN-M (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 1000GB 1000GB primary ntfs
Model: ATA KINGSTON SV300S3 (scsi)
Disk /dev/sdc: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 EFI System Partition boot, esp
2 538MB 103GB 102GB ext4
3 103GB 120GB 17,1GB linux-swap(v1)
答案1
是的,您不需要做任何事情。只需删除 Ubuntu 并安装你想要的即可。新安装的Grub2本身就会发现。
答案2
首先你应该找到安装 Ubuntu 的 Ubuntu 根分区。安装 Arch 时只需替换该分区(为 Arch Linux 选择此分区)。如果你在 Arch 安装过程中删除 Ubuntu,这会很容易。对于 Grub2,它会在安装过程中询问您是否替换前一个。