diff options
author | Marvin Borner | 2020-04-15 16:35:29 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-15 16:35:29 +0200 |
commit | aa3d1b4689e6dadd982fe1e5ca8af69ca39c617d (patch) | |
tree | 8d4eff1df3031e601cb50cf005130a591fce35a1 /run | |
parent | 10cd931d75a02942c5ad254cef2e56b515122fa3 (diff) |
Added ext2 filesystem
Diffstat (limited to 'run')
-rwxr-xr-x | run | 26 |
1 files changed, 24 insertions, 2 deletions
@@ -120,13 +120,35 @@ make_build() { cp ./build/user.bin ./iso/user.bin cp ./build/font.bin ./iso/font.bin grub-mkrescue -o ./build/melvix.iso ./iso/ - head -c 10485760 /dev/zero >./build/hdd10M.img + dd if=/dev/zero of=./build/ext2_hda.img bs=1k count=100000 > /dev/zero + mkfs -t ext2 -i 1024 -b 1024 -F ./build/ext2_hda.img > /dev/zero + fdisk ./build/ext2_hda.img <<EOF +x +c +10 +h +16 +s +63 +r +n +p +1 +2048 +199999 +a +w +EOF + + cp ./build/ext2_hda.img ./build/ext2_hdb.img + cp ./build/ext2_hda.img ./build/ext2_hdc.img + cp ./build/ext2_hda.img ./build/ext2_hdd.img printf "Build finshed successfully!\n\n" } make_test() { - qemu_with_flags -cdrom ./build/melvix.iso #-drive file=./build/hdd10M.img,format=raw + qemu_with_flags -cdrom ./build/melvix.iso -hda ./build/ext2_hda.img -boot d } make_debug() { |