Coder Social home page Coder Social logo

Comments (3)

lordbink avatar lordbink commented on September 26, 2024

It appears it is possible. The documentation here says using a device is supported.
https://linux-sunxi.org/USB_Gadget/Mass_storage

I will do some testing at some point and try to document the process/results here.

from gadget_cdrom.

lordbink avatar lordbink commented on September 26, 2024

Here are my notes from testing:

  1. Backup all the img and isos you placed on the storage/HDD device
  2. Delete /iso.img (caution: this deletes all your files that were on HDD/Storage)
  3. Resize your root partition - I booted into a second system with gparted - mine has 15G, and I left the rest for storage/HDD)
  4. Create and format the leftover partition, I used NTFS
  5. Put the sd card back into the pi and boot
  6. Inside the gadget_cdrom directory: Replace all instances of /iso.img (or "$(losetup -PLf /iso.img --show)p1") with the new partition (mine is /dev/mmcblk0p3)
  • Mode.sh
  • Clean.sh
  1. Test by rebooting the Pi or restarting the gadget_cdrom service
  2. Test by shutting down the Pi, removing the sd card and putting in a PC, transfer your files, eject/unmount and put back in the Pi

I was able to get an improvement in speed from 10-20M/s (through the Pi) to 90M/s (direct to PC). I am not sure this is worth the extra effort yet. For reference the card I was using is this a SanDisk 256GB Extreme MicroSDXC Micro SD - SDSQXA1-256G-GN6MA.

from gadget_cdrom.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.