[Galaxy Tab 2 Q&A, Help & Troubleshooting] atomatomatomatom:
I have, or perhaps it is now had, a P3113 - and in a moment of what would later be clear as stupidity, I wiped all the internal partitions. I went through and deleted them and then created some new ones - using parted. Evidence of the stupidity is below.

~ # parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
Model: MMC M8G2FB (sd/mmc)
Disk /dev/block/mmcblk0: 7818MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 4194kB 25.2MB 21.0MB ext4 EFS
2 25.2MB 27.3MB 2097kB SBL1
3 27.3MB 29.4MB 2097kB SBL2
4 29.4MB 37.7MB 8389kB PARAM
5 37.7MB 46.1MB 8389kB KERNEL
6 46.1MB 54.5MB 8389kB RECOVERY
7 54.5MB 789MB 734MB ext4 CACHE
8 789MB 810MB 21.0MB MODEM
9 810MB 2278MB 1468MB ext4 FACTORYFS
10 2278MB 7281MB 5004MB ext4 DATAFS
11 7281MB 7818MB 537MB ext4 HIDDEN

(parted) rm 1
rm 1
(parted) print
print
Model: MMC M8G2FB (sd/mmc)
Disk /dev/block/mmcblk0: 7818MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
2 25.2MB 27.3MB 2097kB SBL1
3 27.3MB 29.4MB 2097kB SBL2
4 29.4MB 37.7MB 8389kB PARAM
5 37.7MB 46.1MB 8389kB KERNEL
6 46.1MB 54.5MB 8389kB RECOVERY
7 54.5MB 789MB 734MB ext4 CACHE
8 789MB 810MB 21.0MB MODEM
9 810MB 2278MB 1468MB ext4 FACTORYFS
10 2278MB 7281MB 5004MB ext4 DATAFS
11 7281MB 7818MB 537MB ext4 HIDDEN

(parted) rm 2
rm 2
(parted) rm 3
rm 3
(parted) rm 4
rm 4
(parted) rm 5
rm 5
(parted) rm 6
rm 6
(parted) rm 7
rm 7
Error: Partition /dev/block/mmcblk0p7 is being used. You must unmount it before
you modify it with Parted.
(parted) rm 8
rm 8
(parted) 9
rm 9
(parted) 10
rm 10
(parted) 11
rm 11
(parted) print
print
Model: MMC M8G2FB (sd/mmc)
Disk /dev/block/mmcblk0: 7818MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
7 54.5MB 789MB 734MB ext4 CACHE

(parted) rm 7
rm 7
Error: Partition /dev/block/mmcblk0p7 is being used. You must unmount it before
you modify it with Parted.
(parted) >
>
check NUMBER do a simple check on the file system
cp [FROM-DEVICE] FROM-NUMBER TO-NUMBER copy file system to another partition
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkfs NUMBER FS-TYPE make a FS-TYPE file system on
partititon NUMBER
mkpart PART-TYPE [FS-TYPE] START END make a partition
mkpartfs PART-TYPE FS-TYPE START END make a partition with a file system
move NUMBER START END move partition NUMBER
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resize NUMBER START END resize partition NUMBER and its file
system
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) rm 7
rm 7
(parted) print
print
Model: MMC M8G2FB (sd/mmc)
Disk /dev/block/mmcblk0: 7818MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags

(parted) ^C
(parted)
Information: You may need to update /etc/fstab.

~ # parted /dev/block/mmcblk
mmcblk0 mmcblk0boot1 mmcblk0p11 mmcblk1 mmcblk1p2
mmcblk0boot0 mmcblk0p10 mmcblk0p9 mmcblk1p1
~ # parted /dev/block/mmcblk
mmcblk0 mmcblk0boot1 mmcblk0p11 mmcblk1 mmcblk1p2
mmcblk0boot0 mmcblk0p10 mmcblk0p9 mmcblk1p1
~ # parted /dev/block/mmcblk
mmcblk0 mmcblk0boot1 mmcblk0p11 mmcblk1 mmcblk1p2
mmcblk0boot0 mmcblk0p10 mmcblk0p9 mmcblk1p1
~ # parted /dev/block/mmcblk1
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
Model: SD SD (sd/mmc)
Disk /dev/block/mmcblk1: 32.1GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 4194kB 20.8GB 20.8GB primary fat32 lba
2 20.8GB 32.1GB 11.3GB primary ext3

(parted) rm 1
rm 1
(parted) rm 2
rm 2
(parted) ^C
(parted)
Information: You may need to update /etc/fstab.

