This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin Cleanup of Ext2 Code, Added Panic
- Loading branch information
Showing
13 changed files
with
110 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#ifndef PANIC_H | ||
#define PANIC_H | ||
|
||
void panic(char *message); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
#!/bin/bash | ||
dd if=/dev/zero of=ext2.img bs=1024 count=8192 > /dev/zero | ||
printf "Creating Disk...\n" | ||
dd if=/dev/zero of=ext2.img bs=1024 count=10000 > /dev/zero | ||
mkfs -t ext2 -i 1024 -b 1024 -F ext2.img > /dev/zero | ||
printf "Mounting...\n" | ||
rm -rf /mnt/ext2 | ||
mkdir /mnt/ext2 | ||
mount ext2.img /mnt/ext2 | ||
printf "MOUNTED!\n" | ||
cp -r rootfs/* /mnt/ext2 | ||
umount ext2.img | ||
printf "Done!\n" | ||
|
||
|
||
|
||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hello there |
Oops, something went wrong.