WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Printing data that cannot be written to a write-protected drive to another drive  (Read 237 times)

Offline xor

  • Hero Member
  • *****
  • Posts: 671
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.)
« Last Edit: June 13, 2020, 12:03:06 AM by xor »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12255
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 

Offline xor

  • Hero Member
  • *****
  • Posts: 671
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 
« Last Edit: June 13, 2020, 03:22:59 AM by xor »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12255
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="
« Last Edit: June 13, 2020, 04:23:07 AM by Juanito »

Offline xor

  • Hero Member
  • *****
  • Posts: 671
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="

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 7934
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.