The Following 2 Users Say Thank You to juiceme For This Useful Post: | ||
|
2015-08-12
, 21:14
|
Posts: 290 |
Thanked: 385 times |
Joined on Jan 2012
@ Madrid, Spain
|
#1312
|
Short tutorial to backup full device with ubiboot (for console enthusiasts only ):
- power down device
- connect USB to device and PC (be it Linux or Windoze flavor)
- wait for maintenance mode screen
at this time you should notice also mounted drive(s) on PC,
on Windoze only p1, on Linux all partitions (according to your ubiboot.conf)
do NOT touch that drive under Windoze yet
- open a console on PC and telnet/ssh into N9
- create some mount points
mkdir /mnt/p1
mkdir /mnt/p2
mkdir /mnt/p3
mkdir /mnt/px #for other partitions you might have
- mount MyDocs read-write, rootfs (p2) and home (p3) read-only
mount -w -t vfat /dev/mmcblk0p1 /mnt/p1
mount -r -t ext4 /dev/mmcblk0p2 /mnt/p2
mount -r -t ext4 /dev/mmcblk0p3 /mnt/p3
- tar up rootfs and home on MyDocs
cd /mnt/p2
tar -cvf /mnt/p1/p2.tar *
cd /mnt/p3
tar -cvf /mnt/p1/p3.tar *
you may also use
tar -cvzf /mnt/p1/pX.tar.gz *
for compressed tar, but it will take ages...
- now unmount all
umount /mnt/p1
umount /mnt/p2
umount /mnt/p3
- if you like, grab the tar files on N9/MyDocs NOW via the mounted drive from PC (do this first at this stage/unmounting as MyDocs seems mountable twice from PC and from N9, read access should not get you into trouble, but concurrent write access may do so, to the extent of fully broken file system)
That's it. Full backup of device done under Windoze with the help of ubiboot maintenance mode.
For Linux you may do it the same way or just directly mount and tar from PC.
Thanks again to juiceme for providing such wonderful tool!
Just thought I write it down, even all above is obvious.
Maybe worth to add to wiki or Readme?
--
Restore:
- power down device
- connect USB to device and PC (be it Linux or Windoze flavor)
- wait for maintenance mode screen
at this time you should notice also mounted drive(s) on PC,
on Windoze only p1, on Linux all partitions (according to your ubiboot.conf)
do NOT touch that drive under Windoze yet
- open a console on PC and telnet/ssh into N9
- create some mount points
mkdir /mnt/p1
mkdir /mnt/p2
mkdir /mnt/p3
mkdir /mnt/px #for other partitions you might have
- mount MyDocs read-only, rootfs (p2) and home (p3) read-write
mount -r -t vfat /dev/mmcblk0p1 /mnt/p1
mount -w -t ext4 /dev/mmcblk0p2 /mnt/p2
mount -w -t ext4 /dev/mmcblk0p3 /mnt/p3
- untar rootfs and home from MyDocs
cd /mnt/p2
rm -fr *
tar -xvf /mnt/p1/p2.tar
cd /mnt/p3
rm -fr *
tar -xvf /mnt/p1/p3.tar
if you have compressed tar.gz, use
tar -xvzf /mnt/p1/pX.tar.gz
- now unmount all
umount /mnt/p1
umount /mnt/p2
umount /mnt/p3
If you need to copy the backup from PC back to N9 first, then do it as first step before mounting.
Disclaimer: verified the restore up to now only to copy Harmattan root from p2 to p5 and it worked. So I am convinced, this will work.
|
2015-08-13
, 04:21
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#1313
|
However I have a pair of questions to ask:
1.- Can I do this procedure in a device without openmode kernel? My main device is not flashed with openmode .
2.- Given that only the ubiboot kernel is flashed to export the partitions: Can I skip the ubiboot installation process (i.e: will it work just flashing the ubiboot kernel, making the backup and then reflashing the stock kernel)?
The Following 3 Users Say Thank You to juiceme For This Useful Post: | ||
|
2015-08-13
, 08:08
|
Posts: 290 |
Thanked: 385 times |
Joined on Jan 2012
@ Madrid, Spain
|
#1314
|
Hi!
Then the first question;
In theory the backup method works also with a device without open mode kernel, however note that when you boot it even once with something else than nokia-signed kernel the device will be set to open mode and remains so until you fully reflash it with nokia-signed package.
What this means is that your device will be in open mode without an open mode kernel; you lose ability to do some things, for example device lock will not work any more.
|
2015-08-13
, 08:44
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#1315
|
Hi.
One more question
When you say "fully reflash it with nokia-signed package" you mean the whole vanilla package? Or is it enough to just reflash the stock kernel after the backup? (There's a "slight" difference, you know)
Regards.
|
2015-09-04
, 08:12
|
Posts: 498 |
Thanked: 836 times |
Joined on Jun 2012
@ Finland
|
#1317
|
|
2015-09-04
, 14:30
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#1318
|
Decided to flash my spare N9 with ubiboot for harmattan and nitroid. Can't find the zImage_e-yes_nitdroid+l2fi kernel that is to be used with Ubiboot anywhere from the web. Anyone have it?
The Following 3 Users Say Thank You to juiceme For This Useful Post: | ||
|
2015-09-04
, 18:46
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#1319
|
The Following 3 Users Say Thank You to juiceme For This Useful Post: | ||
|
2016-01-03
, 19:55
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#1320
|
And you really get no log files to your /home/user/MyDocs/boot/ after booting with ubiboot??
What exactly happens when you boot the device, you get the green-text screen OK, with the boot message and then finally end up with "boot menu script not found!" error?
Did you try to boot with USB cable connected, can you telnet to the device and check what's happening inside?
Last edited by juiceme; 2015-06-16 at 11:13. Reason: missing quote