Ok here is the scenario: You just downloaded some OS to install on a PC, but there's no CD/DVDs available to burn. There's also no available USB flash drives or SD cards that can be completely wiped to put the ISO in them because they have info and would be annoying to backup/restore them. But you have your Pandora handy. So what do you do?
Here's what I did :
One can have several disk images in SD card formatted with whatever filesystems (ie. NTFS, etc) and expose them via USB when needed. It is no longer necessary to format one SD card with some specific FS to use USB mass storage with specific PCs (ie. Windows).
The Pandora itself can create the (empty) disk image in SD card if necessary (ie. via dd and mkfs commands) and even mount the image to copy stuff to/from it (sudo mount -o loop some.iso /some/dir). The image can even be formatted from a PC when connected via USB (ie. for NTFS).
op_storage_loop.zip
Here's what I did :
- Copied ISO image file to Pandora SD (ext4 formatted even)
- Create a loop device backed by the ISO image (sudo /sbin/losetup /dev/loop0 /1p/some.iso)
- Use modified mass storage mode script (attached) to expose created loop device via USB (sudo ./op_storage_loop.sh /dev/loop0)
- Connect Pandora via USB to PC
- Boot from ISO image via Pandora and install OS
One can have several disk images in SD card formatted with whatever filesystems (ie. NTFS, etc) and expose them via USB when needed. It is no longer necessary to format one SD card with some specific FS to use USB mass storage with specific PCs (ie. Windows).
The Pandora itself can create the (empty) disk image in SD card if necessary (ie. via dd and mkfs commands) and even mount the image to copy stuff to/from it (sudo mount -o loop some.iso /some/dir). The image can even be formatted from a PC when connected via USB (ie. for NTFS).
op_storage_loop.zip
Attachments
Last edited by a moderator: