| --- Day changed Wed Jun 26 2013 | ||
| peterleinchen | svp? | 00:00 |
|---|---|---|
| HtheB | whatsup | 00:00 |
| HtheB | how r you | 00:00 |
| HtheB | shortened: sup | 00:00 |
| HtheB | :D | 00:01 |
| peterleinchen | ok | 00:01 |
| peterleinchen | stands for okay ;) | 00:01 |
| peterleinchen | not using this sup apps ! :) | 00:01 |
| -!- peterleinchen [~user@dsbg-4db58923.pool.mediaWays.net] has quit [Quit: My damn controlling terminal disappeared!] | 00:02 | |
| -!- peterleinchen [~user@dsbg-4db58923.pool.mediaWays.net] has joined #ubiboot | 00:02 | |
| HtheB | wb | 00:02 |
| -!- mode/#ubiboot [+imo juiceme] by ChanServ | 00:02 | |
| -!- mode/#ubiboot [-im] by juiceme | 00:02 | |
| HtheB | stands for welcome back | 00:03 |
| @juiceme | peterleinchen, hiya. I answered on TMO :) | 00:03 |
| peterleinchen | thanks. somebody pressed my X | 00:03 |
| HtheB | lol | 00:03 |
| peterleinchen | hiya juiceme | 00:03 |
| HtheB | juiceme, maybe you can help me with my question | 00:03 |
| HtheB | check above (or in the log) | 00:03 |
| @juiceme | HtheB, sure :) | 00:03 |
| @juiceme | do you mean the backup thing? | 00:04 |
| @juiceme | coderus, there are wew hurdles on making the partitions totally independent on FS. | 00:05 |
| @juiceme | see, currently the partitioin types are defined in /etc/fstab, where "mount" looks to know what's the FS type. | 00:06 |
| @juiceme | To make it so that a partition could be mounted, whatever the FS, requires a script that would try various FS'es in order until it succeeds. | 00:06 |
| HtheB | juiceme, yes | 00:06 |
| HtheB | a rootfs backup in such way, that it could be used in other devices | 00:07 |
| HtheB | with ubiboot | 00:07 |
| peterleinchen | oops. sorry for taking old init script. I am using latest init from -02. Must be taken from old directory. But changes are the same so you got the idea :) | 00:08 |
| @juiceme | HtheB, so you need to know how to backup and restore partitions. That can be done either with dd or tar, I prefer tar as it gives you a tighter achive, dd gives a "disk image" that is as large as the physical partition. | 00:08 |
| peterleinchen | HtheB: I just cp -ar p2 to p5 and it worked. | 00:09 |
| peterleinchen | but juiceme said right, use tar to get it. | 00:09 |
| peterleinchen | but how to bring back? | 00:09 |
| peterleinchen | therefore I wanted to boot from p5 as rootfs | 00:10 |
| peterleinchen | then it should be OK and n prob to restore to p2? | 00:10 |
| HtheB | i see | 00:10 |
| @juiceme | with tar, what you need to do is just run ubiboot on maintanance mode, and when the partitions are exported, tar the root partition | 00:11 |
| @juiceme | peterleinchen, cp works too | 00:11 |
| HtheB | well, its because i want to try out some old version of harmattan on the N950 | 00:11 |
| @juiceme | restore goes the same way ar backup. | 00:11 |
| HtheB | (the rootfs will be extracted from a proto n950 with an old version of harmatan) | 00:11 |
| peterleinchen | ah yes, of course. in maintenance mode :cool: restoring is no prob | 00:12 |
| @juiceme | just delete the current content (rm -rf /mnt/whatever), and restore: "tar -C /mnt/whatever -xvf archive.tar" | 00:12 |
| @juiceme | when you restore it is usually best to use the "-C" option to tell what is the root of the restore | 00:13 |
| HtheB | do i have to exclude some things when tarring? | 00:14 |
| @juiceme | HtheB, propably not really... I have just always made archives with "tar -cvf achive.tar /mnt/whatever" and it works OK | 00:15 |
| @juiceme | when you do it that way all the stuff gets copied in and out correctly, files, symlinks, devices... | 00:16 |
| @juiceme | exactly the same way you untar a fresh Nemo rootfs, this is exactly the same thing. | 00:17 |
| @juiceme | but yes. need to go now, see ya l8er | 00:18 |
| peterleinchen | ah juiceme | 00:25 |
| peterleinchen | wanted to ask you one more question? | 00:26 |
| peterleinchen | but then I will go to bed also :) good night | 00:26 |
| HtheB | boohooo but I do need to exclude the tar file itself right? | 00:40 |
| HtheB | otherwise it will be in a loop...? | 00:40 |
| peterleinchen | you shouldn't/must not tar onto the same partition! | 00:40 |
| peterleinchen | just tar cvzf /home/user/MyDocs/rootfs.tar.gz * | 00:42 |
| peterleinchen | when in root "/" of the rootfs you wanna tar | 00:42 |
| HtheB | hmmm | 00:42 |
| HtheB | hang on let me quickly do it right now | 00:42 |
| peterleinchen | mhm | 00:42 |
| * HtheB gets the device | 00:42 | |
| * HtheB boots the device | 00:43 | |
| HtheB | oke, | 00:43 |
| HtheB | now, im within the terminal | 00:43 |
| HtheB | as root | 00:44 |
| peterleinchen | cd to / | 00:44 |
| HtheB | oh w8 | 00:44 |
| HtheB | first, is there a command that removes history? | 00:44 |
| HtheB | of the typed commands? | 00:44 |
| peterleinchen | leave the z out, then it is way faster (bigger) | 00:45 |
| peterleinchen | history removed by editing any bashrc file (idk which atm; | 00:45 |
| HtheB | no simple command for it? :P | 00:45 |
| peterleinchen | nope. no one I know of. file is .bash_history | 00:46 |
| HtheB | yeah, just searched on google, seems like it is that file | 00:47 |
| HtheB | let me see where it is located | 00:47 |
| peterleinchen | in your user dir | 00:47 |
| peterleinchen | \/home /user or /root or ... | 00:47 |
| HtheB | shit | 00:49 |
| HtheB | it was called .ash_history | 00:49 |
| HtheB | i removed it | 00:49 |
| HtheB | and. I think I shouldn't remove it... cant run terminal anymore (rebooting device now) | 00:50 |
| HtheB | oke, reboot solved it | 00:50 |
| HtheB | sudo gainroot | 00:50 |
| HtheB | tar -cvf /home/user/MyDocs/rootfs.tar.gz * | 00:51 |
| peterleinchen | who said remove? ;) | 00:51 |
| HtheB | :D | 00:51 |
| peterleinchen | touch .ash_history ..... | 00:51 |
| HtheB | yeah, that would be possible :P | 00:51 |
| HtheB | but the tar command, is that oke? | 00:52 |
| peterleinchen | oke | 00:52 |
| HtheB | what about the /home partition? | 00:52 |
| peterleinchen | do you want it also? | 00:52 |
| HtheB | well, yeah since it's a different OS | 00:52 |
| HtheB | im sure thats handy? | 00:53 |
| HtheB | or am I wrong | 00:53 |
| peterleinchen | argh!!! STOP! ctrl-c | 00:53 |
| HtheB | i haven't started it yet, dont worry | 00:53 |
| peterleinchen | stop that BS I wrote | 00:53 |
| peterleinchen | this way you would tar everything mounted | 00:53 |
| peterleinchen | you need to mount /dev/mmcblk0p2 /mnt/p2 | 00:54 |
| HtheB | i need to exclude some things | 00:54 |
| HtheB | oh | 00:54 |
| peterleinchen | and then cd into /mnt/p2 | 00:54 |
| peterleinchen | and tar from there | 00:54 |
| HtheB | lets see if they are the same on the proto device | 00:54 |
| peterleinchen | of course you need to mkdir /mnt/p2 first | 00:55 |
| peterleinchen | on proto check fstab for home partition number | 00:55 |
| peterleinchen | if p3 then p2 will be rootfs | 00:55 |
| HtheB | command for fstab? | 00:56 |
| peterleinchen | cat /etc/fstab | 00:56 |
| HtheB | says /dev/mmcblk0p3 /home | 00:57 |
| HtheB | rootfs / rootfs | 00:57 |
| peterleinchen | okay, then do as I say | 00:57 |
| HtheB | and mmcblk0p1 /home/user/MyDocs | 00:57 |
| peterleinchen | mkdir /mnt/p2 | 00:57 |
| HtheB | oke | 00:57 |
| peterleinchen | mkdir /mnt/p3 | 00:57 |
| HtheB | done | 00:57 |
| peterleinchen | cd /mnt/p2 | 00:58 |
| peterleinchen | mount /dev/mmcblk0p2 /mnt/p2 | 00:58 |
| HtheB | done | 00:58 |
| peterleinchen | ls | 00:58 |
| peterleinchen | should show all rootfs dirs | 00:58 |
| HtheB | oh | 00:59 |
| HtheB | it says | 00:59 |
| HtheB | permission denied (are you root?) | 00:59 |
| HtheB | yes I am root -_- | 00:59 |
| HtheB | didnt i have to do mmcblk0p3 ? | 00:59 |
| peterleinchen | where? did it say permission | 00:59 |
| HtheB | when trying to mount | 01:00 |
| peterleinchen | oh :( bad. then you need inception or open mode kernel or ... | 01:00 |
| HtheB | but there is no aegis | 01:00 |
| HtheB | :( | 01:00 |
| HtheB | on these devices | 01:01 |
| peterleinchen | s/inception/opensh/ | 01:01 |
| peterleinchen | no aegis? and no right to mount as root? | 01:01 |
| HtheB | the proto devices didn't had aegis yeah | 01:01 |
| peterleinchen | is unix like windoof here? please try cd /mnt and then mount agaian | 01:02 |
| HtheB | why would that differ? :P | 01:03 |
| HtheB | same error | 01:03 |
| peterleinchen | because you were alreafy in that dir you want mount in | 01:03 |
| HtheB | hey im sure i can just exclude a file | 01:03 |
| HtheB | like --exclude /home/user/MyDocs/* ? | 01:04 |
| HtheB | ? | 01:11 |
| peterleinchen | hmm, that would be incorrect. and probably some more mount points mounted which should not be tared | 01:11 |
| peterleinchen | sorry, was away for amoment | 01:12 |
| peterleinchen | what about installing opensh and try to mount | 01:12 |
| peterleinchen | need to sleep, good luck | 01:14 |
| -!- peterleinchen [~user@dsbg-4db58923.pool.mediaWays.net] has quit [Quit: [BX] Reserve your copy of BitchX-1.2c01-svn for the BeOS today!] | 01:14 | |
| -!- HtheB [~HtheB@62.140.132.205] has quit [Quit: Communi 1.3.0.0 for MeeGo] | 09:53 | |
| @juiceme | HtheB, ping | 10:51 |
| @juiceme | HtheB, did you manage to create the tar from your rootfs in the proto device? | 10:51 |
| -!- peterleinchen [~user@89.204.135.187] has joined #ubiboot | 15:30 | |
| peterleinchen | juiceme: just booted during lunch from p5 :D | 15:31 |
| peterleinchen | and it was p5 rootfs, as some apps (newly installed) were missing | 15:31 |
| peterleinchen | about group and passwd idk as they were still available of course | 15:32 |
| peterleinchen | coderus: sorry for totally confusing this night. As the /init is part of ubifs (compiled into kernel, just realized this morning :(), there is no chance for you to manage on your own. | 15:33 |
| -!- peterleinchen [~user@89.204.135.187] has quit [Client Quit] | 15:33 | |
| -!- HtheB [~HtheB@62.140.137.77] has joined #ubiboot | 17:08 | |
| HtheB | thedead1440 | 17:08 |
| HtheB | thedead1440_ | 17:20 |
| HtheB | poke poke | 17:20 |
| HtheB | Jonni ? | 17:20 |
| valdur55 | HtheB: Please ask just your question. | 17:31 |
| valdur55 | HtheB: please read this: http://www.catb.org/~esr/faqs/smart-questions.html | 17:34 |
| HtheB | :D | 17:38 |
| HtheB | it's the same question, still don't have a conclusive answer | 17:38 |
| HtheB | i want to extract the rootfs of my device so i can later on use it after putting it back | 17:39 |
| valdur55 | It should work... | 17:55 |
| HtheB | what command should I use | 18:02 |
| HtheB | and what should I exclude from the tar | 18:03 |
| -!- rikanee [~rika@unaffiliated/rikanee] has quit [Ping timeout: 252 seconds] | 18:27 | |
Generated by irclog2html.py 2.12.1 by Marius Gedminas - find it at mg.pov.lt!