feat: add boot staging configuration and automation utility scripts
This commit is contained in:
14
scripts/inspect_drive_h.py
Normal file
14
scripts/inspect_drive_h.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import os, shutil
|
||||
|
||||
drive = "H:\\"
|
||||
exists = os.path.exists(drive)
|
||||
print(f"Drive {drive} exists: {exists}")
|
||||
if exists:
|
||||
try:
|
||||
total, used, free = shutil.disk_usage(drive)
|
||||
print(f"Total: {total / (1024**3):.2f} GB")
|
||||
print(f"Free: {free / (1024**3):.2f} GB")
|
||||
print("Contents:", os.listdir(drive))
|
||||
except Exception as e:
|
||||
print("Error reading drive info:", e)
|
||||
|
||||
Reference in New Issue
Block a user