Page 1 of 1

Magic Folders issue with /home/guest

Posted: 24 Jun 2011, 12:15
by dein0s
just found another bug, with magic folder

folders.cfg

Code: Select all

/mnt/sdc1/porteus/magfo.dat /home/guest
after reboot getting this error: "Could not start kstartupconfig. Check your installation"

Re: Magic Folders issue with /home/guest

Posted: 24 Jun 2011, 16:36
by Ahau
@dein0s,

I’ve split this post from your other bug report (Porteus 1.0 bug).

I can confirm this bug. The problem is that the magic_folders setup script does not copy files from the source directory to the target directory when you use a .dat container.

Note to fanthom: files are correctly copied from source to target when a plain folder is used as the target; I took a look at the script and I believe it’s missing something for .dat containers, like mounting it on a loop before trying to copy files to it?

So, what happens is you are mounting a blank .dat directory to /guest/home/, which makes /guest/home empty. Without all of the config files, kde won’t start up properly.

My tested workaround (boy, this took me a lot of testing!):

1 ) Bootup Porteus as guest (if you have a messed up magic folder, use ‘nomagic’ cheatcode to avoid loading it)
2 ) Run the ‘magic_folders’ script (from GUI or console)
3 ) Specify the target as a .dat, and tell the system that you want to make a container file, and specify the size
4 ) Do not initialize magic folders at this point
5 ) su to root
6 ) mount your new .dat container: ‘mloop /mnt/sdb1/porteus/yourdat.dat’ or wherever you have it
7 ) cd to /mnt/
8 ) run this command: ‘chown guest:guest loop’ to change ownership of the /mnt/loop/ directory to guest
9 ) Open up konqueror (as guest), go to /home/guest. Enable viewing hidden files from the ‘view’ menu, then select all, copy.
10 ) Still within konqueror as guest, navigate to /mnt/loop, and paste all files there
11 ) Reboot as guest. It should be working now.

Note: If you create a .dat container with a different path or name, go clean up your /porteus/rootcopy/etc/magic_folders/config file so that the only line there is the one pointing to your new .dat container. If there are any broken folder links (missing .dat’s, etc), the script will stop and not mount the rest of the magic folders. This is probably a bug that could use some attention too (i.e. make it so that if mounting of any magic folders fails, the script continues on to the next line in the config file without exiting).

I hope this helps – let me know if it doesn’t.

EDIT: the reason you need to chown /mnt/loop is because you can't write to it as guest otherwise. If you try to copy your files from /home/guest to /mnt/loop as root, it will set root as the owner/group on all of those files. I'm sure there's a way to copy them while preserving ownership, but I'm a noob in some respects, and I don't know it. lol.

Re: Magic Folders issue with /home/guest

Posted: 25 Jun 2011, 05:25
by fanthom
@Ahau
good point :)

@dein0s
i have prepared a quick fix for magic_folders issue:
http://ponce.cc/porteus/x86_64/testing/ ... .0-fix.xzm

pls test it and report success/fail

Re: Magic Folders issue with /home/guest

Posted: 26 Jun 2011, 11:16
by dein0s
works fine now, just 1 thing:
when i'm trying to get access to my usb-flash trough "audacious" getting this ^

Code: Select all

Couldn't mount sdc1
mv: cannot move 'sbin/mount.fvat' to 'sbin/mount.fvat-tmp': Premission denied
mount: only root can do that
mv: cannot stat 'sbin/mount.vfat-tmp': No such file or directory

Re: Magic Folders issue with /home/guest

Posted: 26 Jun 2011, 12:35
by Blaze
dein0s, you are need to run root account for this premissions.