[RECOVERY] Lenovo Thinkpad CWR Port

Search This thread

quyTam

Senior Member
May 26, 2011
403
41
It's a bug.

I've already noticed that factory reset format internal memory (=SDCard).

but never had problem with external SDCard
 

Koshu

Senior Member
Jul 28, 2007
348
463
the internal sdcard is data, to be more exactly it's a folder called /data/media. So its not a bug, just a little unlucky datastructure.
 
  • Like
Reactions: quyTam

quyTam

Senior Member
May 26, 2011
403
41
yes, I've read your previous message just after posting mine.
Understand now why it works like that, but it's a little bit confusing and not very handy.

They should make real separate partition for sdCard, not emulate the media folder as a drive...

Now, I praticaly don't use internal memory anymore to store data (I use it only for temp files)
 

quyTam

Senior Member
May 26, 2011
403
41
In this way, internal memory is not very handy for those who flash alot.

I'm satisfied to have bought only a 16gb tablet (and a 32gb SD card); because now, I only use SD card memory anyway...

ps: could it be possible to make a script to do a "factory reset" without erasing "mnt/media" ?
 

froader

Senior Member
Oct 23, 2006
360
45
Recovery updates

I've noticed a lot of requests for jcase to make updates and others have been patching themselves.

You should head over to his github and send him some pull requests for patches.

Make it a team effort.


Now we just need some ROM dev.
 

Kryston

Senior Member
Apr 23, 2009
126
3
You should remake this thread, and post all those links and how to's on the first page and keep it up to date, its better then reading alll those pages.

so it will be much easier to find for new users, i needed 2 hours now to find this....


btw nice work ;)

EDIT: Btw on the asus transformer they added or maybe it was standard, an option to switch between sd card and internal sd card...
such an option would be nice.

And one Question i am running the US Version now on me _WE Tablet, is that ok or will there be any problems in future?
 
Last edited:
  • Like
Reactions: ChadH42

jhankinson

Senior Member
Dec 10, 2009
71
30
Why does doing a factory reset or formatting /data within CWR format the sdcard? In every android device I've owned with CWR, doing a factory reset and does not format your sdcard. And when you specify to only format /data it should only format that directory.

I've flashed/rooted/tinkered with many many android devices with CWR and have never had this issue of it constantly formatting the sdcard. Does any one else have this problem?

It was a bug due to a symlink between /data/media and /sdcard that caused the internal sdcard to be wiped every time. There was an updated version here that fixes the problem. It does not work on ROW tablets though. I don't know if there is a ROW version with the fix, but maybe you could ask realyst2k if he could incorporate the patch that was used on the other version.
 

quyTam

Senior Member
May 26, 2011
403
41
The version you mention skip sdcard for backup, but not while wipe data!

Wipe data in cwm erase the sdcard folder!!!
 

stewarta

Senior Member
Jun 8, 2004
422
37
Melbourne
It was a bug due to a symlink between /data/media and /sdcard that caused the internal sdcard to be wiped every time. There was an updated version here that fixes the problem. It does not work on ROW tablets though. I don't know if there is a ROW version with the fix, but maybe you could ask realyst2k if he could incorporate the patch that was used on the other version.

It seems the ROW version does not have the problem ... leastways I don't seem to have the issue. Luck or stupidity, I'm not sure. LOL

Sent from my ThinkPad Tablet using Tapatalk
 

stewarta

Senior Member
Jun 8, 2004
422
37
Melbourne
ICS from Lenovo

Has anyone received the ICS OTA from Lenovo? I won't get it as I have made CWR persistent, and I'm not un-rooting until I know ICS is available.

MrDeadlocked and his crew have a beta 3 ICS out for my Notion Ink Adam and that virtually reinvigorated that tablet. I love the TPT but it really needs ICS. There are so many neat features it isn't funny. :confused:
 

paperclip69

Senior Member
Apr 13, 2008
104
2
Crosshill, Fife
Has anyone received the ICS OTA from Lenovo? I won't get it as I have made CWR persistent, and I'm not un-rooting until I know ICS is available.

MrDeadlocked and his crew have a beta 3 ICS out for my Notion Ink Adam and that virtually reinvigorated that tablet. I love the TPT but it really needs ICS. There are so many neat features it isn't funny. :confused:

Ics isn't released from lenovo yet, they have a may/june release date, although i have to say I think the US wil have a longer date as they are having to send updates off for certification which seems to take weeks or months for some updates, I am hoping we can edit the update package and upgrade with root preinstalled.

Cheers

Tom

