Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: xor on June 12, 2020, 11:54:07 PM
-
Printing data that cannot be written to a write-protected drive to another drive
scenario;
for example, you are using Firefox via a write-protected CD-ROM or write-protected SD card.
you enter your e-mail password that should be remembered constantly;
firefox saves it in its subdirectories.
but since the system is in ROM structure, it cannot record anything.
Now the golden question is this;
you want the data to be written and saved processed on an external usb
I am asking how you can do this.
preliminary research results
https://en.wikipedia.org/wiki/Symbolic_link
https://en.wikipedia.org/wiki/Hard_link
I will ask for your help as I do not know much about user authorization point.
(this text was written in google translate.)
-
firefox probably saves data somewhere under /home/tc - since you are using read-only media, you cannot save a backup.
You should be able to make a permanent home directory on a usb stick with the boot code "home=".
Since the usb stick location may change from sda1 to sdb1, etc, it is better to use a uuid to identify it, like the following example:
home=UUID="8eb3e1f8-c1ee-2bac-f66d-070f73960f62"
Use the following command to find the uuid of your usb stick: $ blkid -s UUID /dev/sda1
-
tc@box:~$ ln -s /tmp/tcloop/firefox/usr/local/firefox /mnt/sda2/ff
ln: /mnt/sda2/ff/firefox: Operation not permitted
???
firefox probably saves data somewhere under /home/tc - since you are using read-only media, you cannot save a backup.
You should be able to make a permanent home directory on a usb stick with the boot code "home=".
Since the usb stick location may change from sda1 to sdb1, etc, it is better to use a uuid to identify it, like the following example:
home=UUID="8eb3e1f8-c1ee-2bac-f66d-070f73960f62"
Use the following command to find the uuid of your usb stick: $ blkid -s UUID /dev/sda1
-
If you enter "about:support" in firefox:
Profile Directory Open Directory /home/tc/.mozilla/firefox/i2q2x3sa.default-release
..therefore data is stored in /home/tc/.mozilla/firefox/i2q2x3sa.default-release and /home is what you need to store on your usb-stick.
In order to create a permanent home on your usb stick, use the boot code "home="
-
What exactly is the command I should write on the terminal screen !? ???
If you enter "about:support" in firefox: Profile Directory Open Directory /home/tc/.mozilla/firefox/i2q2x3sa.default-release
..therefore data is stored in /home/tc/.mozilla/firefox/i2q2x3sa.default-release and /home is what you need to store on your usb-stick.
In order to create a permanent home on your usb stick, use the boot code "home="
-
Hi xor
First, you need to get the UUID of the USB device you are going to use:
blkid -s UUID /dev/sda2
Next, you need to open the config file of your boot loader.
Then add this to the line that contains the word quiet:
waitusb=5:UUID="6b92c5e1-f49e-480e-87a0-8c1391a873c7" home=UUID="6b92c5e1-f49e-480e-87a0-8c1391a873c7"
Do not use "6b92c5e1-f49e-480e-87a0-8c1391a873c7" for the UUID.
Use the value that the blkid command returns for your USB device.