malaga Posted September 7, 2023 Posted September 7, 2023 (edited) i want to dive into the creating of file-systems on Linux. so i have some ideas: can you give me some hints on these steps. can i break all down and say so: - in order to do the very first steps in creating a file system ... basically, I'm trying to do the following steps: - create a disk image of about 500MB; - create a GPT; - create a FAT32 partition in the first 300MB(I'll call it UEFI); - create a FAT32 partition in the remaining bytes(I'll call it SYSTEM); - create the following subdirectory in the UEFI partition: /EFI/BOOT/; that said we have the following things: Layouting a disk image and copying files into it mkfs.vfat /dev/md3 # Creates an empty disk image of 33MB. `dd if=/dev/zero of=uefi.img bs=1M count=330 # Formats the disk image as FAT32 mkfs.vfat uefi.img -F 32 # Creates the requested subdirectories. mmd -i uefi.img ::/EFI mmd -i uefi.img ::/EFI/BOOT look forward to hear from you Edited September 7, 2023 by malaga 0 Quote
ValdikSS Posted October 8, 2023 Posted October 8, 2023 If you're looking for a result, and not trying to learn how to create the images manually, then I could recommend mkosi: https://github.com/systemd/mkosi It supports creating both container images (no kernel or bootloader) and real bootable images. 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.