summaryrefslogtreecommitdiff
path: root/Base/res
diff options
context:
space:
mode:
authorSamuel Bowman <sam@sambowman.tech>2022-06-27 22:48:30 -0400
committerLinus Groh <mail@linusgroh.de>2022-07-21 20:13:44 +0100
commit7a8953a833e5243df4809ae8b9bffc3a1bab10e1 (patch)
treedcb516fe7fb75f437061ba54716fab31dd401558 /Base/res
parent7b8088c78d66f4d4a551c626971276d148907820 (diff)
downloadserenity-7a8953a833e5243df4809ae8b9bffc3a1bab10e1.zip
PartitionEditor: Add the beginnings of a partition editor :^)
This adds a new application PartitionEditor which will eventually be used to create and edit partition tables. Since LibPartition does not know how to write partition tables yet, it is currently read-only. Devices are discovered by scanning /dev for block device files. Since block devices are chmod 600, PartitionEditor be must run as root. By default Serenity uses the entire disk for the ext2 filesystem without a partition table. This isn't useful for testing as the partition list for the default disk will be empty. To test properly, I created a few disk images using various partitioning schemes (MBR, EBR, and GPT) and attached them using the following command: export SERENITY_EXTRA_QEMU_ARGS=" -drive file=/path/to/mbr.img,format=raw,index=1,media=disk -drive file=/path/to/ebr.img,format=raw,index=2,media=disk -drive file=/path/to/gpt.img,format=raw,index=3,media=disk"
Diffstat (limited to 'Base/res')
-rw-r--r--Base/res/apps/PartitionEditor.af4
1 files changed, 4 insertions, 0 deletions
diff --git a/Base/res/apps/PartitionEditor.af b/Base/res/apps/PartitionEditor.af
new file mode 100644
index 0000000000..be15ecce37
--- /dev/null
+++ b/Base/res/apps/PartitionEditor.af
@@ -0,0 +1,4 @@
+[App]
+Name=Partition Editor
+Executable=/bin/PartitionEditor
+Category=Utilities