Sent from my ThinkPad Tablet using Tapatalk
 

rangercaptain

Senior Member
Oct 27, 2010
4,538
1,697
West Coast of California
There are two versions for the CWM recovery within this thread -- the jcase version in the first post, and later, one that was adjusted by Koshu to skip the wiping of the /data directory. How can you tell them apart? Both show CWM-based Recovery v5.5.0.4.
 

konker

Senior Member
Jan 9, 2006
325
2
Can I restore a Nandroid back of 0075_US to 0089_US?

My TPT is having issues with device encryption.
The details are available here.
I had the idea of acquiring a 0075_US Nandroid backup to restore to my current rooted 0089_US TPT.
Does anyone know if this would work to roll back my TPT to 0075_US thereby allowing me to regain device encryption functionality again?

Konker
 

qdmcgraw

Member
Dec 26, 2011
35
0
I'm following the instructions, but on the echo bit, I keep getting "cannot create /system/etc/install-recovery.sh: read only file system". What gives?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    Photo by Logxen (aka not my trash!)
    t7Q7v.jpg


    No warranties, no guarantees. If this ruins your device, your fault, not mine. Consider this a test build, backup important stuff manually to your PC for now (photos etc)

    This requires an sdcard installed

    [Image]
    http://download.cunninglogic.com/cwr_ventana_2.img
    39b5557cf3802d677e33cce76047ef60 *cwr_ventana_2.img

    [Source]
    https://github.com/CunningLogic/android_device_lenovo_ventana

    [Instructions]
    Code:
    adb push cwr_ventana_2.img /data/local/
    adb shell
    su
    mount -o rw,remount /system
    echo "#!/system/bin/sh" > /system/etc/install-recovery.sh
    dd if=/data/local/cwr_recovery_2.img of=/dev/block/mmcblk0p1

    [Credits]
    djrbliss - For rooting the thinkpad
    utkanos - walking me through the device config setup
    CM, Koush and everyone who has worked on CWR
    4
    the CWM images are down does anyone have them and could please reuplaod them?

    Here u go bud...and everybody else of course^^
    16Gb Version....
    lil backstory if u care to read...

    i just got a barely used TPT and was in need as well...it has never been updated!!!!
    A Friend of mine got his TPT back then when it came out, i rooted it of course asap^^
    lucky me...coz he did not had a memory card for puttin CWM and stuff on...so i borrowed him one of mine...for some years of course :p
    som time in 2016 i demanded back MY friggin property!!!!....just kiddin^^...hehehe...

    lookin at my new&shiny 4gb SDCard I do remember thinkin: "make an image b4 wipin"....turns out it was not so bad idea afterall...
    u´ll just never no if someone still does care for thiz pice of crap u just tossed out da window coz it frggin sucked:D

    hav phun^^
    4
    Here are new versions for the different Sizes:

    16Gb:
    http://everyrandom.com/files/download.php?file=264ventana_recovery.img

    32Gb:
    http://everyrandom.com/files/download.php?file=196ventana32_recovery.img

    64Gb:
    http://everyrandom.com/files/download.php?file=538ventana64_recovery.img

    Credits go to Logxen for modifying and compiling (based on the builds jcase made).
    Thanks to bohdans for webspace.

    We also excluded the /data/media directory (Internal sdcard) so backups doesn't need so much space anymore.

    P.S. there may still be bugs, i you find one, post as much information you can provide and your tpt model

    P.P.S: As always: No warranties, no guarantees. Playing around with the recovery can brick your device.


    Known Bugs:
    - Doesn't work on ROW Roms
    - Force reboots while backup on some devices
    2
    I can compile ROW versions with my kernel. Can you tell me what steps you took to exclude /data/media(I'm quite new at this)?

    Also, are your config files uploaded somewhere for the 32 and 64 gig models(I can generate only for 16GB at the moment)?

    You have to edit the source files to force this behavior. Its in the file nandroid.c near line 111:

    if (strcmp(backup_path, "/data") == 0 && volume_for_path("/sdcard") == NULL)

    Erase the second part of the if-condition. Something like this:

    if (strcmp(backup_path, "/data") == 0)
    2
    Thanks for sharing this it worked great, except for the instructions I needed to use
    dd if=/data/local/cwr_ventana_2.img of=/dev/block/mmcblk0p1
    rather than
    dd if=/data/local/cwr_recovery.img of=/dev/block/mmcblk0p1
    to match the name of your file.
    Thanks again for sharing, CWR seems to be running perfectly.
    Also for those looking for root the exploit has been posted here.