View Single Post
dchky's Avatar
Posts: 549 | Thanked: 299 times | Joined on Jun 2010 @ Australian in the Philippines
#2
Does your N900 still boot? If yes, then it'd be pretty easy just to recreate the broken partition table, reboot, recover what's left, and then start over.

This is a dump from my N900, yours should be identical.

# sfdisk -d /dev/mmcblk0 > partitions
# cat partitions

Code:
# partition table of /dev/mmcblk0
unit: sectors

/dev/mmcblk0p1 : start=       64, size= 56631296, Id= c
/dev/mmcblk0p2 : start= 56631360, size=  4194304, Id=83
/dev/mmcblk0p3 : start= 60825664, size=  1572864, Id=82
/dev/mmcblk0p4 : start=        0, size=        0, Id= 0
table (END)
You could create a file on your N900 and paste the above text in, then run:

# sfdisk --no-reread /dev/mmcblk0 < filename

This should let you remount - though it might give some errors, you may need to run fsck - probably you will have to specify an alternate superblock.

Finally, you're not alone, I've done this, sadly more than once : )

Last edited by dchky; 2010-11-02 at 11:03.