Author Topic: dump ramdisk to cf?  (Read 5858 times)

shadowkwarrior

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://
dump ramdisk to cf?
« on: February 22, 2004, 01:29:49 am »
theres probably a easy way to do this, but my linux skills are somewhere around non-existant, so bear w/ me please. ive got my zaurus setup just like i want right now, going on a trip next week and was wondering if it was possible to dump everything in the ramdisk to cf, so if i mess it up i can flash from image on cf and restore what was on ramdisk this way i wont have to reinstall all my programs again, thanks
SL-5500 tkc 3.0alpha 128MB SD
new SL-5600 sharp rom...still trying to figure out how to flash..

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
dump ramdisk to cf?
« Reply #1 on: February 22, 2004, 07:34:52 am »
Without knowing what version Z you have I can only suggest NAND backup, but the backup/restore app on the C760 does pretty much what you want. NAND backup will backup everything in one big package (132 Mb for C760)

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

Anonymous

  • Guest
dump ramdisk to cf?
« Reply #2 on: February 22, 2004, 11:21:15 am »
oops, im using a sl-5500 running tkc.rom2.0 alpha3, what is nand backup?. the thing is i wont have a computer with me, so i have to restore from cf and dont want to set up all the apps again. thanks

shadowkwarrior

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://
dump ramdisk to cf?
« Reply #3 on: February 22, 2004, 11:22:29 am »
thats was me, forgot to login
SL-5500 tkc 3.0alpha 128MB SD
new SL-5600 sharp rom...still trying to figure out how to flash..

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
dump ramdisk to cf?
« Reply #4 on: February 22, 2004, 11:56:12 am »
nand backup is for the cxxx machines only.

I suppose you could do:

cd /mnt/cf
tar -cf ram_backup.tar /mnt/ram
gzip ram_backup.tar

But I don\'t know whether this even exists for you, nor do I know how easy it would be to write the data back.

You should be able to get away with backing up your /home/zaurus and /home/root directories and (depending on how the symlinks work) /etc and /opt

Isn\'t there a backup app on that ROM like there is on the Sharp ROMs?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

shadowkwarrior

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://
dump ramdisk to cf?
« Reply #5 on: February 22, 2004, 03:15:27 pm »
thanks, if i wanted to create a script for it would s work? and where do i put the script?

#!/bin/bash
su
cd /mnt/cf
tar -cf backup.tar /home/root
gzip backup.tar
exit 0

thanks again...maybe after messing w/ the zaurus for a while i\'ll actually learn linux :-p
SL-5500 tkc 3.0alpha 128MB SD
new SL-5600 sharp rom...still trying to figure out how to flash..

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
dump ramdisk to cf?
« Reply #6 on: February 22, 2004, 06:15:57 pm »
Yeah that should work, but as you\'re using \'su\' I assume you run as \'zaurus\' normally. In that case there may be files in the /home/zaurus/ directory which you could do with saving. You\'ll also have to check that /etc and /QtPalmtop are actually subdirectories of /home/root otherwise you won\'t save much (you\'ll save the data files, but not the applications).

Probably best that someone who actually runs tkc advises you.

If you\'ve not got time for that, I\'d just take the ipks on your CF card and backup /home/<user>/applications and its subdirectories and possibly also some of the (possibly hidden) subdirectories directly under /home/<user> which contain other config data. Probably also worth backing up parts of /etc (for example /etc/ppp if you have dialup scripts).


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Anonymous

  • Guest
dump ramdisk to cf?
« Reply #7 on: February 22, 2004, 06:24:04 pm »
instead of
tar -cf backup.tar /home/root

i\'ll just use this
tar -cf backup.tar /home
tar -cf backup.tar /opt
but, the script doesnt seem to run, i have .sh associated w/ the terminal app, so it should work... can u enlighten me?

shadowkwarrior

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://
dump ramdisk to cf?
« Reply #8 on: February 22, 2004, 07:00:00 pm »
that was me again, hmm i suppose what i need is a script tutorial for zaurus, the one in the how to section didnt help as much as i would like.


hmm i tried to execute by typing /mnt/cf/backup.sh in terminal, but it just says \"backup: not found \"

#!/bin/bash
su
mkdir -p /mnt/cf/backup
cd /mnt/cf/backup
tar -cf home.tar /home/
gzip home.tar
tar -cf opt.tar /opt
gzip opt.tar
echo \"backup successful\"
exit 0

anything i did wrong?
SL-5500 tkc 3.0alpha 128MB SD
new SL-5600 sharp rom...still trying to figure out how to flash..

Joshp

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • http://
dump ramdisk to cf?
« Reply #9 on: February 22, 2004, 07:23:37 pm »
Try this:

#!/bin/bash
su  -c  `
mkdir -p /mnt/cf/backup
cd /mnt/cf/backup
tar -cf home.tar /home/
gzip home.tar
tar -cf opt.tar /opt
gzip opt.tar
echo \"backup successful\"
exit 0
`

Let me know if this works.

JP

shadowkwarrior

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://
dump ramdisk to cf?
« Reply #10 on: February 22, 2004, 07:33:17 pm »
hmm, still not working for me :-( what do i have to do to run the script? in terminal i can just put backup.sh if thats the filename right? does the script have to be located anywhere specifically? i had it in /mnt/cf and /home/QtPalmtop/bin and tried to run from both, neither did anything

heres a screenshot if that helps ...

[img]http://www.skw.no-ip.org/download/scrn001.JPG\" border=\"0\" class=\"linked-image\" /]
SL-5500 tkc 3.0alpha 128MB SD
new SL-5600 sharp rom...still trying to figure out how to flash..

Joshp

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • http://
dump ramdisk to cf?
« Reply #11 on: February 22, 2004, 07:54:37 pm »
Ok.  I can only think of one more thing to try and thats to change #!/bin/bash to #!/bin/sh.  What rom are you running?

Hope that works.

JP

shadowkwarrior

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://
dump ramdisk to cf?
« Reply #12 on: February 22, 2004, 07:56:29 pm »
hmm, nop. im running tkc.rom2.0alpha3 , is there a package i need to run shell scripts?
SL-5500 tkc 3.0alpha 128MB SD
new SL-5600 sharp rom...still trying to figure out how to flash..

Joshp

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • http://
dump ramdisk to cf?
« Reply #13 on: February 22, 2004, 08:04:37 pm »
I don\'t think so.  But I may be worng.  I run the script on both my tck.rom1.0 and my OZ 3.3.5 and it ran on both.  I have no idea what the problem is.  

JP

shadowkwarrior

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://
dump ramdisk to cf?
« Reply #14 on: February 22, 2004, 08:08:10 pm »
hmm so weird... especially when it works if i just copy and paste script in manually...
SL-5500 tkc 3.0alpha 128MB SD
new SL-5600 sharp rom...still trying to figure out how to flash..