windows10+manjaro双系统安装及维维护_manjaro dual boot-程序员宅基地

Manjaro is a desktop Linux distribution that’s based on Arch Linux. In this article, you’ll learn how to install it alongside Windows 10 on a computer with UEFI firmware and a single hard drive.
In other words, this article shows how to dual-boot Manjaro Linux and Windows 10 on a computer with UEFI firmware.

At the end, GRUB, the Manjaro boot manager/boot loader, will be the default boot manager of the computer, which will give you the option of booting into Manjaro or Windows 10 whenever you (re)boot the computer.

First Step – Get Your Windows 10 Computer Ready
  1. For a pain-free and successful operation of the sort that, it is recommended that you disable Secure Boot. How this is done depends on your computer, but if you have the same Lenovo laptop I used for this tutorial, see How to disable Secure Boot on a Lenovo G50 laptop. On an HP 250 G5 laptop, see this guide.

  2. From the BIOS or UEFI setup utility, configure the computer to boot from external media.

  3. After that, you need to free up disk space from your computer by shrinking the C drive or other partition with enough free space on it. Getting that done is fairly simple by using the Windows 10 partition manager. When completed, the partition should show partitions and a free disk space similar to the one in Figure 1.

Windows 10 C drive
Figure 1: Free space recovered from Windows 10 C drive

Create a Bootable USB Stick of Manjaro

The next step in this operation is to download an installation image of the latest Manjaro Linux. The distribution comes in several desktop flavors, but for this article, I used an installation image of the KDE edition – Manjaro KDE 16.10. It and other desktop editions of the distribution are available for download at the project’s download page.

After the download has completed, you may now use it to create a bootable USB stick. To accomplish that on Windows 10, use this article as a guide. On any Linux distribution, the simplest method is to use the following command:

Create a bootable USB stick of Manjaro Linux

In the next step, you’ll use that bootable USB stick to install your favorite desktop flavor of Manjaro alongside Windows 10.

Dual-boot Manjaro Linux With Windows 10

If you need to encrypt the Manjaro 16.10 side of this setup, see Disk encryption with Calamares, the Linux installerfor assistance in using the installer’s disk encryption feature.

If you follow the steps as given here, you should have yourself a dual-boot system running your favorite desktop flavor of Manjaro Linux and Windows 10 in about 12 minutes. So if you’ve not done so already, insert the bootable USB stick you created in the previous step in a free USB port and reboot the computer. If it’s been configured in the BIOS or UEFI setup utility, it should boot into the USB stick. If it does not, access the computer’s boot menu and select the appropriate entry. In Figure 2, that entry is EFI USB Device (USB Flash Disk), and it should be the same on your computer.

Computer boot options
Figure 2: Computer boot menu showing the boot options

Let the computer boot into the Manjaro Live desktop. While on there, launch Calamares, the distribution’s graphical installation program. The step after the first step, should look just like the one shown in Figure 2, which gives you several disk partitioning options.

Calamares disk partitioning options
Figure 2: Disk partitioning options of Calamares

The Replace a partition option will take any existing partition and repartition it for Manjaro. So if you select the free space that you recovered from your C drive, it will partition it for Manjaro. However, the installer will create just one partition if you select that option.

What we want to do here, is create three partitions, mounted at / (root), /home and swap. And the option that will make that possible is Manual partitioning.

Calamares replace disk partition
Figure 3: Replace disk partitioning option of Calamares

So select it and click the Next button.

Manual disk partitioning option of Calamares
Figure 4: Manual disk partitioning option of Calamares

That will take you to the manual disk partitioning interface, where all existing partitions and the free space, will be listed. In Figure 5, partitions 1 to 4 are the Windows 10 partitions. Though it’s not indicated as such, partition 2 (/dev/sdb2), is the EFI System Partition (ESP). That’s where Windows 10’s boot loader is installed, and where GRUB, the (Manjaro) Linux boot loader, will also be installed. To start creating partitions, select the free space as shown in Figure 5, then click the Create button. That procedure has to be repeated for all the partitions you’ll be creating.

Calamares manual disk partitioning interface
Figure 5: Manual disk partitioning interface of Calamares

That should open the installer’s partition editing window, shown in Figure 6. The only options we’ll need to modify are Size, File System, and Mount Point. For the root and /home partitions, we’ll be using the default file system, so there will no need to modify that when creating those partitions. Note that the installer does have support for disk encryption, but for this setup, we’ll not be using that feature.

Calamares disk partition editor
Figure 6: Disk partition editor of Calamares

The first partition we’ll be creating will be mounted at /, and you can assign from 20,000 MB (20 GB) to 50.000 MB (50 GB) to it. A default installation of Manjaro 16.10 KDE takes up less than 7 GB of disk space, so if you don’t have that much free disk space to spare, less will do, provided it’s not less than 7 GB. For the File System option, leave it at ext4. Click OK when you’re finished setting the options.

