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

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
testsforknowledge
Black ninja
Black ninja
Posts: 42
Joined: 07 Jan 2013, 16:44
Distribution: PORTEUS
Location: slovenia

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

Post#1 by testsforknowledge » 04 Mar 2013, 16:50

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
Last edited by testsforknowledge on 08 Mar 2013, 15:20, edited 1 time in total.

User avatar
rg66
White ninja
White ninja
Posts: 9
Joined: 21 Feb 2013, 20:49
Distribution: Porteus 3.0 Xfce
Location: Entebbe, Uganda

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

Post#2 by rg66 » 04 Mar 2013, 18:45

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.

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

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

Post#3 by Ahau » 04 Mar 2013, 19:08

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.
Please take a look at our online documentation, here. Suggestions are welcome!

testsforknowledge
Black ninja
Black ninja
Posts: 42
Joined: 07 Jan 2013, 16:44
Distribution: PORTEUS
Location: slovenia

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

Post#4 by testsforknowledge » 04 Mar 2013, 20:37

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?

User avatar
fanthom
Site Admin
Site Admin
Posts: 4548
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

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

Post#5 by fanthom » 04 Mar 2013, 21:18

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.
Please add [Solved] to your thread title if the solution was found.

testsforknowledge
Black ninja
Black ninja
Posts: 42
Joined: 07 Jan 2013, 16:44
Distribution: PORTEUS
Location: slovenia

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

Post#6 by testsforknowledge » 08 Mar 2013, 14:36

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

testsforknowledge
Black ninja
Black ninja
Posts: 42
Joined: 07 Jan 2013, 16:44
Distribution: PORTEUS
Location: slovenia

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

Post#7 by testsforknowledge » 08 Mar 2013, 14:36

Fanthom, Fanthom, i misstyped ... :)

Post Reply