1. Hot New Devices! HTC One M9 | Samsung Galaxy S6 | LG G4

Re-Naming Nandroids?


  1. mxsjw

    mxsjw Well-Known Member

    Can nandroids be renamed? I'm getting quite a few saved up and the date code is not tickling my memory of what the set up was on that particular day. Just wondering if I rename them will they still work?

    Advertisement
  2. Airmaxx23

    Airmaxx23 Well-Known Member

    I've renamed all of mine and they work fine when I restore them. Just be sure there are no spaces in the name.
    mxsjw likes this.
  3. tom108

    tom108 Well-Known Member

    yes they can be renamed. ;)
    mxsjw likes this.
  4. mxsjw

    mxsjw Well-Known Member

    Thank you kind sirs
  5. eraursls1984

    eraursls1984 Well-Known Member

    If you happen to get a md5 mismatch make sure you didn't put a space in the name, and if so remove it and use _ , -, or a .
    mxsjw likes this.
  6. mxsjw

    mxsjw Well-Known Member

    Thanks for the note, I had planned on using -'s for spacing.:D
  7. scary alien

    scary alien not really so scary Moderator

    Also, don't use an ampersand :p (this will cause the Nandroid restore to be launched in the background via the shell and never able to return his status to the recovery that launched it).

    Stick with "normal" characters (letters, numbers, dash, underscore, period, etc.) and avoid using any character that the shell might interpret as a meta character (asterisk, question mark, greater than, less than, vertical bar, semi-colon, ampersand). This is because your custom recovery will launch the nandroid-mobile.sh script to a shell and pass its arguments and parameters that the shell will interpret and possible take action against that you didn't anticipate.

    Also, be sure to not rename the folder name above the Nandroid backup directory. This will be your phone's serial number and custom recovery won't be able to find your backups if you rename it (you can always rename it back to its proper value if you need to).

    Cheers!
    aloha.android and mxsjw like this.
  8. C0n57an71n3

    C0n57an71n3 Well-Known Member

    If I'm reading this right do NOT rename the 10-26-2012-34.96.37 folder??
  9. mxsjw

    mxsjw Well-Known Member

    Edit...I tried renaming that same type of folder, I left the original name and added to the beginning of it so it looked something like this...
    abcd-abcd-abcd-10-26-2012-34.96.37

    I got the same as you say in the post below this one???
  10. C0n57an71n3

    C0n57an71n3 Well-Known Member

    Odd. When I renamed those I got md5 errors. I had no spaces. Either it was my error or Fission somehow jacked them up. I'm not positive.
  11. mxsjw

    mxsjw Well-Known Member

    Edit...need help with what we can name and how to name it?
  12. eraursls1984

    eraursls1984 Well-Known Member

    I've named mine "ApeX_RC2_BigDX_Red" "Apex_V1_Theme" etc. with no problems, I take out all the original text. Maybe it can only be so many characters?
  13. C0n57an71n3

    C0n57an71n3 Well-Known Member

    I had mine renamed "ApeX" and "Moto2.2" and got md5 errors with both.
  14. mezdup

    mezdup Well-Known Member

    i rename my backups through ROM Manager. seems safer than messing with folders.
  15. Airmaxx23

    Airmaxx23 Well-Known Member

    I have a few that are named based on the date and what ROM it has running.

    10-24-10-Apex-OC1.35 This is the name of my Apex backup that I made on 10-24 that is overclocked at 1.35GHz. I've restored it and it works fine.
  16. jreed2560

    jreed2560 Well-Known Member



    waaaaaaa.........???????





    jk
  17. scary alien

    scary alien not really so scary Moderator

    Lol! (as always!--these forums wouldn't be the same without jreed :))

    By the way, my post above came from researching how nandroid-mobile.sh works when invoked by Amon_RA's custom recovery, specifically on the HTC Droid Eris. I have yet to find the source for Koush's ClockworkMod even though I've seen references saying its open source.

    edit: I do see that Koush's ClockworkMod source is available in the CyanogenMod source tree...I'll grab a copy and update this thread when I get a chance...

    But, I assume that nandroid-mobile.sh script is probably invoked in the same manner for either recovery (albeit with different options since its known that the Nandroid backup directories contain different files between ClockworkMod and Amon_RA's).

    The nandroid-moible.sh script is invoked via fork()ing (yeah, that's right :D) /sbin/sh with a command of /sbin/nandroid-mobile.sh -r -e --norecovery --nomisc --nosplash1 --nosplash2 --defaultinput -s <backupdirname> where <backupdirname> is the name of the Nandroid backup directory selected via custom recovery. So, you can see that passing a <backupdirname> containing spaces or other meta characters such as an asterisk, ampersand, etc. will potentially cause the nandroid-mobile.sh script to not be able to properly identify and operate against (i.e., restore). Also, the nandroid-mobile.sh script itself uses the backup directory name passed from recovery and does a RESTOREPATH=`ls -trd $BACKUPPATH/*$SUBNAME* 2> /dev/null | tail -1` which certainly would fail should certain meta characters be present in the SUBNAME variable (which is populated with the -s <backupdirname> name from custom recovery.

    These assumptions might not be correct for ClockworkMod, but then again...;)

    Cheers!

    edit: by the way, the full path name for a Nandroid backup using Amon_RA's recovery is /sdcard/nandroid/<device serial #>/BDS-ccyymmdd-hhmm and contains the system.img, boot.img, data.img, and nandroid.md5 files. The <device serial #> directory is the serial number of your phone (don't publish that here since it uniquely identifies you and your phone) and must match your phone's serial number in order for custom recovery to find it (i.e., you don't want to rename this directory). So, you should be able to rename the BDS-ccyymmdd-hhmm directory name (or whatever format ClockworkMod uses) as long as you stay away from meta characters that might be interpreted by the shell.
  18. jreed2560

    jreed2560 Well-Known Member

    Somebody ate their wheaties this morning. Seriously though even tho I comprehend most of what you just said, it still makes my brain hurt. Especially in the am.
  19. mxsjw

    mxsjw Well-Known Member

    Figured out my issue...I had an extra space before the beginning of the name that I did not see until I went to remove the additional naming. I think it was an autospace from swype I didn't catch while editing.
    It looked something like this...
    " Apex-nextheme-noclock-2010-10-26.15.42.59"
    Removed that space from the front and they now work just fine.

    I also added folders within "backup" and moved renamed backups to them. "Original", "Themes", "ROMs". They all work now.:D

    Thanks again Ladies and Gents.
    scary alien likes this.
  20. scary alien

    scary alien not really so scary Moderator

    Thank you for the follow-up and confirmation! Cheers!
    mxsjw likes this.
  21. mxsjw

    mxsjw Well-Known Member

    I take this back, the folders do not work properly. When I boot into recovery, got to restore, and go to my "ROMs" folder, it does not show me the multiple options within...just immediately goes to the restore confirmation screen without letting me select which of the 2 folders contained in "ROMs" to restore. I did not hit yes as I did not know what would happen, so I've removed the extra folders and am sticking to my naming convention, I'll be able to figure it out well enough.
  22. scary alien

    scary alien not really so scary Moderator

    Oh, you created subfolders under the main Nandroid backup directory?

    Sorry, didn't catch that before...

    Yeah, I don't think "they" (custom recoveries) will like that (but you know that now, eh? ;)).
  23. C0n57an71n3

    C0n57an71n3 Well-Known Member

    I'm just going to use ROM Manager to rename them.
  24. eraursls1984

    eraursls1984 Well-Known Member

    I renamed mine through root explorer, just make sure your keyboard doesn't add spaces automatically, that's how mine messed up a couple of times.
  25. mxsjw

    mxsjw Well-Known Member

    Same thing here, removed the extra spaces in their new names and all mine work now.

Share This Page