Manjaro 16.10 root partition
Figure 7: Creating root partition for Manjaro 16.10 on Calamares

For the next partition, which will be mounted at /home, assign as much disk space as you can afford to spare, and leave the File System at the default. OK.

Manjaro 16.10 home partition
Figure 8: Creating home partition for Manjaro 16.10 on Calamares

The last partition will be for swap, disk space that the system may use as (virtual) memory. From Use as, select linuxswap, then assign some disk space to it. About 2000 MB (2GB) to 4000 MB (4 GB) should do. Less if you don’t have that much disk space to spare. OK.

Manjaro 16.10 swap partition
Figure 9: Creating swap partition for Manjaro 16.10 on Calamares

Back to the manual partitioning window for the last time, the partitions you just created will be listed under the existing (Windows 10) partitions. One last task that needs to be completed here before moving to the next step, is specify the ESP. That should be /dev/sdb2, so click on it.

Manjaro 16.10 partitions
Figure 10: Complete partitions for Manjaro 16.10 on Calamares

In the partition editor’s window that opens, set the Mount Point to /boot/efi, then click OK. Do not modify any other option in this window.

Boot EFI partition Manjaro 16.10
Figure 11: Configure System EFI partition for dual-booting Windows 10 and Manjaro 16.10

All should now be set, and you may click Next.

System EFI partition Manjaro 16.10
Figure 12: Completed System EFI partition for dual-booting Windows 10 and Manjaro 16.10

This shows you a summary of all the tasks the installer is going to perform. If you agree, click Next.

Manjaro 16.10 KDE
Figure 13: Summary of installation options for dual-booting Windows 10 and Manjaro 16.10

Boot Into Your New Dual-boot System And Update GRUB

After installation has completed, attempting to reboot into your new dual-boot system will first take you to the GRUB menu, which will be just like the one in Figure 14. Notice that there’s no entry for the Windows 10 boot manager, so it won’t be possible to boot into Windows 10 from here.

GRUB menu of Manjaro Linux
Figure 14: GRUB menu of Manjaro after installing Manjaro alongside Windows 10

We’ll correct that in a moment. Right now, boot into your new installation of Manjaro. Once logged in, open the terminal application, then type sudo update-grub. The output should match that shown below.

sudo update-grub

After that, rebooting the computer will show a GRUB boot manager interface with an entry for Windows 10, besides the entries for Manjaro Linux. And GRUB will still remain the default boot manager. After making sure that you can still boot into Manjaro, boot into Windows 10 also. If you did all as specified in this article, you should be able to boot into both systems. Enjoy your dual-boot system running Manjaro 16.10 and Windows 10.

Manjaro update-grub
Figure 15: GRUB menu of Manjaro after updating GRUB on a dual-boot system between Manjaro and Windows 10

日常维护

1.如果我在Windows系统里面重新调整了分区,我该怎么办?

例如,我现在windows系统里面只有C盘,我通过分区,增加了了一个D盘,再次启动后,会出现错误:

error:unknown filesystem   
Entering rescue mode...
grub rescue>

解决办法是:

grub rescue>ls
在这里循环使用下面的命令,直到找到了正确的系统位置
grub rescue>ls (hd0,gpt6)/boot/grub

grub rescue>set root=(hd0,gpt6)/boot/grub

grub rescue>set prefix=(hd0,gpt6)/boot/grub

grub rescue>insmod normal

grub rescue>normal

这样就可以重新进入到manjaro里面了

进入后

在终端输入

sudo update-grub
sudo grub-install /dev/sda    //sda是你的启动磁盘即可
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/github_36326955/article/details/79421914

智能推荐

(转载)java synchronized详解-程序员宅基地

文章浏览阅读422次。java synchronized详解记下来,很重要。Java语言的关键字,当它用来修饰一个方法或者一个代码块的时候,能够保证在同一时刻最多只有一个线程执行该段代码。 一、当两个并发线程访问同一个对象object中的这个synchronized(this)同步代码块时,一个时间内只能有一个线程得到执行。另一个线程必须等待当前线程执行完这个代码块以后才能执行该代码块..._java make synchronized invalid

Android 多种投屏神器(Vysor,Total Control,scrcpy )-程序员宅基地

文章浏览阅读1.9w次,点赞6次,收藏32次。一,Vysor1,Vysor特点及优点特点或者说优点:极强的跨平台性能,Mac、Windows、Linux系统上都可以用;免费;无需Android系统Root 即可玩转电脑控制Android 设备;2,官网https://www.vysor.io/3,使用3.1,Win客户端(建议使用)直接下载windows客户端安装,运行就可以使用,使用也很简单,可以通过局域网和数据线连接Android设备,然后实现投屏;3.2,Chrome浏览器3.2.1,从官网Download进入_total control

Java反射机制_object o3 = m; object o4 = n; system.out.println(o-程序员宅基地

文章浏览阅读144次。概念:在运行状态中,对于任意一个类,都能够知道这个类的所有属性和方法;对于任意一个对象,都能够调用它的任意方法和属性;这种动态获取信息以及动态调用对象方法的功能称为 Java 语言的反射机制。简单来说,反射机制指的是程序在运行时能够获取自身的信息。在 Java 中,只要给定类的名字,就可以通过反射机制来获得类的所有信息。类的加载机制:new 对象()1.JVM加载对象.class文件1.1JVM在硬盘找对象.class文件并读取到内存中1.2JVM自动创建..._object o3 = m; object o4 = n; system.out.println(o3 == o4)

NDK各个版本,待后续更新_android-ndk-r10e和ndk 29差别-程序员宅基地

文章浏览阅读414次。ndk_r15c (July 2017)Windows 32-bit :https://dl.google.com/android/repository/android-ndk-r15c-windows-x86.zipWindows 64-bit :https://dl.google.com/android/repository/android-ndk-r15c-windows-x86_64.zipMac OS X :https://dl.google.com/android/repositor_android-ndk-r10e和ndk 29差别

Linux常用命令—grep_linux命令+grep-程序员宅基地

文章浏览阅读4.1k次,点赞3次,收藏16次。简介grep命令(Global Regular Expression Print)是 Linux系统中一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹 配的行打印出来 。grep 是linux中最为常用的三大文本(awk,sed,grep)处理工具之一,所以有必要掌握其用法。grep家族总共有三个成员构成:grep、egrep、fgrep。使用格式grep [选项] ..._linux命令+grep

关于the selection cannot be run on any server错误的问题,如何快速的解决。-程序员宅基地

文章浏览阅读3.9w次,点赞29次,收藏121次。最近在导入外来项目时,遇到了一个难题,就是出现了图中的错误。the selection cannot be run on any server(无法在任何服务器上运行所选内容)这个错误的原因在于Dynamic Web Module 的版本与server不匹配。Dynamic Web Module的版本可以通过右键项目名->properties->Project Facets可以..._the selection cannot be run on any server

随便推点

Cookie,会话,令牌-程序员宅基地

文章浏览阅读804次。会话cookieAre you new to web-development, feeling confused with different Web Storage elements? 您是Web开发的新手,对不同的Web存储元素感到困惑吗? If yes, then you are at the right place This article will give you a brief e..._会话和令牌

Linux查找文本中指定字符的小技巧_linux查找指定字符后的数据-程序员宅基地

文章浏览阅读3.6k次。在Linux的vi编辑器中,如果要查看指定文件中的某项内容,由于内容过于庞大,可以打开vi编辑器后再打一个【/】,括号中间的字符,然后输入你要查找的字符这样就可以找到你需要的字符了,方便我们查看大容量的日志文件。_linux查找指定字符后的数据

编译chromium 总结_<includepath>$(includepath);$(dxsdk_dir)include</i-程序员宅基地

文章浏览阅读2.5k次。编译chromium 总结http://www.chromium.org/developers/how-tos/build-instructions-windows这是官网的详细地址,但我只用他的说明还不够 可以参考这篇文章http://blog.sina.com.cn/s/blog_41608ead0101578b.htmlwin7+vs2010+vs2010SP1+DIR_$(includepath);$(dxsdk_dir)include

Struts-笔记-2-程序员宅基地

文章浏览阅读61次。2 .搭建Struts开发环境 2.1 搭建环境l 导入jar 包。 Add Library 导入jar包 l 建立一个配置文件:struts-config.xml &lt...

【杭电oj】1872 - 稳定排序(结构体排序)_wygoj-程序员宅基地

文章浏览阅读695次。稳定排序Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4632 Accepted Submission(s): 1802Problem Description大家都知道,快速排序是不稳定的排序方法。_wygoj

Java中 GC是什么_gc钱包是干嘛的?-程序员宅基地

文章浏览阅读2.3w次,点赞9次,收藏17次。Java GC(Garbage Collection,垃圾收集,垃圾回收)机制,是Java与C++/C的主要区别之一,在使用JAVA的时候,一般不需要专门编写内存回收和垃圾清理代 码。这是因为在Java虚拟机中,存在自动内存管理和垃圾清扫机制。电脑的内存大小的不变的,当我们使用对象的时候,如使用New关键字的时候,就会在内存中生产一个对象,但是我们在使用JAVA开发的时候,当一个对象使用完_gc钱包是干嘛的?

推荐文章

热门文章

相关标签