Closed probonopd closed 2 years ago
Need to write a simple GUI around this. Code similar to Mount Disk Image.app.
Mount Disk Image.app
sudo pkg install -y "sysutils/dvd+rw-tools" # FIXME: How to do this right? Add user to certain groups? # growisofs refuses to run as root, but when run as a normal user, it cannot access /dev/pass0 sudo chmod 777 /dev/pass0 growisofs -dvd-compat -Z /dev/cd0=/home/user/Desktop/hello-0.7.0_0G108-FreeBSD-13.0-amd64.iso Executing 'builtin_dd if=/home/user/Desktop/hello-0.7.0_0G108-FreeBSD-13.0-amd64.iso of=/dev/pass0 obs=32k seek=0' /dev/pass0: "Current Write Speed" is 4.1x1352KBps. 3964928/1095487488 ( 0.4%) @0.9x, remaining 22:56 RBU 100.0% UBU 2.9% 22413312/1095487488 ( 2.0%) @4.0x, remaining 7:10 RBU 100.0% UBU 100.0% 40861696/1095487488 ( 3.7%) @4.0x, remaining 5:09 RBU 100.0% UBU 100.0% 59342848/1095487488 ( 5.4%) @4.0x, remaining 4:21 RBU 100.0% UBU 100.0% 77791232/1095487488 ( 7.1%) @4.0x, remaining 4:08 RBU 100.0% UBU 100.0% 96239616/1095487488 ( 8.8%) @4.0x, remaining 3:48 RBU 100.0% UBU 100.0% 114720768/1095487488 (10.5%) @4.0x, remaining 3:33 RBU 100.0% UBU 100.0% 133169152/1095487488 (12.2%) @4.0x, remaining 3:29 RBU 100.0% UBU 100.0% (...) 1056374784/1095487488 (96.4%) @4.0x, remaining 0:07 RBU 100.0% UBU 100.0% 1074823168/1095487488 (98.1%) @4.0x, remaining 0:03 RBU 61.6% UBU 100.0% 1093304320/1095487488 (99.8%) @4.0x, remaining 0:00 RBU 6.5% UBU 100.0% builtin_dd: 534912*2KB out @ average 3.9x1352KBps /dev/pass0: flushing cache /dev/pass0: updating RMA /dev/pass0: closing disc
Also needs to ask whether it should erase an already-written disc first.
sudo dvd+rw-format -blank /dev/cd0
Initial version in Developer Preview: https://github.com/helloSystem/Utilities/commit/b9ce0facc41934f870ea228b31291c124c1f0867
Need to write a simple GUI around this. Code similar to
Mount Disk Image.app
.Also needs to ask whether it should erase an already-written disc first.