Author Topic: Surviving Updating The Rom  (Read 4947 times)

macwiz

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • http://www.macwiz.co.uk
Surviving Updating The Rom
« on: April 02, 2006, 12:12:00 pm »
Count me as a newbie when answering this query. I would like to know how I preserve my settings, documents, and if possible my installed applications when installing a new ROM.

I would like to use my Z more, but what holds me back is the fact that unless I have my documents on a card, I lose everything when I update the ROM. I would like to be able to preserve my whole environment as far as possible. I can't afford business critical documents to be inaccessible while I get my Z back to where it was before I reflashed.

Thanks for any help!

John
Macwiz
c860, never quite lived up to my expectations... my fault I guess
17in MacBook Pro lovely xxxx
iPhone 3G ummm
SE P990i with UIQ3. Never enough RAM.
Pocket Loox 720 used for designing ebooks. Just don't like it though!

macwiz: apple mac support in Oxfordshire
Twitter: @boffinboy

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Surviving Updating The Rom
« Reply #1 on: April 02, 2006, 01:07:54 pm »
I simply tar my home directory to a CF card
Code: [Select]
# tar czvf /mnt/cf/home.date.tar.gz .
I also keep all key apps I use, kopi, kismet & others in a directory on my CF and after reflashing (and before untarring my home directory) I install them all with one command
Code: [Select]
# ipkg install /mnt/cf/install-feed/*
Since I've been flashing back forth with OZ/GPE I've also taken all of the settings that I've tweaked outside of my home dir; kismet.conf, wifi-radar.conf, etc and put them into an ipk. I can get my Z back in about 30 minutes after re-flashing.

cheers,
Jerry
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

apink

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Surviving Updating The Rom
« Reply #2 on: April 02, 2006, 10:54:40 pm »
Quote
Since I've been flashing back forth with OZ/GPE I've also taken all of the settings that I've tweaked outside of my home dir; kismet.conf, wifi-radar.conf, etc and put them into an ipk. I can get my Z back in about 30 minutes after re-flashing.

cheers,
Jerry
[div align=\"right\"][a href=\"index.php?act=findpost&pid=121483\"][{POST_SNAPBACK}][/a][/div]

Is it too complicated to briefly explain how to construct that ipk?  I know this is opening me up to the standard rtfm response, but I would guess that there is more than one newbie who would benefit from a quick ipk lesson ala tweaked .conf files.
--current use--
linux chroot on top of lineage  on cell phone

--past handhelds--
pandora
ben nanonote
zaurus sl-c1000

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
« Last Edit: April 03, 2006, 02:36:13 am by pgas »
SLC-860 cacko / senao wifi

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Surviving Updating The Rom
« Reply #4 on: April 03, 2006, 02:43:30 am »
Quote
Is it too complicated to briefly explain how to construct that ipk?  I know this is opening me up to the standard rtfm response, but I would guess that there is more than one newbie who would benefit from a quick ipk lesson ala tweaked .conf files.
Make an arbitary directory somewhere, say /mnt/cf/my-config-ipkg. Now within this directory populate with the files that you wish to "backup", remember to keep the original directory structure, eg:

Code: [Select]
/mnt/cf/my-config-ipkg/etc/passwd
/mnt/cf/my-config-ipkg/etc/groups
/mnt/cf/my-config-ipkg/etc/X11/xinit/xinitrc.kde
/mnt/cf/my-config-ipkg/etc/X11/xinit/xinitrc.matchbox
/mnt/cf/my-config-ipkg/etc/X11/xinit/xinitrc
/mnt/cf/my-config-ipkg/etc/X11/xinit/xinitrc.openbox
/mnt/cf/my-config-ipkg/home/root/.mc
/mnt/cf/my-config-ipkg/home/root/.mc/ini
/mnt/cf/my-config-ipkg/home/root/.mc/Tree
/mnt/cf/my-config-ipkg/home/root/.mc/cedit
/mnt/cf/my-config-ipkg/home/root/.mc/cedit/cooledit.macros
/mnt/cf/my-config-ipkg/home/root/.mc/filepos
/mnt/cf/my-config-ipkg/home/root/.mc/hotlist.bak
/mnt/cf/my-config-ipkg/home/root/.mc/history
/mnt/cf/my-config-ipkg/home/root/.mc/hotlist

Then create a file /mnt/cf/my-config-ipkg/CONTROL/control containing something along the lines of:
Code: [Select]
Package: my-config-backup
Maintainer: mickey-mouse @ disney.com
Architecture: armv5tel
Version: 2006-04-01
License: any
Description: a backup of my config files
Source: my zaurus

Then run:
mkipg /mnt/cf/my-config-ipkg/

But before you do all this you really ought to read this for the full details.

However IMO it is better to use a standard tarball to keep your config files. The cool thing is that mc knows about tar files (tar.gz at least, not .bz2 though) and you easily pick which files to you want "restored". This is better than the all-or-nothing approach that an ipk offers. See screenshot.
 [ Invalid Attachment ]
-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

macwiz

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • http://www.macwiz.co.uk
Surviving Updating The Rom
« Reply #5 on: April 03, 2006, 08:37:37 pm »
Thanks for these tips. I suppose I am wondering if there is anyway I can install my apps onto an SD card and then have the reflashed rom able to find the SD installed apps. Also my home directory too. I guess it could be a symlink thing, but I am a bit hazy about where to start.
Macwiz
c860, never quite lived up to my expectations... my fault I guess
17in MacBook Pro lovely xxxx
iPhone 3G ummm
SE P990i with UIQ3. Never enough RAM.
Pocket Loox 720 used for designing ebooks. Just don't like it though!

macwiz: apple mac support in Oxfordshire
Twitter: @boffinboy

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Surviving Updating The Rom
« Reply #6 on: April 04, 2006, 11:45:17 am »
Hi!

I have an always-in SD card, I'm storing everything personal/custom on it in the following way:
I have a directory in /mnt/card called "myhome". I have a small script in /usr/bin with the following content:

startup.sh:
Code: [Select]
mount -o bind /mnt/card/myhome /home/rootThis binds it to /home/root so everything is working fine (not so when you just symlink it)

So I login, type in "startup.sh", logout, login (so my custom .bashrc can be used) and everything's fine. I also link out my custom config files from this dir, so they don't need to be gathered for a reflash, just link them out again when my new system is up. I still have to reinstall all IPKs, which is a bit time consuming, but it usually helps me to keep my system clean (not installing useless packages again ). This way I got my 30min/reflash time too.

Zumi

Ps.: For those who are wondering where have I gone from the forum/development: I got quite a hard semester at the university, and have to do more things anyway than I usually do, so -- sadly -- I don't have time now. So no new fvwm-pdaxrom releases or gpsdrive ipks in the near future.  
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Surviving Updating The Rom
« Reply #7 on: April 04, 2006, 06:24:46 pm »
Quote
Thanks for these tips. I suppose I am wondering if there is anyway I can install my apps onto an SD card and then have the reflashed rom able to find the SD installed apps. Also my home directory too. I guess it could be a symlink thing, but I am a bit hazy about where to start.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=121678\"][{POST_SNAPBACK}][/a][/div]

For most apps, I believe this should work just as you describe - just run 'ipkg-link mount /mnt/card' to re-link all the installed apps (assuming they are compatible with the newly flashed OS).
SL6000-L, RC12