Skip to content

Instantly share code, notes, and snippets.

@NoteAfterNote
NoteAfterNote / note-after-note-2025-april-7-tar-archive-mkfs-ext4-filesystem.md
Last active April 14, 2025 07:11
Using a tar archive with "mkfs.ext4 -d" to populate the ext4 filesystem

NoteAfterNote-11
Using a tar archive with "mkfs.ext4 -d" to populate the ext4 filesystem
Published: April 7, 2025
Link: https://gist.github.com/NoteAfterNote/65a139ce70cbf27c4875aaaee0e779cc


Here's the description for "-d root-directory|tarball" from the mkfs.ext4 man page:

"Copy the contents of the given directory or tarball into the root directory of the file system. Tarball input is only available if mke2fs was compiled with libarchive support enabled and if the libarchive shared library is available at run-time. The special value "-" will read a tarball from standard input."

Termux: Enable Wake-Lock

NoteAfterNote-10
Testing: Termux, vmtest, and QEMU
Published: June 19, 2024
Link: https://gist.github.com/NoteAfterNote/7614b0137ac6959e3bba35df66eaa75a
Updated: November 22, 2024


Observation: vmtest-QEMU-8.0.2 is faster than vmtest-QEMU-8.2.5 on Smartphone-1-Is-Android-10

Solution: qemu-system-x86_64

  • Remove

* -drive if=none,id=vm,format=raw,file=$VM -device virtio-blk-pci,id=vmvirt1,drive=vm

@NoteAfterNote
NoteAfterNote / note-after-note-2024-june-12-smartphone1-to-smartphone2-adb-termux-usbredirect-qemu.md
Last active January 25, 2025 13:20
Smartphone-1 to Smartphone-2: "adb tcpip 5555" using a Linux server, android-tools, Termux, termux-usb, usbredirect, and QEMU

NoteAfterNote-8
Smartphone-1 to Smartphone-2: "adb tcpip 5555" using a Linux server, android-tools, Termux, termux-usb, usbredirect, and QEMU
Published: June 12, 2024
Link: https://gist.github.com/NoteAfterNote/ee883d5fd86c3b8ef0b0b84cac47b4d6
Updated: June 13, 2024


Step 1. Termux: Enable Wake-Lock

Step 2. Setup

a. Read "Android Debug Bridge (adb)": https://developer.android.com/tools/adb

b. Connect Smartphone-2 (Android 11) to Smartphone-1 (Android 10) with a USB cable, Smartphone-2-Is-Android-11 is a USB device; Smartphone-2 connects through an OTG adapter and the OTG adapter is plugged in Smartphone-1

@NoteAfterNote
NoteAfterNote / note-after-note-2024-may-19-termux-usbredirect-qemu.md
Last active January 24, 2025 15:56
Reading and writing a USB drive connected to a Linux server using Termux, termux-usb, usbredirect, and QEMU on a smartphone that is not rooted
@NoteAfterNote
NoteAfterNote / note-after-note-2023-april-16-termux-and-the-ext4-filesystem-part5.md
Last active April 19, 2023 03:34
Termux And The ext4 Filesystem, Part 5 Of 5: Reading And Writing With debugfs, No Root Required

NoteAfterNote-5
Termux And The ext4 Filesystem, Part 5 Of 5: Reading And Writing With debugfs, No Root Required
Published: April 16, 2023
Link: https://gist.github.com/NoteAfterNote/854468164f8513bea764ac1668489f96


Mobile Device Configuration

  • Rooted: No
  • Connected to any network: No
  • Operating system:

neofetch --stdout|grep --color=never --ignore-case 'os:'

@NoteAfterNote
NoteAfterNote / note-after-note-2023-april-14-termux-and-the-ext4-filesystem-part4.md
Last active April 19, 2023 03:35
Termux And The ext4 Filesystem, Part 4 Of 5: QEMU, A Guest Operating System, GNU GRUB Bootloader, And fdisk

NoteAfterNote-4
Termux And The ext4 Filesystem, Part 4 Of 5: QEMU, A Guest Operating System, GNU GRUB Bootloader, And fdisk
Published: April 14, 2023
Link: https://gist.github.com/NoteAfterNote/0ec14839db016b6d3b905d4eda5db263


Mobile Device Configuration

  • Rooted: No
  • Connected to any network: No
  • Operating system:

neofetch --stdout|grep --color=never --ignore-case 'os:'

@NoteAfterNote
NoteAfterNote / note-after-note-2023-april-12-termux-and-the-ext4-filesystem-part3.md
Last active April 19, 2023 03:36
Termux And The ext4 Filesystem, Part 3 Of 5: QEMU, A Guest Operating System, LUKS Encryption, lighttpd, WebDAV

NoteAfterNote-3
Termux And The ext4 Filesystem, Part 3 Of 5: QEMU, A Guest Operating System, LUKS Encryption, lighttpd, WebDAV
Published: April 12, 2023
Link: https://gist.github.com/NoteAfterNote/cabd411777f2ad5ae57d3d98c576471c


Mobile Device Configuration

  • Rooted: No
  • Connected to any network: No
  • Operating system:

neofetch --stdout|grep --color=never --ignore-case 'os:'

@NoteAfterNote
NoteAfterNote / note-after-note-2023-april-07-termux-and-the-ext4-filesystem-part1.md
Last active June 1, 2024 17:56
Termux And The ext4 Filesystem, Part 1 Of 5: Reading And Writing, No Root Required