Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: xor on June 12, 2020, 11:54:07 PM

Title: Printing data that cannot be written to a write-protected drive to another drive
Post 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.)
Title: Re: Printing data that cannot be written to a write-protected drive to another drive
Post by: Juanito on June 13, 2020, 12:48:48 AM
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:
Code: [Select]
$ blkid -s UUID /dev/sda1 
Title: Re: Printing data that cannot be written to a write-protected drive to another drive
Post by: xor on June 13, 2020, 03:20:24 AM
Code: [Select]
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:
Code: [Select]
$ blkid -s UUID /dev/sda1 
Title: Re: Printing data that cannot be written to a write-protected drive to another drive
Post by: Juanito on June 13, 2020, 04:19:15 AM
If you enter "about:support" in firefox:
Code: [Select]
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="
Title: Re: Printing data that cannot be written to a write-protected drive to another drive
Post by: xor on June 13, 2020, 04:41:29 AM
What exactly is the command I should write on the terminal screen !? ???

If you enter "about:support" in firefox:
Code: [Select]
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="
Title: Re: Printing data that cannot be written to a write-protected drive to another drive
Post by: Rich on June 13, 2020, 04:59:40 AM
Hi xor
First, you need to get the  UUID  of the USB device you are going to use:
Code: [Select]
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:
Code: [Select]
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.