Gå til hovedinnhold

Galaxy Tab GT-P1000 - fix partitions

This little guide is written down after I managed to screw up my partitions on my Galaxy Tab while rooting it. Luckily I still had some space that allowed me to reinstall stock firmware through Odin. I wrote a blog post on how to do this here. Then I had to get a recovery bootloader that gave me root access in recovery mode and the parted tool. So if you have a booting Android but with fucked up partitions, try this.
PS! Android will probably not boot after this. So know you will have to reinstall.
And if you have something on your SDcard you should back it up, you probably need to remove all partitions if you have a real screw up. You can resize if you want to get advanced though.
The guide is written for windows command line.

1. You device must be booted into Android at first. Install Samsung Kies and make sure it can connect to your PC, you need the drivers that comes with it.

2. Install ADB, it comes with Android SDK. When you have ADB you should test it. First set your Tab in USB debugging mode (settings/applications/development).
Type "adb devices" in the command prompt and see if a device is listed up with a serial number. Then try "adb shell", you will get a new command line with a $ in front if it works.

3. Root your device. My favourite is SuperOneClick, follow this guide or find another you like better.

4. Download the Flash_image file. This is a tool that does what it sounds like, flashes images.

5. Download the beta Cyanogenmod for Heimdall, check this thread (XDA Developer forum) for latest version.
Unzip the tcm7beta-2011-11-02.zip file and keep the file zImage, this is the ClockWorkMod recovery image we will use. This will give you root access from the recovery mode.

6. Flash the recovery bootloader. These commands depend on where you put your files.
the syntax works like this: "adb push <from file on PC> <to file on Tab>"
Run all these commands:
adb push flash_image /data/local/bin/flash_image
adb push zImage /sdcard/
adb shell
su
chmod 755 /data/local/bin/flash_image
/data/local/bin/flash_image boot /sdcard/zImage
sync
exit
exit
adb reboot recovery

7. Now you are hopefully inside ClockWorkMod Recovery 5.0. Along with it comes parted, a tool for managing partitions.
You can open "adb shell" again and type "su" for root access, which you need for opening parted.

8. Unmount all partitions in the ClockWorkMod under "mounts and storage". In the shell, open parted by typing:
parted /dev/block/mmcblk0
then type "print" to get the partition information, then you will see the madness.

9. To finally fix the partitions, follow this great guide (XDA Developer forum). It's really detailed and tells how you should part it up. Read it carefully though. If you wish to upgrade to ext3/4 it describes this as well.
I put my commands for cleaning up and upgrading to ext4 as an example.
Here I create a sdcard partition of 11696mb, ext2 of 4096mb and swap of 128mb.
These are parted commands, in case you get confused.
remove partitions:
rm 1
rm 2
rm 3

create partitions:
mkpartfs primary fat32 0 11696
mkpartfs primary ext2 11696 15792
mkpartfs primary linux-swap 15792 15920

now you are done with parted, type quit and get back to shell.
upgrade from ext2 to ext4:
tune2fs -O extents,uninit_bg,dir_index,has_journal /dev/block/mmcblk0p2
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2

always run check afterwards:
e2fsck /dev/block/mmcblk0p2


10. After you have fixed your partitions your device probably won't boot into Android. So you have too reinstall somehow, like I mentioned in the beginning.

Kommentarer

  1. Sorry, but if you screwed your partition how the heck is possible to boot into android?

    SvarSlett
  2. Well.. Doh.. Lame.. But ok: Depends how screwed things are, doesn't it. Ate there only one level of "screwed up" ? If your brain is dead, you can't be saved. If only your legs are broken, there is hope.

    SvarSlett
  3. :D indeed, as there are differences between magicians and wizards.
    Any suggestion for my issue? (deeply screwed partitions)

    Cheers
    Giuseppe

    SvarSlett
    Svar
    1. Are you able to get into bootloader or download mode, or both?

      Slett
  4. Yes, i can get into both modes, but i was hoping that samsung Kies was able to take over since then in order to restore some proprietary way. But none worked. By the way I'm struggling to fing a proper (trusted) firmware. Do you by chance still have the original firmware package?

    Thanks
    Giuseppe

    SvarSlett
  5. that case i could restore the original kernel, which is probably the reason why kies doesn't recognize my device...

    Giu

    SvarSlett
  6. Actually I do have a few original firmware zipfiles, 3 of android 2.3.3 and 2 of version 2.3.6. I don't remember now which of them that works best, but I can give you all five :)

    SvarSlett
  7. It would be reeeeeeeeeaaaaally very much appreciated man.
    Could you find a way to share them on gdrive?

    I owe you a linkback ;)

    Giuseppe

    SvarSlett
    Svar
    1. okai I'm uploading to dropbox pub folder now. takes a little while, I'll let u know :)

      Slett
    2. see here
      https://www.dropbox.com/sh/oihd186psbr11yk/BxZ-HBl005

      Slett
  8. Hey, thanks! I'll download and take a look this evening after office

    thanks!!

    G

    SvarSlett

Legg inn en kommentar

Populære innlegg fra denne bloggen

Galaxy Tab 7 GT-P1000 - install Gingerbread

1st here's a good full guide with descriptions that I've read through here . 2nd there another good guide here . Download Samsung Kies here . Download Odin 1.7 from XDA-developers  here . Download Firmware of chosen version here  (tsar3000) or here  (thegalaxytabforum). Now this is how you do it step by step: 1. Install Samsung Kies and connect your Tab If you haven't already installed Kies and tested that your tab can connect to your computer, you should do it now. This is mainly because Kies will take care of the needed drivers to connect to the computer. So go ahead and check if there's connection. 2. Put your tab into download mode Turn it off - then turn it on by holding power button and volume down button. You need this to work before you can go on. Should look like this: 3. Start Odin and connect the Galaxy Tab Just start Odin and connect the tab with USB. If it connects the ID:COM field will look something like this:  with the te...

XBMC library - sharing and securely saving library in a database / mysql

So first of all you should look at XBMC's official explanation as it's probably more presice than mine now: http://wiki.xbmc.org/index.php?title=HOW-TO:Sync_multiple_libraries I will short it down to the basics: When you add a source in XBMC the library automatically stores itself on a local database called Sqlite on your local filesystem somewhere. Most people don't know about this and it will easily be lost when reinstalling. To not lose your library information that has been recorded over a long time you really should use a database like MySQL to store it. More databases is probably supported and equally set up. Library information is stuff like which episodes and movies have you seen, have you seen only half the movie etc. It also contains filepaths for each and every file. So all you need to watch your videos and listen to your music is stored here. It will also suit for sharing the information if you have several xbmc installations (I will refer to them as cl...