Skip to content

Instantly share code, notes, and snippets.

@lenicyl
Created October 12, 2023 07:07
Show Gist options
  • Save lenicyl/2752b40069a1480010271f3abb02ed04 to your computer and use it in GitHub Desktop.
Save lenicyl/2752b40069a1480010271f3abb02ed04 to your computer and use it in GitHub Desktop.
Disable Speaker Beep on Arch Installation media
# https://bbs.archlinux.org/viewtopic.php?pid=2115510#p2115510
# Search the ISO for the byte offset of the GRUB "play 600" command.
$ grep -a -b -o "play 600" archlinux-x86_64.iso
799509406:play 600
# Confirm the byte offset from the previous command is correct, we should see "play" here.
$ dd if=archlinux-x86_64.iso skip=799509406 bs=1 count=4 status=none
play
# Overwrite the byte at the above offset with a hash to comment out the line.
# conv=notrunc is important otherwise it will cut off (truncate) the rest of
# the ISO file after the modified byte.
$ echo '#' | dd of=archlinux-x86_64.iso seek=799509406 bs=1 count=1 conv=notrunc
1+0 records in
1+0 records out
1 byte copied
# Read the data again (same command as above) to confirm the byte got
# overwritten - "play" should now be "#lay".
$ dd if=archlinux-x86_64.iso skip=799509406 bs=1 count=4 status=none
#lay
# Now the ISO won't play the sound and can be written to a USB stick as normal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment