USB booting :: how to mount the usb drive read-write



Hi

Normaly I can't create folders or copy file to main folders (such as /usr , /lib , etc ).

Is there any way to mount the usb drive read-write ?

I googled one way to do that:



Quote
when you boot into DSL the keyfob is mounted read-only, and you can’t unmount it because the DSL image is on it. This is a pain if you want to write some stuff to your keyfob while in DSL. So, i’ve fixed the problem by removing the characters -o ro from one line in linuxrc, a script contained within minirt24.gz (for those interested I used the DSL 0.9.2 version). The upside is that you can write to your fob in DSL; the downside is that you have to shutdown DSL properly if you use this, whereas if you don’t you can just switch the power right off because nothing is mounted read-write. So, if you would like to be able to write to your keyfob while booted into DSL


but its old solution (DSL 0.9.2) and doesnt work with current version of dsl

Can any one tell me how to modify the minirt24.gz file to make this work or mezbz there is another way

Here is something I picked up regarding the editing of the minirt24.gz file:

-Copy the minirt24.gz to /opt

-Make a backup to minirt24.gz.old at /opt

-Open a Root Shell Terminal and type the following:
gunzip minirt24.gz

mount -o loop minirt24 /mnt/test

cd /mnt/test


...let me know how it worked

desNotes

-Now edit the linuxrc file (or other files as needed)

-When modifications are complete
cd /opt

umount /ramdisk/opt/minirt24

gzip -9 minirt24

-Copy the new minirt24.gz back and overwrite the old minirt24.gz


original here.