首页 > 编程知识 正文

macbookpro装linux,win10和linux双系统引导

时间:2023-05-06 03:47:50 阅读:148955 作者:2531

Ubuntu可以使用Vmware等工具安装linux系统,但如果由于某种原因需要安装双重系统,则可以使用以下方案:

在Mac笔记本电脑下安装ubuntu双系统的方案利用refind、Etcher软件实现。

步骤如下。

下载Ubuntu

从Canonical网站下载当前的Ubuntu LTS安装程序。

创建Ubuntu安装驱动器

本例中使用USB存储器。 驱动器必须至少为2 GB且为空。

格式化驱动器

1 .将USB插入Mac。

2 .从“APP应用程序/实用程序”中打开“磁盘工具”。 在侧栏中选择USB驱动器。

3单击菜单栏上的“清除”格式化驱动器。

4 .在下一个屏幕中,将格式设置为“ms-dos(fat )”,将方案设置为“GUID分区映射”。

5 .单击“清除”,然后等待格式化处理完成。

写入镜像

使用Etcher将Ubuntu安装映像写入磁盘。

打开以太网。 单击“选择图像”,选择Ubuntu ISO文件,选择插入的u盘,单击Flash,然后等待刻录完成。

3 .系统安装准备

使用rEFInd作为Ubuntu和macOS的引导程序。

我使用外部可移动硬盘作为ubuntu系统磁盘。

首先插入硬盘,然后清除硬盘,将格式设置为“ms-dos(fat )”,将方案设置为“GUID分区映射”。

安装查找

2 .解压缩下载的文件。

3 .从/applications/utilities/terminal中打开终端。

4 .将" re find-installer "文件拖动到“终端”图标上以运行脚本。

./refind-install

Not running as root; attemptingtoelevateprivilegesviasudo…。

密码:

ShimSource is none

Installing rEFInd on OS X…。

installingrefindtothepartitionmountedat/volumes/esp

foundrefindinstallationin/volumes/esp/EFI/re find; 升级信息技术。

* * * *警报: sip启用! ***

youareattemptingtoupgradeanexistinginstallation,but it appears that

systemintegrityprotection(sip ) is enabled. IfrEFInd is working now,then

this is fine; youcanupgradeyourexistingrefind.ifrefindisnotworking,

though,re-installingfromthisbootwillnothelp.tore-enablerefind,you

must re-installitfromarecoverysystemorfromanotheros.toenterthe

recoverysystemandre -安装:

1. Reboot

2.holddowncommandrasthechimesounds

3. Whenthe OS has booted,select Utilities-Terminal

4.changetothisdirectorywiththe‘CD’command; it will probably be under

/volumes/Macintosh HD/users/apple/downloads/re find -单身草丛-0.11.2

5. Re-run this script。

Formore on this subject,see http://www.rods books.com/re find/sip.html

doyouwanttoattemptinstallation (y/n )?

根据提示,我们需要

重新启动你的Mac。 出现启动屏幕时,按Command R键,直到屏幕上出现Apple徽标。

加载完成并进入恢复模式后,单击实用程序-终端。

在“终端”窗口中,键入csrutil disable,然后按Enter键。

重新启动你的Mac。

已重新启动Mac以使rEFInd正常工作。

可以看到类似的界面。 然后,单击启动可移动磁盘驱动器,即可安装Ubuntu。 不叙述Ubuntu的安装步骤。 网上的教程很多。

根据该方案,还可以进行Mac Win7 Ubuntu三系统等多系统启动引导。

最后介绍rEFInd的构成方法。

diskutil list|awk‘{打印$6}’

您将看到以下内容:

disk0s1

然后输入命令。

sudo mkdir /Volumes/efi

sudo mount-t msdos/dev/disk 0s1/volumes/EFI

cd /Volumes/efi/EFI/refind/

文件夹下有refind.conf文件vim refind.conf

的典型可修改配置:

timeout、等待时间(如果想直接进入Mac,则设置为-1) ) ) )。

解析,画面分辨率

default_selection,缺省进入的系统选项

include,常用于感应界面美化

max_tag,最多可以显示多少个启动项目

设置dont_scan_dirs、dont_scan_files、dont_scan_volumes和引导程序过滤器以过滤它们的目录、文件和卷类型

MAC Ubuntu双系统方案

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。