Lost partitions?

Installation issues, feature requests, help, etc.

Moderators: Curtis8, A_Null

PingPongGuy
Posts: 10
Joined: Fri Apr 04, 2008 5:08 am

Lost partitions?

Postby PingPongGuy » Wed Jan 12, 2011 2:22 am

Well I didn't hear back from anyone here so I decided to go ahead and see what happens.

I wasn't getting too far with PING 3.0 so I went back to PING 2.1 and it didn't throw up the page showing
various partitions (which looked too scary to continue with in PING 3.0).

So yes, it did restore to a non c: drive, the correct one. sda1 (USB drive).
BUT... it also wiped out two of the three remaining partitions on the drive with all of the data!

I'm not going to touch the partitions for now.
Is there any way to get back all of this data?

I can't see it in Windows. It says the partitions are empty (not formatted).

TIA

dousin
Posts: 3
Joined: Thu Apr 21, 2011 9:21 am

Re: Lost partitions?

Postby dousin » Thu Apr 21, 2011 1:05 pm

Well, the topic is pretty old, but anyway it might help to somebody:
I have recovered my lost partitions using TestDisk utility from the Ultimate Boot CD.
The partitions went broken during PING 'Resize partition' process during backup. See another thread in the forum (Windows 7 imaging problem ).
Bye

vldmrrr
Posts: 1
Joined: Fri Apr 29, 2011 2:03 pm

Re: Lost partitions?

Postby vldmrrr » Fri Apr 29, 2011 3:03 pm

Happened to me as well when imaging fresh windows 7 installation with small 'System Reserved' partition at start of disk. Partitions were lost during shrinking. Below is part of x.log documenting the disaster.

The problem is indicated by fdisk message 'Partition 1 does not end on cylinder boundary.' The fdisk is not able to recreate partitions not aligned to cylinders, so it left the disk with no partitions. The misaligned partitions was created during WIN 7 installation automatically.

The solution would be for PING to test for such case and either disable the option of shrinking partitions, or maybe use different program for partitions editing. Testdisk was able to restore partitions for me as well.

