[TOOL]smw6180 Superwipe

smw6180

Senior Member
Oct 31, 2007
6,078
4,841
0
Bear, DE
Yes. He is one of our old shifty members. Crazy people I tell ya! Crazy! Haha.

And just downloaded the superwipe. I'm used to OCD wiping. Is there any harm in running this 2-3 times per flash?

HTC ONE! Everything your phone isn't.
You can, but there isn't any need. This script actually does a format on each filesystem (aside from data, because I don't want to wipe your internal storage;) ). Once a format is done, it's done.

You can run it 600 times, but after the first you're just spinning your wheels.
 
  • Like
Reactions: thronnos

SantinoInc

Senior Member
Jun 19, 2010
3,447
867
253
NYC
You can, but there isn't any need. This script actually does a format on each filesystem (aside from data, because I don't want to wipe your internal storage;) ). Once a format is done, it's done.

You can run it 600 times, but after the first you're just spinning your wheels.
I think the need for wiping a gazillion times was embedded in the heads of all OG EVO users. I to this day can't just do one wipe (true in a more literal sense as well.)
 

smw6180

Senior Member
Oct 31, 2007
6,078
4,841
0
Bear, DE
I think the need for wiping a gazillion times was embedded in the heads of all OG EVO users. I to this day can't just do one wipe (true in a more literal sense as well.)
There was a time when CWM had problems with wiping (I think it was one version, quickly fixed) and you needed to wipe twice to be sure it wiped the system properly. After that it was fixed and never a problem again. But you're right, people carry that over even though it's silly.

If you ever want to check to be SURE your system is wiped properly you can do the following from a shell (adb or terminal emulator in recovery)

Code:
#mount /system
#df
The output should be similar to the following:
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                   802664        48    802616   0% /dev
/dev/block/mmcblk0p39
                      26835196  15141048  11694148  56% /data
/dev/block/mmcblk0p39
                      26835196  15141048  11694148  56% /sdcard
/dev/block/mmcblk0p38
                        645052     10748    634304   2% /cache
/dev/block/mmcblk0p37
                       1806176   1257908    548268  70% /system
If it's properly wiped, /cache and /system will show 0% (or possibly 1%). You can then cd /data and look in there...the only thing you should see would be media, which is your internal storage. If there's anything other than media it didn't wipe data.
 

infamous84

Senior Member
Sep 28, 2010
344
43
0
Wish I Knew
so this hung up while on checking system, how do i restart it? held the power button for a while did nothing except the home and back button are flashing
help
thanks

---------- Post added at 04:38 PM ---------- Previous post was at 04:07 PM ----------

anybody with any suggestions?
 

smw6180

Senior Member
Oct 31, 2007
6,078
4,841
0
Bear, DE
so this hung up while on checking system, how do i restart it? held the power button for a while did nothing except the home and back button are flashing
help
thanks

---------- Post added at 04:38 PM ---------- Previous post was at 04:07 PM ----------

anybody with any suggestions?
That should reboot you. If it doesn't I don't have any ideas other than wait a few minutes and try again. I know one person who had that issue said plugging it into the wall and doing it fixed the non-reboot thing. That's unrelated.
 

infamous84

Senior Member
Sep 28, 2010
344
43
0
Wish I Knew
That should reboot you. If it doesn't I don't have any ideas other than wait a few minutes and try again. I know one person who had that issue said plugging it into the wall and doing it fixed the non-reboot thing. That's unrelated.
I was able to get out of it, after the battery died, but now its stuck on the htc boot screen, how do i get out of this?


thanks
 

tuscolavol

Senior Member
May 20, 2009
1,352
493
0
Benton, AR
so this hung up while on checking system, how do i restart it? held the power button for a while did nothing except the home and back button are flashing
help
thanks

---------- Post added at 04:38 PM ---------- Previous post was at 04:07 PM ----------

anybody with any suggestions?
I've had Superwipe hang on me a couple of times. Didn't have a problem getting back in to recovery though.
But , and I swear this is no BS, I was flashing a rom and got stuck. Holding power and power/vol down for several minutes. Nothing... I thought I was screwed. Posted it in that rom's thread. Had several suggestions but the one that worked was to hold it close to a bright light. Hold down the power button and, BAM, back in to recovery. Have no idea why this worked but I got stuck 2 different times and it worked both times. Crazy!
 

YoungCorruptionV2.0

