安装双系统必备:Kalilinux分区设置教程 (kalilinux分区设置用于)

在现今的计算机领域,网络安全问题已经越来越受到重视。作为一个安全从业者,拥有一套开源的网络安全操作系统是非常必要的。而Kalilinux就是一个非常优秀的选择,它不仅在内核方面进行了优化,还集成了大量的网络安全工具,以便安全团队对系统进行侵入测试、数据挖掘等相关工作。

虽然我们可以通过虚拟机、WinPE等方式安装Kalilinux进行使用,但是一个独立的系统会让您更加的放心,而为了满足这一需求,我们需要在电脑上安装双系统。本文将为您提供一份详细的Kalilinux分区设置教程,让您轻松开启网络安全测试之旅。

1. 准备工作

为了保障安装的顺利进行,我们需要先完成一些必要的准备工作:

1.1 确认系统分区

一个默认的Windows操作系统,硬盘分区至少是 D: 和 C:。如果您的系统分区比较特殊,那么确保您知道每个分区是什么。如果您的硬盘是全新的,那就在前期中会给新硬盘进行分区,否则请再次确认当前磁盘的情况。

1.2 下载并制作Kalilinux安装盘

这个很重要,如果没有这一步,您不可能开始安装系统。您可以从Kalilinux官网(https://www.kali.org/downloads/)下载适合您电脑的版本,然后下载Linux Live USB Creator,以便您将这个文件拷贝到U盘上,以便于之后的安装。您也可以使用其他的制作U盘启动盘的软件。

1.3 备份数据

安装操作系统意味着格式化硬盘.U盘等,这意味着您的磁盘和U盘中的所有数据都将丢失。因此,如果您的Windows硬盘上还有一些重要的文件,**请备份文件到外部设备或进行云端备份。

2. 安装准备

2.1 格式化空间

您需要在硬盘上为Kali Linux分配一个空闲的磁盘区域。根据您的实际需求,您可以在D,C或E等分区上为Kali Linux划分一个可用的磁盘空间

打开Windows系统,打开“计算机管理”选项卡。在这个选项卡中,你会看到“磁盘管理器”这个选项。选择它并等待它载入信息。比如同时需要在 C: 中减少空间,并在 D: 中增加一些空间以供Kali使用。

2.2 系统调整

为了保障系统响应速度,以及不占用多余的系统资源,我们需要进行一些系统优化和调整

2.2.1 磁盘清理

在Windows选项卡中,右键选择C盘,选择“性能”选项卡中的“磁盘清理”选项,然后等待系统数字化过程的启动,直到它询问您的哪些文件/文件夹需要被清除。

2.2.2 禁用开机启动项

在调整管理器中,单击“启动”选项卡,可以查看在Windows系统启动过程中每个应用程序所需的时间和资源。从这个列表中,您可以知道哪个软件启动效果较慢,会占用系统资源,并选择禁用。

2.2.3 禁用快速启动

在如下路径下依次点击:控制面板,电源选项,选择“更改电源设置”之后展开“选项”,选择“更改不可用的设置”,最终取消勾选“快速启动”。

2.3 开始安装

把Kalilinux U盘插入电脑,重启,然后从U盘启动,接着会提示您进行“Live或者Install”安装方式选择,我们在此选择“Graphical Install”方式,然后选择默认的安装选项即可,作为一名非常有经验的用户,您也可以自定义高级安装。

3. 分区设置

在安装过程中,等到所有的软件都安装完毕后,直接跳转到分区界面,在这里,您需要进行一些具体的设置。

3.1 创建Kali Linux的根目录

在“分区磁盘”选项中,选择“手动”,它会显示您计算机中的所有磁盘。在这个选项卡中,您可以选择要给Kali Linux创建的新分区,我们选择’sda‘,它是安装Windows的硬盘。

然后,可以看到“未使用”的空间,它是我们在Windows中为了安装Kali Linux而留下的。我们要把它分为两个区:一个是Kali Linux的根目录,另一个是交换文件。

单击“新增”按钮,然后在新分区的“空间大小(MB)”字段中输入磁盘大小,接着输入类型,选择“主分区”,在安装的到时候,此分区仅仅为KaliLinux分配了相应的磁盘空间。

选择“/”(根目录)作为默认的安装位置,并将其大小设为10000 MB,为您提供一个安全存储代码的空间。

3.2 创建交换空间

在上面我们看到了“新增”按钮,单击这项即可创建对应的分区。在这里,您需要创建交换分区。

输入分区大小,并选择“LV”作为分区类型。将名称设置为“Swap Area”,空间完成后,单击“分区”或“完成”来保存设置和继续。

4. 安装

在完成分区的设置后,我们进入到了安装阶段。在选择自己所在地区的时间和语言之后,进行一些基本信息的配置,并选择安装GRUB引导程序的设备(我们选择 /dev/sda,该设备是安装Windows的设备)。此处请确保您的安装方式是基于UEFI启动的。

5. 完成安装

在安装完成后,您初始密码应该是toor。完成后,您可以通过新的Kali新系统启动了。

Kalilinux是一个非常优秀的网络安全操作系统,您可以使用虚拟机、WinPE等方式安装使用,但是将其安装成为独立的系统,您将更加的放心。但是,在安装的过程中,我们需要注意每一步细节,以保障整个安装过程的顺利进行,特别是分区设置和调整系统等过程,我们都需要做到非常小心谨慎,以保障安全服务的进行。

相关问题拓展阅读:

为Kali创建持久化分区

In this guide we are using the Kali Linux 64-Bit (Live) image, though it should work fine with the 32 Bit image as well. This guide also works with Kali Linux 2023 and Kali Linux 2023.

Write the ISO to your USB drive using a tool like

Universal USB Installer

or UNetbootin . In this guide we are using Universal USB Installer.

It may take a few minutes to write Kali Linux 2023 Live ISO to USB.

Now that your Kali Linux 2023 ISO has been written to your USB drive, we can begin setting up partitions to work with Kali Live Persistence. You can configure partitions with the partition manager of your choice, but in this guide we are going to use MiniTool Partition Wizard

When installing Partition Wizard, make sure to

uncheck

the checkbox on the Avast screen – you don’t need to install that.

Once installed, run and select

Disk and Partition Management.

Resize the partition to

4GB

and click

OK.

This is the partition where the Kali Linux system files reside and shouldn’t ever need more than 4GB.

We will now create the persistence partition, which will store your personal files and Kali settings.

Right-click

on the

Unallocated

partition and click

Create

.

Click

Yes

if you see a message “The new created partition cannot be used in Windows. Because Windows could only recognize the first partition on a removable disk. Do you want to continue?”

In the

File System

dropdown, select

EXT4

.

In the

Partition Label

field, enter

persistence

. It’s important that you spell this correctly.

Use the maximum partition size available (or the size of your choice) and click

OK

.

Finally, click

Apply

in the top left-hand corner and click

Yes

to apply changes.

The Partition Wizard will now set up your partitions. This may take some time depending on the size of your USB drive.

Once done, close Partition Wizard and safely eject your USB drive.

To boot from USB in most modern PCs, hold down the shift key while clicking

Restart

in the Windows start menu. If this doesn’t work, you may need to do some searching on how to boot from USB on your particular machine. Repeatedly pressing one of the function keys (

F12

,

F2

, etc) or the

ESC

or** Delete** keys on bootup will invoke the boot or BIOS menus on some machines.

In the Kali boot menu, select

Live system (persistence, check kali.org/prst)

and press

Enter

. The menu may look slighly different depending on your version of Kali.

Once Kali has booted, we will use fdisk to view the disk devices and partitions.

Open a new terminal window and run:

sudo fdisk -l

You will see several entries for partitions and devices listed. Look for your USB drive. It will have two partitions: A 4GB partition and a persistence partition you created earlier. The persistence partition should appear as

Linux

under the

Type

column.

In the above example, we can see the USB drive with a 4GB partition and a larger persistence partition with the device name sdb2 . This device name may be different on your setup. Make sure you have the right one before continuing.

Assuming your persistence partition device name is sdb2 , run the following commands.

IMPORTANT:

You must enter these commands exactly and ensure you choose the correct device (yours may not be sdb2 ), otherwise persistence will not work.

Create a new mount point called my_u .

sudo mkdir -p /mnt/my_u

Mount your USB persistence partition to my_u . Reminder: Your persistence partition may not be sdb2 , please ensure you mount the right one.

sudo mount /dev/sdb2 /mnt/my_u

Create a new file called persistence.conf using the nano text editor.

sudo nano /mnt/my_u/persistence.conf

In this file, type / union

/mnt/my_u/persistence.conf

/ union

Save the file and exit. (Press CTRL + X , press Y , then press ENTER ).

Now unmount your persistence partition. Reminder: Your persistence partition may not be sdb2 , please ensure you unmount the right one.

sudo umount /dev/sdb2

We’re done!

Restart the machine, boot from USB again, and from now on always select

Live system (persistence, check kali.org/prst)

To test if persistence is working correctly, try creating an empty test folder on the Desktop and restarting. Select

Live system (persistence, check kali.org/prst)

again and if the test folder is still there, persistence is working correctly.

kalilinux分区设置用于的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于kalilinux分区设置用于,安装双系统必备:Kalilinux分区设置教程,为Kali创建持久化分区的信息别忘了在本站进行查找喔。


数据运维技术 » 安装双系统必备:Kalilinux分区设置教程 (kalilinux分区设置用于)