~ # parted /dev/block/
loop0 loop7 mmcblk0p9 ram12 ram5
loop1 mmcblk0 mmcblk1 ram13 ram6
loop2 mmcblk0boot0 platform/ ram14 ram7
loop3 mmcblk0boot1 ram0 ram15 ram8
loop4 mmcblk0p10 ram1 ram2 ram9
loop5 mmcblk0p11 ram10 ram3
loop6 mmcblk0p7 ram11 ram4
~ # parted /dev/block/
loop0 loop7 mmcblk0p9 ram12 ram5
loop1 mmcblk0 mmcblk1 ram13 ram6
loop2 mmcblk0boot0 platform/ ram14 ram7
loop3 mmcblk0boot1 ram0 ram15 ram8
loop4 mmcblk0p10 ram1 ram2 ram9
loop5 mmcblk0p11 ram10 ram3
loop6 mmcblk0p7 ram11 ram4
~ # parted /dev/block/mmcblk
mmcblk0 mmcblk0boot1 mmcblk0p11 mmcblk0p9
mmcblk0boot0 mmcblk0p10 mmcblk0p7 mmcblk1
~ # parted /dev/block/mmcblk
mmcblk0 mmcblk0boot1 mmcblk0p11 mmcblk0p9
mmcblk0boot0 mmcblk0p10 mmcblk0p7 mmcblk1
~ # parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
Model: MMC M8G2FB (sd/mmc)
Disk /dev/block/mmcblk0: 7818MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags

(parted) mkpartfs primary fat32 0 7000
mkpartfs primary fat32 0 7000
Error: Error informing the kernel about modifications to partition
/dev/block/mmcblk0p1 -- Device or resource busy. This means Linux won't know
about any changes you made to /dev/block/mmcblk0p1 until you reboot -- so you
shouldn't mount it or use it in any way before rebooting.
Ignore/Cancel? i
i
(parted) mkpartfs primary ext2 7000 7400
mkpartfs primary ext2 7000 7400
Error: Error informing the kernel about modifications to partition
/dev/block/mmcblk0p1 -- Device or resource busy. This means Linux won't know
about any changes you made to /dev/block/mmcblk0p1 until you reboot -- so you
shouldn't mount it or use it in any way before rebooting.
Ignore/Cancel? i
i
Error: Error informing the kernel about modifications to partition
/dev/block/mmcblk0p2 -- Device or resource busy. This means Linux won't know
about any changes you made to /dev/block/mmcblk0p2 until you reboot -- so you
shouldn't mount it or use it in any way before rebooting.
Ignore/Cancel? i
i
(parted) mkpartfs primary linux-swap 7400 7818
mkpartfs primary linux-swap 7400 7818
Error: Error informing the kernel about modifications to partition
/dev/block/mmcblk0p1 -- Device or resource busy. This means Linux won't know
about any changes you made to /dev/block/mmcblk0p1 until you reboot -- so you
shouldn't mount it or use it in any way before rebooting.
Ignore/Cancel? i
i
Error: Error informing the kernel about modifications to partition
/dev/block/mmcblk0p2 -- Device or resource busy. This means Linux won't know
about any changes you made to /dev/block/mmcblk0p2 until you reboot -- so you
shouldn't mount it or use it in any way before rebooting.
Ignore/Cancel? i
i
Error: Error informing the kernel about modifications to partition
/dev/block/mmcblk0p3 -- Device or resource busy. This means Linux won't know
about any changes you made to /dev/block/mmcblk0p3 until you reboot -- so you
shouldn't mount it or use it in any way before rebooting.
Ignore/Cancel? i
i
(parted) quit
quit
Information: You may need to update /etc/fstab.

~ # upgrade_fs
/sbin/sh: upgrade_fs: not found
~ #
~ # print
/sbin/sh: print: not found
~ # parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
Model: MMC M8G2FB (sd/mmc)
Disk /dev/block/mmcblk0: 7818MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 17.4kB 7000MB 7000MB fat32 msftres
2 7000MB 7400MB 400MB ext2
3 7400MB 7818MB 418MB linux-swap(v1)

(parted)
~ # ls
boot etc sd-ext
cache init sdcard
charger init.rc sys
data misc system
datadata proc tmp
default.prop res ueventd.espresso.rc
dev root ueventd.goldfish.rc
emmc sbin ueventd.rc
~ # ls /
boot etc sd-ext
cache init sdcard
charger init.rc sys
data misc system
datadata proc tmp
default.prop res ueventd.espresso.rc
dev root ueventd.goldfish.rc
emmc sbin ueventd.rc
~ # ls /boot/
~ # du -hs

So, now my internal SD card has (or I think it has) a partition that looks like this

1 17.4kB 7000MB 7000MB fat32 msftres
2 7000MB 7400MB 400MB ext2
3 7400MB 7818MB 418MB linux-swap(v1)

This clearly didn't sit well with it. It no longer boots, no screen, no nothing. No download mode. When I plug it into the computer and start it, I get a brief moment where it starts to act like a USB device, then disappears, then restarts. ADB can't see it.

I'm pretty sure I'm screwed here. I've tried Odin and Heimdall, on ubuntu, XP, win7. None can reach the device.

Is there any chance I can get this to run by creating an external SD card with the correct partitions on it? I read a few posts where people were able to run a device that had a corrupt SD internal card on the external one.

Any help greatly appreciated.