diff --git a/src/web/file_cmds.py b/src/web/file_cmds.py
index 71d69f2a..4a0ec87e 100644
--- a/src/web/file_cmds.py
+++ b/src/web/file_cmds.py
@@ -207,22 +207,6 @@ def download_image(url):
return {"status": False, "msg": "Error loading the URL"}
-def pad_image(file_name, file_size):
- """
- Adds a number of bytes to the end of a file up to a size
- Takes str file_name, int file_size
- Returns a dict with boolean status and str msg
- """
- from subprocess import run
-
- dd_proc = run(
- ["dd", "if=/dev/null", f"of={file_name}", "bs=1", "count=1", f"seek={file_size}" ], capture_output=True
- )
- if dd_proc.returncode != 0:
- return {"status": False, "msg": str(dd_proc)}
- return {"status": True, "msg": "File padding successful" }
-
-
def write_config(file_name):
"""
Takes str file_name
diff --git a/src/web/templates/index.html b/src/web/templates/index.html
index 326d36f7..49b84bb6 100644
--- a/src/web/templates/index.html
+++ b/src/web/templates/index.html
@@ -337,53 +337,6 @@
-
- Pad Image File
-
- - If RaSCSI fails to attach an image with a size error, you can try to pad it here. This will create a "_padded" copy of the file.
- - Drive images are padded to the nearest multiple of 512 bytes, CD-ROM images to multiples of 2048 bytes.
- - The UI only lists image files that may need padding based on their file sizes.
- - For other usecases, pad your file manually using a tool like dd on Linux.
-
-
-
-
-
-
-
Logging
diff --git a/src/web/web.py b/src/web/web.py
index 7b7182be..5bd1abac 100644
--- a/src/web/web.py
+++ b/src/web/web.py
@@ -13,7 +13,6 @@ from flask import (
from file_cmds import (
list_config_files,
- list_files,
list_images,
create_new_image,
download_file_to_iso,
@@ -21,7 +20,6 @@ from file_cmds import (
delete_file,
unzip_file,
download_image,
- pad_image,
write_config,
read_config,
write_drive_properties,
@@ -61,10 +59,6 @@ def index():
device_types=get_device_types()
files = list_images()
config_files = list_config_files()
- drive_files = list_files(tuple(server_info["sahd"] + \
- server_info["schd"] + server_info["scrm"] + \
- server_info["scmo"]), server_info["image_dir"])
- cdrom_files = list_files(tuple(server_info["sccd"]), server_info["image_dir"])
sorted_image_files = sorted(files["files"], key = lambda x: x["name"].lower())
sorted_config_files = sorted(config_files, key = lambda x: x.lower())
@@ -93,8 +87,6 @@ def index():
devices=formatted_devices,
files=sorted_image_files,
config_files=sorted_config_files,
- drive_files=drive_files,
- cdrom_files=cdrom_files,
base_dir=server_info["image_dir"],
cfg_dir=cfg_dir,
scsi_ids=scsi_ids,