Installing Debian 12 Alongside Windows 11 and Ubuntu 22.04 on a Laptop with Dual Boot
In this article, we will provide a detailed guide on how to install Debian 12 alongside Windows 11 and Ubuntu 22.04 on a laptop with dual boot. We will cover the key concepts, subtitles, and paragraphs necessary to understand the installation process. The code blocks will be enclosed within tags and properly formatted according to the programming language, including indentation and tabulation where needed.
Prerequisites
Before we begin, it is important to note that this guide assumes that you have already successfully installed Windows 11 and Ubuntu 22.04 on your laptop using the NVMe SSD disk (named nvme0n1).
Preparing for the Installation
To install Debian 12 alongside Windows 11 and Ubuntu 22.04, you will need to partition the NVMe SSD disk to create a new partition for Debian 12. You can use the built-in disk management tool in Windows 11 or a third-party partitioning tool to create the new partition.
Downloading Debian 12
Next, you will need to download the Debian 12 installation image from the official Debian website. Choose the appropriate architecture for your laptop and download the ISO image.
Creating a Bootable USB Drive
Once you have downloaded the Debian 12 installation image, you will need to create a bootable USB drive. You can use a tool like Rufus or Etcher to create the bootable USB drive.
Booting from the USB Drive
Restart your laptop and boot from the USB drive. You may need to change the boot order in the BIOS or UEFI settings to do this.
Starting the Installation
Once you have booted from the USB drive, you can start the Debian 12 installation process. Choose the appropriate language, location, and keyboard layout.
Partitioning the Disk
During the installation process, you will be prompted to partition the disk. Choose the manual partitioning option and select the new partition that you created earlier for Debian 12.
# fdisk /dev/nvme0n1
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1): 3
First sector (2048-488397167, default 2048):
Using default value 2048
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-488397167, default 488397167): +50G
Created a new partition 3 of type 'Linux' and of size 50 GiB.
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
In this example, we are creating a new primary partition of type Linux with a size of 50 GiB.
Formatting the Partition
After partitioning the disk, you will need to format the new partition. Choose the ext4 file system and mount the partition to the / directory.
# mkfs.ext4 /dev/nvme0n1p3
mke2fs 1.45.5 (07-Jan-2020)
Creating filesystem with 13107200 4k blocks and 3276800 inodes
Filesystem UUID: 8e8e26e3-a8f4-4e8e-8a2e-e88e8e8e8e8e
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
# mount /dev/nvme0n1p3 /target
Installing the Base System
Once the partition is formatted, you can proceed with installing the base system.
# apt-get update
# apt-get install debian-archive-keyring
# apt-get update
# apt-get install base-system
Configuring the System
After installing the base system, you will need to configure the system. This includes setting the time zone, locale, and keyboard layout.
Installing a Desktop Environment
Finally, you can install a desktop environment. Choose the desktop environment that you prefer and install it using the apt package manager.
# apt-get install xfce4
- Partition the NVMe SSD disk to create a new partition for Debian 12.
- Download the Debian 12 installation image from the official Debian website.
- Create a bootable USB drive using a tool like Rufus or Etcher.
- Boot from the USB drive and start the Debian 12 installation process.
- Partition the disk and format the new partition with the ext4 file system.
- Install the base system and configure the system.
- Install a desktop environment.
References
- Debian Installation Manual: https://www.debian.org/releases/bullseye/installmanual
- Rufus: https://rufus.ie/
- Etcher: https://www.balena.io/etcher/