Page 1 of 1

[solved] copy 2 ram (copy 1 folder from USB to desktop)

Posted: 04 Mar 2013, 16:50
by testsforknowledge
1) porteus on USB
2) when i boot, i wish that one folder is automatically also copied on desktop
3) this folder does not need to be at some special place on USB, it cam be in some werrz deep subfolder
Important is, that i have this folder on desktop later on every boot (boot copy2ram must be selected, coz i need speed)

why> i boot porteus on many computers and i do need some folder auto copied from same USB to desktop

THNX 4 help

Re: copy 2 ram (copy 1 folder from USB to desktop)

Posted: 04 Mar 2013, 18:45
by rg66
This is probably best answered by someone with more experience but I'll give it a go anyway.

1. You could extract, as an example, the 0090-xfce.xzm and make a symlink in /root/Desktop to your folder on the usb drive and then re compress it. But, if your usb device is mnt/sdc1 on one comp it could be /mnt/sdd1 on another.

2. You could make a script that makes the symlink and put it in rootcopy in your porteus folder so the link is made at every boot. But, I think you would have the same /mnt issues. Although, someone with experience with scripts could possibly make this work.

3. Make a folder on your usb drive and access it through the file manager. This seems like the easiest way.

Re: copy 2 ram (copy 1 folder from USB to desktop)

Posted: 04 Mar 2013, 19:08
by Ahau
rg66 is correct, and we have a tool to manage the linking of folders in the way I think you're after. It's called "magic folders". There's a howto doc here: http://www.porteus.org/component/conten ... lders.html

There's a wizard that sets up your magic folders, you can start it from Porteus Settings Centre. Just let us know if you run into any difficulties with it.

Re: copy 2 ram (copy 1 folder from USB to desktop)

Posted: 04 Mar 2013, 20:37
by testsforknowledge
still trying ... i have 1 folder on desktop. inside 1 pdf. i created on usb store.dat file in xcf file system. used magic folder and success linking. then asked if i wish to start recording or somewhat that it stores data to desktop. then i clicked yes. but on next boot, folder was not on desktop. i had also some errors last time, that shut down could not be done couse unmounting of usb was not possible. maybe it still recorded some data? do i need to stop this monitoring or recording?

Re: copy 2 ram (copy 1 folder from USB to desktop)

Posted: 04 Mar 2013, 21:18
by fanthom
simplest solution:
create module containing your folder and move it to /porteus/modules

Code: Select all

mkdir -p test/home/guest/Desktop
mv your_folder test/home/guest/Desktop
chown -R guest:guest /test/home/guest
dir2xzm test my_folder.xzm
btw: i'll double check magic folders.

Re: copy 2 ram (copy 1 folder from USB to desktop)

Posted: 08 Mar 2013, 14:36
by testsforknowledge
Fanthim, thank you. Success! But with one error:
mkdir -p test/home/guest/Desktop
mv your_folder test/home/guest/Desktop
chown -R guest:guest /test/home/guest <----------before test, without "/"
dir2xzm test my_folder.xzm
------
other test checked:
once you have XZM created, you can copy XZM to desktop,
extract so that you have folder on desktop,
add new files or replace if u need some,
convert back to xzm with right mouse click,
copy new XZM to porteus/modules and it works :)

thnx

Re: copy 2 ram (copy 1 folder from USB to desktop)

Posted: 08 Mar 2013, 14:36
by testsforknowledge
Fanthom, Fanthom, i misstyped ... :)