Wednesday, 2013-06-26

--- Day changed Wed Jun 26 2013
peterleinchensvp?00:00
HtheBwhatsup00:00
HtheBhow r you00:00
HtheBshortened: sup00:00
HtheB:D00:01
peterleinchenok00:01
peterleinchenstands for okay ;)00:01
peterleinchennot 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 #ubiboot00:02
HtheBwb00:02
-!- mode/#ubiboot [+imo juiceme] by ChanServ00:02
-!- mode/#ubiboot [-im] by juiceme00:02
HtheBstands for welcome back00:03
@juicemepeterleinchen, hiya. I answered on TMO :)00:03
peterleinchenthanks. somebody pressed my X00:03
HtheBlol00:03
peterleinchenhiya juiceme00:03
HtheBjuiceme, maybe you can help me with my question00:03
HtheBcheck above (or in the log)00:03
@juicemeHtheB, sure :)00:03
@juicemedo you mean the backup thing?00:04
@juicemecoderus, there are wew hurdles on making the partitions totally independent on FS.00:05
@juicemesee, currently the partitioin types are defined in /etc/fstab, where "mount" looks to know what's the FS type.00:06
@juicemeTo 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
HtheBjuiceme, yes00:06
HtheBa rootfs backup in such way, that it could be used in other devices00:07
HtheBwith ubiboot00:07
peterleinchenoops. 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
@juicemeHtheB, 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
peterleinchenHtheB: I just cp -ar p2 to p5 and it worked.00:09
peterleinchenbut juiceme said right, use tar to get it.00:09
peterleinchenbut how to bring back?00:09
peterleinchentherefore I wanted to boot from p5 as rootfs00:10
peterleinchenthen it should be OK and n prob to restore to p2?00:10
HtheBi see00:10
@juicemewith 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
@juicemepeterleinchen, cp works too00:11
HtheBwell, its because i want to try out some old version of harmattan on the N95000:11
@juicemerestore 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
peterleinchenah yes, of course. in maintenance mode :cool: restoring is no prob00:12
@juicemejust delete the current content (rm -rf /mnt/whatever), and restore: "tar -C /mnt/whatever -xvf archive.tar"00:12
@juicemewhen you restore it is usually best to use the "-C" option to tell what is the root of the restore00:13
HtheBdo i have to exclude some things when tarring?00:14
@juicemeHtheB, propably not really... I have just always made archives with "tar -cvf achive.tar /mnt/whatever" and it works OK00:15
@juicemewhen you do it that way all the stuff gets copied in and out correctly, files, symlinks, devices...00:16
@juicemeexactly the same way you untar a fresh Nemo rootfs, this is exactly the same thing.00:17
@juicemebut yes. need to go now, see ya l8er00:18
peterleinchenah juiceme00:25
peterleinchenwanted to ask you one more question?00:26
peterleinchenbut then I will go to bed also :) good night00:26
HtheBboohooo but I do need to exclude the tar file itself right?00:40
HtheBotherwise it will be in a loop...?00:40
peterleinchenyou shouldn't/must not tar onto the same partition!00:40
peterleinchenjust tar cvzf /home/user/MyDocs/rootfs.tar.gz *00:42
peterleinchenwhen in root "/" of the rootfs you wanna tar00:42
HtheBhmmm00:42
HtheBhang on let me quickly do it right now00:42
peterleinchenmhm00:42
* HtheB gets the device00:42
* HtheB boots the device00:43
HtheBoke,00:43
HtheBnow, im within the terminal00:43
HtheBas root00:44
peterleinchencd to /00:44
HtheBoh w800:44
HtheBfirst, is there a command that removes history?00:44
HtheBof the typed commands?00:44
peterleinchenleave the z out, then it is way faster (bigger)00:45
peterleinchenhistory removed by editing any bashrc file (idk which atm;00:45
HtheBno simple command for it? :P00:45
peterleinchennope. no one I know of.  file is .bash_history00:46
HtheByeah, just searched on google, seems like it is that file00:47
HtheBlet me see where it is located00:47
peterleinchenin your user dir00:47
peterleinchen\/home /user or /root or ...00:47
HtheBshit00:49
HtheBit was called .ash_history00:49
HtheBi removed it00:49
HtheBand. I think I shouldn't remove it... cant run terminal anymore (rebooting device now)00:50
HtheBoke, reboot solved it00:50
HtheBsudo gainroot00:50
HtheBtar -cvf /home/user/MyDocs/rootfs.tar.gz *00:51
peterleinchenwho said remove? ;)00:51
HtheB:D00:51
peterleinchentouch .ash_history .....00:51
HtheByeah, that would be possible :P00:51
HtheBbut the tar command, is that oke?00:52
peterleinchenoke00:52
HtheBwhat about the /home partition?00:52
peterleinchendo you want it also?00:52
HtheBwell, yeah since it's a different OS00:52
HtheBim sure thats handy?00:53
HtheBor am I wrong00:53
peterleinchenargh!!! STOP! ctrl-c00:53
HtheBi haven't started it yet, dont worry00:53
peterleinchenstop that BS I wrote00:53
peterleinchenthis way you would tar everything mounted00:53
peterleinchenyou need to mount /dev/mmcblk0p2 /mnt/p200:54
HtheBi need to exclude some things00:54
HtheBoh00:54
peterleinchenand then cd into /mnt/p200:54
peterleinchenand tar from there00:54
HtheBlets see if they are the same on the proto device00:54
peterleinchenof course you need to mkdir /mnt/p2 first00:55
peterleinchenon proto check fstab for home partition number00:55
peterleinchenif p3 then p2 will be rootfs00:55
HtheBcommand for fstab?00:56
peterleinchencat /etc/fstab00:56
HtheBsays /dev/mmcblk0p3 /home00:57
HtheBrootfs / rootfs00:57
peterleinchenokay, then do as I say00:57
HtheBand mmcblk0p1 /home/user/MyDocs00:57
peterleinchenmkdir /mnt/p200:57
HtheBoke00:57
peterleinchenmkdir /mnt/p300:57
HtheBdone00:57
peterleinchencd /mnt/p200:58
peterleinchenmount /dev/mmcblk0p2 /mnt/p200:58
HtheBdone00:58
peterleinchenls00:58
peterleinchenshould show all rootfs dirs00:58
HtheBoh00:59
HtheBit says00:59
HtheBpermission denied (are you root?)00:59
HtheByes I am root -_-00:59
HtheBdidnt i have to do mmcblk0p3 ?00:59
peterleinchenwhere? did it say permission00:59
HtheBwhen trying to mount01:00
peterleinchenoh :( bad. then you need inception or open mode kernel or ...01:00
HtheBbut there is no aegis01:00
HtheB:(01:00
HtheBon these devices01:01
peterleinchens/inception/opensh/01:01
peterleinchenno aegis? and no right to mount as root?01:01
HtheBthe proto devices didn't had aegis yeah01:01
peterleinchenis unix like windoof here? please try cd /mnt and then mount agaian01:02
HtheBwhy would that differ? :P01:03
HtheBsame error01:03
peterleinchenbecause you were alreafy in that dir you want mount in01:03
HtheBhey im sure i can just exclude a file01:03
HtheBlike --exclude /home/user/MyDocs/* ?01:04
HtheB?01:11
peterleinchenhmm, that would be incorrect. and probably some more mount points mounted which should not be tared01:11
peterleinchensorry, was away for amoment01:12
peterleinchenwhat about installing opensh and try to mount01:12
peterleinchenneed to sleep, good luck01: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
@juicemeHtheB, ping10:51
@juicemeHtheB, did you manage to create the tar from your rootfs in the proto device?10:51
-!- peterleinchen [~user@89.204.135.187] has joined #ubiboot15:30
peterleinchenjuiceme: just booted during lunch from p5 :D15:31
peterleinchenand it was p5 rootfs, as some apps (newly installed) were missing15:31
peterleinchenabout group and passwd idk as they were still available of course15:32
peterleinchencoderus: 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 #ubiboot17:08
HtheBthedead144017:08
HtheBthedead1440_17:20
HtheBpoke poke17:20
HtheBJonni ?17:20
valdur55HtheB: Please ask just your question.17:31
valdur55HtheB: please read this: http://www.catb.org/~esr/faqs/smart-questions.html17:34
HtheB:D17:38
HtheBit's the same question, still don't have a conclusive answer17:38
HtheBi want to extract the rootfs of my device so i can later on use it after putting it back17:39
valdur55It should work...17:55
HtheBwhat command should I use18:02
HtheBand what should I exclude from the tar18: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!