=================================
2617 rc.ping 02:47:57> Delete_All_Parts> * Suppressing all parts from device [sda]
2617 rc.ping 02:47:57> Is_Mounted> Is part [/mnt/dos] mounted ?
2617 rc.ping 02:47:57> Is_Mounted> Yes
2617 rc.ping 02:47:57> Dev_Mount_Point> Device of mount point [/mnt/dos] ?
2617 rc.ping 02:47:57> Dev_Mount_Point> Found: [sdb2]
2617 rc.ping 02:47:57> Delete_All_Parts> Device [sda]
2617 rc.ping 02:47:57> Delete_All_Parts> Cmd: [echo -e "p\nd\n1\nd\np\nw\n" | fdisk /dev/sda 2>&1]
2617 rc.ping 02:48:06> Delete_All_Parts> Output: [The number of cylinders for this disk is set to 38913.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 38914 312466432 7 HPFS/NTFS

Command (m for help): Partition number (1-4):
Command (m for help): Selected partition 2

Command (m for help):
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Command (m for help): The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.]
2617 rc.ping 02:48:06> Delete_All_Parts> P.Table device geometry is same as BIOS's.
2617 rc.ping 02:48:06> Delete_All_Parts> Device [sdb]
2617 rc.ping 02:48:06> Delete_All_Parts> Not [sda].
2617 rc.ping 02:48:06> Recreate_All_Parts> * Re-creating all parts of device [sda]
2617 rc.ping 02:48:06> Is_Mounted> Is part [/mnt/dos] mounted ?
2617 rc.ping 02:48:06> Is_Mounted> Yes
2617 rc.ping 02:48:06> Dev_Mount_Point> Device of mount point [/mnt/dos] ?
2617 rc.ping 02:48:06> Dev_Mount_Point> Found: [sdb2]
2617 rc.ping 02:48:06> Recreate_All_Parts> Device [sda]
2617 rc.ping 02:48:06> Recreate_All_Parts> Cmd: [echo -e "p\nn\np\n1\n1\n5\nt\n7\na\n1\nn\np\n2\n13\n38914\nt\n2\n7\np\nw\n" | fdisk /dev/sda 2>&1]
2617 rc.ping 02:48:06> Recreate_All_Parts> Output: [The number of cylinders for this disk is set to 38913.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Command (m for help): Command action
e extended
p primary partition (1-4)
Partition number (1-4): First cylinder (1-38913, default 1): Last cylinder or +size or +sizeM or +sizeK (1-38913, default 38913):
Command (m for help): Selected partition 1
Hex code (type L to list codes): Changed system type of partition 1 to 7 (HPFS/NTFS)

Command (m for help): Partition number (1-4):
Command (m for help): Command action
e extended
p primary partition (1-4)
Partition number (1-4): First cylinder (6-38913, default 6): Last cylinder or +size or +sizeM or +sizeK (13-38913, default 38913): Value out of range.
Last cylinder or +size or +sizeM or +sizeK (13-38913, default 38913): Last cylinder or +size or +sizeM or +sizeK (13-38913, default 38913): Value out of range.
Last cylinder or +size or +sizeM or +sizeK (13-38913, default 38913): Value out of range.

Last cylinder or +size or +sizeM or +sizeK (13-38913, default 38913): Last cylinder or +size or +sizeM or +sizeK (13-38913, default 38913): Last cylinder or +size or +sizeM or +sizeK (13-38913, default 38913): Using default value 38913

Command (m for help): Command (m for help): Command (m for help):
got EOF thrice - exiting..]
2617 rc.ping 02:48:06> Recreate_All_Parts> Device [sdb]
2617 rc.ping 02:48:06> Recreate_All_Parts> Not [sda].
2617 rc.ping 02:48:06> HDD Description after minimizing (Dev_Rich)
2617 rc.ping 02:48:06> HDD_Describe> Device: [sda]
2617 rc.ping 02:48:06> HDD_Describe> P.Table-read Heads: [255]
2617 rc.ping 02:48:06> HDD_Describe> P.Table-read Sectors/track: [63]
2617 rc.ping 02:48:06> HDD_Describe> P.Table-read Cylinders: [38913]
2617 rc.ping 02:48:06> HDD_Describe> BIOS-read Heads: [255]
2617 rc.ping 02:48:06> HDD_Describe> BIOS-read Sectors/track: [63]
2617 rc.ping 02:48:06> HDD_Describe> BIOS-read Cylinders: [38913]
2617 rc.ping 02:48:06> HDD_Describe> Partition [0]
2617 rc.ping 02:48:06> HDD_Describe> Name: [sda1]
2617 rc.ping 02:48:06> HDD_Describe> Type: [7]
2617 rc.ping 02:48:06> HDD_Describe> FS_Type: [ntfs]
2617 rc.ping 02:48:06> HDD_Describe> Dirs: [Boot]
2617 rc.ping 02:48:06> HDD_Describe> Label: [System Reserved]
2617 rc.ping 02:48:06> HDD_Describe> Boot flag: [1]
2617 rc.ping 02:48:06> HDD_Describe> Start: [1]
2617 rc.ping 02:48:06> HDD_Describe> End: [5]
2617 rc.ping 02:48:06> HDD_Describe> Blocks: [40162]
2617 rc.ping 02:48:06> HDD_Describe> Partition [1]
2617 rc.ping 02:48:06> HDD_Describe> Name: [sda2]
2617 rc.ping 02:48:06> HDD_Describe> Type: [7]
2617 rc.ping 02:48:06> HDD_Describe> FS_Type: [ntfs]
2617 rc.ping 02:48:06> HDD_Describe> Dirs: [Program Files (x86),Users,$Recycle.Bin,Documents and Settings,Intel,MSOCache,PerfLogs,Program Files,ProgramData,Recovery,tmp,Windows]
2617 rc.ping 02:48:06> HDD_Describe> Label: []
2617 rc.ping 02:48:06> HDD_Describe> Boot flag: [0]
2617 rc.ping 02:48:06> HDD_Describe> Start: [13]
2617 rc.ping 02:48:06> HDD_Describe> End: [38914]
2617 rc.ping 02:48:06> HDD_Describe> Blocks: [312466432]
2617 rc.ping 02:48:06> HDD_Describe> Device: [sdb]
2617 rc.ping 02:48:06> HDD_Describe> P.Table-read Heads: [255]
2617 rc.ping 02:48:06> HDD_Describe> P.Table-read Sectors/track: [63]
2617 rc.ping 02:48:06> HDD_Describe> P.Table-read Cylinders: [19457]
2617 rc.ping 02:48:06> HDD_Describe> BIOS-read Heads: [255]
2617 rc.ping 02:48:06> HDD_Describe> BIOS-read Sectors/track: [63]
2617 rc.ping 02:48:06> HDD_Describe> BIOS-read Cylinders: [19457]
2617 rc.ping 02:48:06> HDD_Describe> Partition [0]
2617 rc.ping 02:48:06> HDD_Describe> Name: [sdb1]
2617 rc.ping 02:48:06> HDD_Describe> FS_Type: [ext3]
2617 rc.ping 02:48:06> HDD_Describe> Dirs: [files,vacer,lost+found,BU]
2617 rc.ping 02:48:06> HDD_Describe> Label: []
2617 rc.ping 02:48:06> HDD_Describe> Boot flag: [0]
2617 rc.ping 02:48:06> HDD_Describe> Start: [11753]
2617 rc.ping 02:48:06> HDD_Describe> End: [19458]
2617 rc.ping 02:48:06> HDD_Describe> Blocks: [61889536]
2617 rc.ping 02:48:06> HDD_Describe> Partition [1]
2617 rc.ping 02:48:06> HDD_Describe> Name: [sdb2]
2617 rc.ping 02:48:06> HDD_Describe> FS_Type: [vfat]
2617 rc.ping 02:48:06> HDD_Describe> Dirs: [Program files,Partimage]
2617 rc.ping 02:48:06> HDD_Describe> Label: []
2617 rc.ping 02:48:06> HDD_Describe> Boot flag: [0]
2617 rc.ping 02:48:06> HDD_Describe> Start: [1]
2617 rc.ping 02:48:06> HDD_Describe> End: [11753]
2617 rc.ping 02:48:06> HDD_Describe> Blocks: [94399488]
2617 rc.ping 02:48:06> Old fdisk start for [sda1]: [1]
2617 rc.ping 02:48:06> Old fdisk end for [sda1]: [5]
2617 rc.ping 02:48:06> Old fdisk nb of blocks for [sda1]: [40162]
2617 rc.ping 02:48:06> New fdisk end for [sda1]: [13]
2617 rc.ping 02:48:06> New fdisk nb of blocks for [sda1]: [102400]
2617 rc.ping 02:48:06> HDD Description before minimizing (Dev_Rich)
2617 rc.ping 02:48:06> HDD_Describe> Device: [sda]
2617 rc.ping 02:48:06> HDD_Describe> P.Table-read Heads: [255]
2617 rc.ping 02:48:06> HDD_Describe> P.Table-read Sectors/track: [63]
2617 rc.ping 02:48:06> HDD_Describe> P.Table-read Cylinders: [38913]
2617 rc.ping 02:48:06> HDD_Describe> BIOS-read Heads: [255]
2617 rc.ping 02:48:06> HDD_Describe> BIOS-read Sectors/track: [63]
2617 rc.ping 02:48:06> HDD_Describe> BIOS-read Cylinders: [38913]
2617 rc.ping 02:48:06> HDD_Describe> Partition [0]
2617 rc.ping 02:48:06> HDD_Describe> Name: [sda1]
2617 rc.ping 02:48:06> HDD_Describe> Type: [7]
2617 rc.ping 02:48:06> HDD_Describe> FS_Type: [ntfs]
2617 rc.ping 02:48:06> HDD_Describe> Dirs: [Boot]
2617 rc.ping 02:48:06> HDD_Describe> Label: [System Reserved]
2617 rc.ping 02:48:06> HDD_Describe> Boot flag: [1]
2617 rc.ping 02:48:06> HDD_Describe> Start: [1]
2617 rc.ping 02:48:06> HDD_Describe> End: [13]
2617 rc.ping 02:48:06> HDD_Describe> Blocks: [102400]
2617 rc.ping 02:48:06> HDD_Describe> Partition [1]
2617 rc.ping 02:48:06> HDD_Describe> Name: [sda2]
2617 rc.ping 02:48:06> HDD_Describe> Type: [7]
2617 rc.ping 02:48:06> HDD_Describe> FS_Type: [ntfs]
2617 rc.ping 02:48:06> HDD_Describe> Dirs: [Program Files (x86),Users,$Recycle.Bin,Documents and Settings,Intel,MSOCache,PerfLogs,Program Files,ProgramData,Recovery,tmp,Windows]
2617 rc.ping 02:48:06> HDD_Describe> Label: []
2617 rc.ping 02:48:06> HDD_Describe> Boot flag: [0]
2617 rc.ping 02:48:06> HDD_Describe> Start: [13]
2617 rc.ping 02:48:06> HDD_Describe> End: [38914]
2617 rc.ping 02:48:06> HDD_Describe> Blocks: [312466432]
2617 rc.ping 02:48:06> HDD_Describe> Device: [sdb]
2617 rc.ping 02:48:06> HDD_Describe> P.Table-read Heads: [255]
2617 rc.ping 02:48:06> HDD_Describe> P.Table-read Sectors/track: [63]
2617 rc.ping 02:48:06> HDD_Describe> P.Table-read Cylinders: [19457]
2617 rc.ping 02:48:06> HDD_Describe> BIOS-read Heads: [255]
2617 rc.ping 02:48:06> HDD_Describe> BIOS-read Sectors/track: [63]
2617 rc.ping 02:48:06> HDD_Describe> BIOS-read Cylinders: [19457]
2617 rc.ping 02:48:06> HDD_Describe> Partition [0]
2617 rc.ping 02:48:06> HDD_Describe> Name: [sdb1]
2617 rc.ping 02:48:06> HDD_Describe> Type: [83]
2617 rc.ping 02:48:06> HDD_Describe> FS_Type: [ext3]
2617 rc.ping 02:48:06> HDD_Describe> Dirs: [files,vacer,lost+found,BU]
2617 rc.ping 02:48:06> HDD_Describe> Label: []
2617 rc.ping 02:48:06> HDD_Describe> Boot flag: [0]
2617 rc.ping 02:48:06> HDD_Describe> Start: [11753]
2617 rc.ping 02:48:06> HDD_Describe> End: [19458]
2617 rc.ping 02:48:06> HDD_Describe> Blocks: [61889536]
2617 rc.ping 02:48:06> HDD_Describe> Partition [1]
2617 rc.ping 02:48:06> HDD_Describe> Name: [sdb2]
2617 rc.ping 02:48:06> HDD_Describe> FS_Type: [vfat]
2617 rc.ping 02:48:06> HDD_Describe> Dirs: [Program files,Partimage]
2617 rc.ping 02:48:06> HDD_Describe> Label: []
2617 rc.ping 02:48:06> HDD_Describe> Boot flag: [0]
2617 rc.ping 02:48:06> HDD_Describe> Start: [1]
2617 rc.ping 02:48:06> HDD_Describe> End: [11753]
2617 rc.ping 02:48:06> HDD_Describe> Blocks: [94399488]
2617 rc.ping 02:48:06> * Storing first sectors of part [/dev/sda1]
2617 rc.ping 02:48:06> Cmd: [(dd if=/dev/sda1 of=/tmp/aaa count=20 bs=512; mv -f /tmp/aaa "/mnt/dos/Partimage/ASUSW/sda1.first_sectors") 2>&1]
2617 rc.ping 02:48:06> Output: [dd: opening `/dev/sda1': No such file or directory
mv: cannot stat `/tmp/aaa': No such file or directory]
2617 rc.ping 02:48:06> dd has recorded [] octets
2617 rc.ping 02:48:06> This is less than asked; no more data to record on this part, next
2617 rc.ping 02:48:06> * Backuping partition [/dev/sda2]
2617 rc.ping 02:48:06> * Backuping first sectors of [/dev/sda2]'s device
2617 rc.ping 02:48:06> HDD: [sda]
2617 rc.ping 02:48:06> * Now storing the [/dev/sda2] partition
2617 rc.ping 02:48:06> Checking [/dev/sda2] for pagefile.sys and hiberfil.sys to remove
2617 rc.ping 02:48:06> [/dev/sda2]'s type: [7]
2617 rc.ping 02:48:06> Umount> Umounting [/mnt/win]
2617 rc.ping 02:48:06> Is_Mounted> Is part [/mnt/win] mounted ?
2617 rc.ping 02:48:06> Is_Mounted> No
2617 rc.ping 02:48:06> Umount> Not mounted.
2617 rc.ping 02:48:06> Mount> Trying to umount [/mnt/win]
2617 rc.ping 02:48:06> Umount> Umounting [/mnt/win]
2617 rc.ping 02:48:06> Is_Mounted> Is part [/mnt/win] mounted ?
2617 rc.ping 02:48:06> Is_Mounted> No
2617 rc.ping 02:48:06> Umount> Not mounted.
2617 rc.ping 02:48:06> Mount> Trying to mount [/dev/sda2] on [/mnt/win]
2617 rc.ping 02:48:06> Mount> Cmd: [(mount -t ntfs-3g /dev/sda2 /mnt/win) 2>&1]
2617 rc.ping 02:48:06> Mount> Output: [ntfs-3g: Failed to access volume '/dev/sda2': No such file or directory

MarkPing
Posts: 4
Joined: Sun Dec 26, 2010 11:00 pm

Re: Lost partitions?

Postby MarkPing » Thu Jun 16, 2011 4:10 am

dousin wrote:Well, the topic is pretty old, but anyway it might help to somebody:
I have recovered my lost partitions using TestDisk utility from the Ultimate Boot CD.
The partitions went broken during PING 'Resize partition' process during backup. See another thread in the forum (Windows 7 imaging problem ).
Bye



Hey dousin thank you very much for this tip!
I'm glad I came back to visit today.
I had basically set aside the disk with the screwed up partitions and just left it alone.

Today after I read your post I downloaded the TestDisk utility and was able to recover the lost partitions!

So yes, your post will definitely help out other lost souls like myself in the future!

Thanks again!


Return to “PING / General Discussions”

Who is online

Users browsing this forum: No registered users and 2 guests