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