Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 1.15 KB

README.md

File metadata and controls

46 lines (39 loc) · 1.15 KB

Build a ramfs boot medium.

Usage

Clone the project

git clone https://github.com/danchouzhou/ramfs.git

Excuting shell script

cd ramfs
chmod +x ramfs_setup.sh
sudo ./ramfs_setup.sh

Make a boot medium

Assume that your boot partition is /dev/sdb1

# Mount boot partition to /mnt
sudo mount /dev/sdb1 /mnt

# Copy the boot files
sudo mkdir /mnt/EFI
sudo cp -r /bootfiles/* /mnt/EFI

# Install GRUB
sudo grub-install --target=x86_64-efi --removable --efi-directory=/mnt --boot-directory=/mnt/EFI
sudo grub-install --target=i386-pc --boot-directory=/mnt/EFI /dev/sdb

# Unmount and your disk is ready to boot!
sudo umount /mnt

Make a DVD image

chmod +x boot_dvd.sh
sudo ./boot_dvd.sh

Read this article for more detail

Build a RAM based filesystem server | Danny’s tech blog

Tested distributions

  • Debian 11.6 (bullseye)
  • Debian 12.4 (bookworm)

Tested hardware

  • Gigabyte B550M AORUS PRO-P / Ryzen 7 5700G CSM EFI, CSM Legacy, EFI Non-secure, EFI secure boot
  • Lenovo T480 (20L5CTO1WW), EFI secure boot