Senior Member
Sep 27, 2011
1,900
557
0
I've had Superwipe hang on me a couple of times. Didn't have a problem getting back in to recovery though.
But , and I swear this is no BS, I was flashing a rom and got stuck. Holding power and power/vol down for several minutes. Nothing... I thought I was screwed. Posted it in that rom's thread. Had several suggestions but the one that worked was to hold it close to a bright light. Hold down the power button and, BAM, back in to recovery. Have no idea why this worked but I got stuck 2 different times and it worked both times. Crazy!
This has happened to me while flashing roms. Just had to wait out the battery. I couldn't even Adb reboot recovery it since adb couldn't recognize a device was plugged it

Sent from my HTC One using Tapatalk 4 Beta
 

smw6180

Senior Member
Oct 31, 2007
6,078
4,841
0
Bear, DE
I've had Superwipe hang on me a couple of times. Didn't have a problem getting back in to recovery though.
But , and I swear this is no BS, I was flashing a rom and got stuck. Holding power and power/vol down for several minutes. Nothing... I thought I was screwed. Posted it in that rom's thread. Had several suggestions but the one that worked was to hold it close to a bright light. Hold down the power button and, BAM, back in to recovery. Have no idea why this worked but I got stuck 2 different times and it worked both times. Crazy!
Forgot about that trick, thank you. :)
 

vayman

Senior Member
Jun 8, 2010
894
267
0
Cincinnati, OH
Forgot about that trick, thank you. :)
I use your superwipe anytime I clean install a ROM and it hung on me yesterday for the first time. No biggie though, b/c I just held down power and vol down to get back into bootloader and then recovery. I never knew about that trick. Curious to know how that works. :confused:
 

smw6180

Senior Member
Oct 31, 2007
6,078
4,841
0
Bear, DE
I use your superwipe anytime I clean install a ROM and it hung on me yesterday for the first time. No biggie though, b/c I just held down power and vol down to get back into bootloader and then recovery. I never knew about that trick. Curious to know how that works. :confused:
Yeah that hang is really weird, and I haven't been able to track it down. Since people are also having issues on random occasions with flashing ROM's I'm inclined to believe it's TWRP.

Question:
Anyone who had hanging issues, ROM or Superwipe...has it always been TWRP, or also on CWM?
 

vayman

Senior Member
Jun 8, 2010
894
267
0
Cincinnati, OH
Yeah that hang is really weird, and I haven't been able to track it down. Since people are also having issues on random occasions with flashing ROM's I'm inclined to believe it's TWRP.

Question:
Anyone who had hanging issues, ROM or Superwipe...has it always been TWRP, or also on CWM?
Mine was TWRP. I've not used CWM. It's def random though b/c I've used your superwipe a lot and it just hung the first time yesterday.

About that trick tuscolavol mentioned with the light, does the proximity sensor or ambient sensor trigger it? Just curious, b/c that's wild!
 

TygerByte

Member
Apr 30, 2013
32
7
0
Great script here I use it all the time! I put in a real format/wipe for data for personal use. Anyway while I was looking at your updater-script I noticed you had the boot partition named DEVLOG. Was that intentional? I also noticed you didn't have ifelse is_mounted for the boot partition. Thanks again for the script. I learned so much these few days with it.

ui_print("Checking /boot partition ");
run_program("/tmp/fsck.ext4", "-fy", "/dev/block/mmcblk0p35");
ui_print("Formatting /boot partition ");
run_program("/tmp/mkfs.ext4", "-O", "^ext_attr,^has_journal,^huge_file", "-L", "DEVLOG", "-b", "4096", "-m", "0", "-F", "/dev/block/mmcblk0p35");
run_program("/tmp/tune2fs.ext4", "-c", "1", "-m", "0", "-o", "journal_data_writeback", "/dev/block/mmcblk0p35");
ui_print("Double Checking /devlog partition ");
run_program("/tmp/fsck.ext4", "-Dfy", "/dev/block/mmcblk0p35");
ui_print("/boot is now formatted optimally!");
 

smw6180

Senior Member
Oct 31, 2007
6,078
4,841
0
Bear, DE
It's a typo I never bothered to fix and in two years you're the only one who's caught the devlog thing. Now I gotta fix it. Thanks a lot. ;) as for boot, it doesn't get mounted so it's not necessary. :)

Sent from my HTCONE using Tapatalk 4 Beta
 

mhsbrian

Senior Member
May 18, 2009
552
101
43
I get a assert failed ro.product.device
error when I flash the file from the OP.

I'm s-offd and running touch recovery. Have no other issues flashing roms nor other files.

Sent from my M7WLS using xda app-developers app
 

P.Mobile

Senior Member
Nov 18, 2011
4,400
934
0
RhOdE IsLAnD... 401
i used to always get hangs on the evo 4g lte superwipe also.. i used to wipe system first and it would always work.. try wipeing system the flash the superwipe used to work on the evo lte everytime :)