Remove Bad Sectors on /system - Nexus One Q&A, Help & Troubleshooting

Hi Guys,
I guess I have a lot of bad sectors on my N1.
After installing CM 7 + gapps I have only 19.4 KB free (add to that I have removed most of the built in ringtones from the media folder) in the /system partition.
Does anyone else have problems with bad sectors, and are there any ways to get rid of these. Also now that I have them, how do i minimize them coz I guess a day will come when I may not be able to flash CM
Regards,
Munchy

You can try formatting the system partition (with clockwork or temasek's extreme wipe). If that doesn't work, hook the phone up to a Linux machine and use gparted to repair the partition. You can run Linux from a live CD on windows...

danger-rat said:
You can try formatting the system partition (with clockwork or temasek's extreme wipe). If that doesn't work, hook the phone up to a Linux machine and use gparted to repair the partition. You can run Linux from a live CD on windows...
Click to expand...
Click to collapse
I was waiting for you and the Doc to answer.
Well I already have Ubuntu on dual boot, can you guide me how to use gparted.
Also, I wiped using Amon_Ra, should I give a try using CWM, also please point me to temasek's extreme wipe.
thanks

Amon doesn't wipe the system partition, so you should try clockwork our temaseks extreme wipe.
Here's a link to the later (flash through recovery)...
http://db.tt/fH1vZNM
If that doesn't work, we can give gparted a shot...

danger-rat said:
Amon doesn't wipe the system partition, so you should try clockwork our temaseks extreme wipe.
Here's a link to the later (flash through recovery)...
http://db.tt/fH1vZNM
If that doesn't work, we can give gparted a shot...
Click to expand...
Click to collapse
all right buddy , will try temaseks and PM you in case I need help on gparted

The "extreme wipe" doesn't do a low-level format of the system, just a standard high-level format, it won't force it to recheck sectors marked as "bad". I don't believe that's possible without using external hardware.

knightnz said:
The "extreme wipe" doesn't do a low-level format of the system, just a standard high-level format, it won't force it to recheck sectors marked as "bad". I don't believe that's possible without using external hardware.
Click to expand...
Click to collapse
Any idea how this can be done with Ubuntu? I'm having a hard time mounting the /data partition to Ubuntu. Is this even possible?

Related

[Q] Help getting any rom to run off internal

Ok, backstory, picked up this Nook Color on craigslist, came with Honeycomb v4 on microSD, booted fine into that, but without uSD would boot to 'n' screen and freeze/stall. Got another uSD formatted with CWM Recovery and the clean original nook image to try and load that from scratch. While following the instructions to restore the original image I would get errors while trying to format system and data (something to the effect of Error cannot format system/!). So I tried to install both CWM to the internal and CM7 to the internal and both would say install complete from microSD, but when booting without the uSD, it would still try to boot into the original nook software and hand on the 'n'.
I tried this to see if my partitions were messed up, but I had the same partition structure and size as it should be (according to the post):
http://forum.xda-developers.com/showthread.php?p=13003431#post13003431
Possibly because I ran this "repartition-boot-with-stock" from this post:
http://forum.xda-developers.com/showthread.php?t=914690
Please help, would prefer to run this off the internal!
Got CM7 running off yet another microSD with this thread:
http://forum.xda-developers.com/showthread.php?t=1000957
Assuming the partition table is in tact then try formatting /system /data /cache in Clockworkmod.
If that doesn't work if might be time to entertain the possibility that you were sold a Nook with a bad emmc.
Sent from my NookColor using XDA App
When I try to format /system /data /cache in CWM, I get an error message. What is the function of the emmc?
mattdogg02 said:
When I try to format /system /data /cache in CWM, I get an error message. What is the function of the emmc?
Click to expand...
Click to collapse
Putting it in PC terms, the emmc functions as the ROM for the bios, and as the solid state drive for whatever you're running on internal memory.
(What is the term for the tablet/smartphone equivalent of the "bios"?)
akaCat said:
(What is the term for the tablet/smartphone equivalent of the "bios"?)
Click to expand...
Click to collapse
Bootloader.
As to the OP - It's still possible your internal flash is bad but the fact that you can list your partition table gives me hope that isn't the case.
I read through JoJa15's post you linked in "Dummies Guide to Fixing 'My Nook Won't Boot'" - It sounds like you listed your partition table per his post and found that it matched what he posted but didn't modify anything right?
The fact that your partition table appears to be in tact is good but the contents of those partitions could be complete gibberish which may explain why CWM errors out when trying to format them. What is the exact error CWM is giving?
I think the next "safe" step is to have a look at DeanGibson's post here: http://forum.xda-developers.com/showthread.php?t=1094371
Dean's CWM scripts will essentially blow away partitions 6-8 (/data / cache and /emmc) and re-create them. If your problem happens to be in one of those partitions then his tool may be a quick fix without having to play with fdisk. That said, I doubt it will work since you can't format /system (partition 5) and his tool doesn't touch the /system partition.
At that point you are pretty much left playing with fdisk, unless you can sweet talk DeanGibson into putting together a CWM flash that will re-do partitions 4 and 5 (extended partition and /system partition) which he may do.
From there it boils down to how comfortable you are with the Linux commands dd and fdisk...?
Good Luck,
Martian21
Ok, followed Dean's instructions with the packages from his post, but still no go.
The error I'm getting when going to Mounts and Storage Menu and running the format /system /data /cache options are:
ClockworkMod Recovery v3.0.2.8
Formatting /system...
Error formatting /system!
Formatting /data...
Error formatting /data!
Formatting /cache...
Error formatting /cache!
Really want to try and get this resolved as I want to install stuff onto the internal!
No one with any other advice on this?
mattdogg02 said:
No one with any other advice on this?
Click to expand...
Click to collapse
Your previous post showed that you were using clockworkmod recovery v3.0.2.8, that version does not have support for the “blue dot” NC. Not knowing for sure if your NC is really a “blue dot” or an original one, I would follow these steps.
1. Create a bootable CWM v3.2.0.1 SD card using the image located HERE. The instructions for it are located HERE. I know the post says v3.0.2.1, but it is miss-marked.
2. Once the card is made, download the repartitioning files located HERE, and the stock 1.2 image file “update-nc-stock-1.2-signed.zip” located HERE.
3. Put all those zip files onto the SD Card
4. Shut down the NC
5. Insert and start the bootable SD card
6. Follow the directions to flash the repartitioning files
7. Once that completes, flash the stock 1.2 image
8. When that is done, remove the SD card, and reboot the device
Hopefully at this point, you will be booting into a stock 1.2.0 system. You can now do whatever you want with the device.

[Q] Cyanogenmod 7.1 & Link2sd: Oil & Water?

Today I finally updated my Nexus One to CM 7.1 RC1. Everything in the update went fine, phone booted up perfect.
But I'm having some serious issues getting Link2sd to work now. I first tried using a ext2 partition that was already on my sd card from before. Kept getting this error message from link2sd, no matter how many times I rebooted:
Mount script cannot be created.
mount: mounting /dev/block/vold/179:2 on /data/sdext2 failed: device or resource busy
Click to expand...
Click to collapse
I then wiped the ENTIRE SD card, which included destroying the ext2 partition. From my newly blank SD card, I created a 2nd partition using MiniTool Partition Wizard in an ext4 format. Uninstalled Link2SD, reinstalled, opened the app - and I have the exact same error message:
Mount script cannot be created.
mount: mounting /dev/block/vold/179:2 on /data/sdext2 failed: device or resource busy
Click to expand...
Click to collapse
What am I doing wrong here? I've also tried using a FAT32 partition, but using that I got a similar Mount Script cannot be created error except it was an I/O error - whatever that is.
Please, someone, anyone, tell me this can be fixed and it's not an issue with CM7.1RC1.
When you did the wipe did you do it full wipe (erase on)? If not then try that. Also try in an ext3 partition.
Dude Random21 said:
When you did the wipe did you do it full wipe (erase on)? If not then try that. Also try in an ext3 partition.
Click to expand...
Click to collapse
Thanks for the suggestions. Unfortunately I have tried both of those to no avail. I always do a full wipe when updating ROMs, so that's never really been the issue. Tried ext3 twice. Both times I got Mount-Script-Creation errors (device or resource busy).
Sorry my bad when I said full wipe I meant for the SD card because it's happened to me once I did a quick wipe and it still didn't work then I did a full wipe and it worked.
Dude Random21 said:
Sorry my bad when I said full wipe I meant for the SD card because it's happened to me once I did a quick wipe and it still didn't work then I did a full wipe and it worked.
Click to expand...
Click to collapse
What did you do a full wipe with? I'm guessing Amon Ra from your signature?
Actually no I did it from my computer with this http://www.sdcard.org/consumers/formatter_3/ just go into option and put "FULL (Erase)".
Alrighty I'll give it a shot and let ya know. Thanks.
EDIT: Tried...epic fail. Still the same error.
In that casse I'm kind of running out of ideas maybe link2sd isn't compatible with cm7.1-rc1 yet?? If I were you I would try DT, s2e or some other app2ext solution and see if one of those work (DT is usually the one that works the best).
ISSUE RESOLVED.
Sort of.
Did clean wipe of everything (except boot, of course) using Amon Ra.
Downgraded back to CM 7.0.3 (using Amon Ra)
Flashed DTAPPS
a2sd cachesdreset
a2sd install
Installed Link2SD
mount -o /data/sdext2
Set partition type in Link2sd to ext2 (which is very odd considering I know I partitioned a ext3 filesystem in Amon Ra...but whatever)
Reboot
Link2Sd works perfect
Now I gotta figure out how to make DTAPPS go away. I've heard it's counterproductive to have them both on there. We'll see.
Ok that's cool I'm glad you got it resolved and AFAIK it might cause problems but if it works for now why mess with it... Oh right cause it's fun
Dude Random21 said:
Ok that's cool I'm glad you got it resolved and AFAIK it might cause problems but if it works for now why mess with it... Oh right cause it's fun
Click to expand...
Click to collapse
Figured out a better workaround method. LINK
Will an ext4 partition do as well in this case?
SmallWalrus said:
Will an ext4 partition do as well in this case?
Click to expand...
Click to collapse
Good question, didn't try it. I used ext3. The original a2ext mod method designed by icecreamisdrugs was meant to be used with an ext3 filesystem, and that's the method that I borrowed for my workaround. I imagine as long as you're using a CM ROM it should work fine. But don't quote me on that.
Bling_Diggity said:
Figured out a better workaround method. LINK
Click to expand...
Click to collapse
Can work with Motorola Milestone? Thx... I read the other post that u linked here.
P.D.: ops, I use HO!NO cm7 Gingerbread for Milestone

[Q] 100% Complete Wipe?

Is there a way to do a 100% clean wipe? Flashing roms using Odin and re-part, or any cleaning script still leaves remnants of what ever i had on there before.
If you have CWM, you can partition your SD card from there. Combine that with doing a full install with Odin (repartition included), you'll be good to go.
I usually also format /system via CWM before flashing a ROM.
According to :
http://www.addictivetips.com/mobile...plained-boot-system-recovery-data-cache-misc/
"/system
This partition basically contains the entire operating system, other than the kernel and the bootloader. This includes the Android user interface as well as all the system applications that come pre-installed on the device. Wiping this partition will remove Android from the device without rendering it unbootable, and you will still be able to put the phone into recovery or bootloader mode to install a new ROM."
got it done i think.
format everything in CWM (/system /datadata etc..), install rom using ODIN w/repartition, once in the OS, unmount and format USB storage.
I think that got everything.
arr0ww said:
got it done i think.
format everything in CWM (/system /datadata etc..), install rom using ODIN w/repartition, once in the OS, unmount and format USB storage.
I think that got everything.
Click to expand...
Click to collapse
"unmount and format USB storage" < is that the internal 8/16gb?
arr0ww said:
got it done i think.
format everything in CWM (/system /datadata etc..), install rom using ODIN w/repartition, once in the OS, unmount and format USB storage.
I think that got everything.
Click to expand...
Click to collapse
Yep, that's pretty much as thorough as you're going to get.
GoofyHSK said:
"unmount and format USB storage" < is that the internal 8/16gb?
Click to expand...
Click to collapse
Sure is.

[Q] script for wiping tablet for a real clean install

Hello,
I was wondering if such a thing as described in subject exists.
I am looking for something which wipes everything but the CWM bootloader and the sd card directory.
The option is already there in cwr
Sent from my Sensation using xda premium
Is it cenwesi? I know the wiping section, but for instance there's no option to format or resize the /recovery partition for example.
goenieg said:
Is it cenwesi? I know the wiping section, but for instance there's no option to format or resize the /recovery partition for example.
Click to expand...
Click to collapse
if you format the recovery you would lose CWM. A data wipe should be suffient, if not plug it into a computer and delete everything on the "sdcard"
bdfull3r said:
if you format the recovery you would lose CWM. A data wipe should be suffient, if not plug it into a computer and delete everything on the "sdcard"
Click to expand...
Click to collapse
thanks, I now have 13 Gb available, is the rest taken by the recovery partition? is resizing an option?
(pls forgive me for being ignorant
I think the devs would have to put a wipe script in their ROMs so the user doesn't have to do it manually. At least that's what the devs at my smartphone's forum (Vibrant) do. Albeit, sometimes it is best to do some manual cleaning, and TWICE at it (the system isn't infallible).

create ext4 for use with a2sd

hi,
i'm usin ra passion 2.2.1 and wan't to use a2sd from ics 4.0.3 evervolv. how can i create a part ext4?
Google:
"a2sd partition sd card".
Enjoy.
Try 4EXT recovery www.4ext.net
I think its the easiest way to create partition.
Or else you can do it in pc via partition managers(i use minitool partition wizard)
You can google it and also can search in youtube for video tutorials.
Sent from my Nexus One using Tapatalk
thanks for your help, i've done it in recovery.
one question is left:
what happen if i format the partioned sd-card under windows and do a full wipe in preparation for installing a new rom. i've read sd-ext even survive a full wipe? what does that mean? stays the partition untouched when i format the sd-card with windows? and what about the apps in the partition? are they still there even after a full wipe and can i use them after flashing a new rom out of the box?
Glad u succeeded in partitioning
Now if you format the fat32 partition in windows using those partition tools doesnt affect ur ext. Ext stays untouched but all the data on fat32 will be wiped(so backup first to pc)
If u want to merge there is an option called merge for that.
There is an free windows software called sdformatter, that formats the entire sdcard(fat32+ext)
Hope i helped a bit :thumbup:
Sent from my Nexus One using Tapatalk
ok. i wan't to format it with the windows internal function via right click. is it the same and the ext4 stays untouched?
Full wipe in recovery wipes SD-EXT too.
heinz gruber said:
ok. i wan't to format it with the windows internal function via right click. is it the same and the ext4 stays untouched?
Click to expand...
Click to collapse
i do beleive that it should be untouched, cos normally windows cannot see the ext partition and hence only fat32 will be formatted
Sent from my Nexus One using Tapatalk
ok. when ext4 stay untouched and i flash a new rom the apps are still in the launcher after flashing?
Jack_R1 said:
Full wipe in recovery wipes SD-EXT too.
Click to expand...
Click to collapse
when i flash a new rom i use the format.zip form the xda user temasek which wipes system, boot, data and cache. so is sd-ext untouched when i use this file?
You insist on not listening and/or not understanding.
When you select "wipe data/factory reset" in custom recovery, EXT partition IS WIPED COMPLETELY. It doesn't stay.
I believe the same happens when using temasek's script, never bothered using it, so I can't say with 100% certainty.
If you don't wipe your phone and install a new ROM - be prepared for crashes of anything to everything, unless you install a ROM which is 100% compatible with what you have already - the next generation of the same ROM, usually.
If you're using A2SD and don't wipe EXT partition - you'll have crashes as soon as you boot, since system apps' data will be there (and wrong).
To keep your apps and their data, use one of the backup apps available in the Market, like Titanium Backup.
as Jack_R1 explained its always better to wipe everything(system,cache,dalvik n sdext) to be on safer side to avoid crashes n FCs.
Sent from my Nexus One using Tapatalk
Temasek's Extreme Wipe does Data/System/Boot partitions but don't remember seeing ext in the list
However, as alluded too, I would format all outside phone with sdformatter or I think gparted, although never used that one
I thought I read a long time ago Windows formatter not recommended and do a full wipe not partial with whatever you use
Back up sdcard first
also, I believe you can use the Alignment Cool zip to get ext 4 from 3 on Amon and not lose anything--still backup
you do know MeDroid uses Ia2sd and different from a2sd on implementation
You don't need to wipe the regular FAT partition on SD card between flashes, because there's nothing there that loads automatically. And "wipe data/factory reset" option in recovery also wipes /sdcard/.android_secure.
hey guys, thanks for your answers i will keep them in mind.
edit:
one more question:
if i uses temaseks script and the sd-ext is untouched and i flash a newer version of my rom, are the apps then still there after flashing and booting the updated system? or is there another step i've to do?
No, the apps aren't there anymore - or to be correct, the apps are there, their data is gone (because the app data doesn't reside on EXT partition, unless you use specific mounting methods).
When you flash an updated version of your ROM, just don't wipe anything at all unless the instructions specifically mention having to wipe before installing that version. That means - don't execute temasek's script at all.

Categories

Resources