LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-20-2010, 06:32 AM   #1
r_s
Member
 
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 101

Rep: Reputation: 21
Lost partition


Hi , I had a triple boot of vista, ubuntu, kubuntu installed on my system , but due to some messing up I ended up with deleting my ubuntu partition , then I used testdisk from kubuntu to recover the lost partition , but somehow I have lost my entire window vista partition and my kubuntu partition also.
My earlier partitions were in the order
1 Dell Utility
2 Windows vista
3 Recovery
4 extended
a) I (NTFS)
b) J (NTFS)
c) ubuntu 9.10
d) kubuntu 9.10
but now I am left with only I (NTFS) . I really need to recover my lost ubuntu partition as I had some important data stored in it.
Please help.
Attached Thumbnails
Click image for larger version

Name:	Screenshot.jpg
Views:	18
Size:	80.3 KB
ID:	2527  
 
Old 01-20-2010, 07:20 AM   #2
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
Clone it...

You might make a cloned copy of what you have left after your first recovery attempt. You can use the command "dd" , often mentioned and documented here on LQ, or Clonezilla. Cloning gives you a chance to try a recovery more than once, perhaps gaining useful information and elimination possibilities with each try.

You need to post more details about what you tried if you hope for a qualified response to your problem.

You mentioned nothing about a backup copy of your files; next time perhaps?

http://www.linuxquestions.org/linux/...Ask_a_Question

Last edited by thorkelljarl; 01-20-2010 at 07:22 AM.
 
Old 01-20-2010, 07:24 AM   #3
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
Most importantly, don't write anything to disk. Anything you need to do to fix the problem should be done via live-cd/rescue disk with any hard disk partitions mounted as read-only.

More info is needed:
Which boot manager are you using?
Post fstab file where possible.
Post output of "fdisk -l /dev/sda"
 
Old 01-20-2010, 09:17 AM   #4
r_s
Member
 
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 101

Original Poster
Rep: Reputation: 21
Well, by mistake I deleted my Ubuntu partition and then or rebooting the system and selecting ubuntu it gave an error "device not found" quite justified. So in order to recover this lost partition I used testdisk in kubuntu , and found out my lost partition using deeper search...but then after completing testdisk when I rebooted the system ...there was no grub and the grub rescue command prompt was shown ..it was then I found out that Boot of C drive of windows vista was also lost along with kubuntu.I have not written anything to disk understanding the gravity of the problem .
Here is the output of sudo gpart /dev/sda using a live cd

Begin scan...
Possible partition(DOS FAT), size(188mb), offset(0mb)
Possible partition(DOS FAT), size(32773mb), offset(188mb)
Possible extended partition at offset(222305mb)
Possible partition(Linux swap), size(2055mb), offset(222305mb)
Possible partition(Linux ext2), size(22889mb), offset(224360mb)
Possible extended partition at offset(247250mb)
Possible partition(Linux swap), size(2674mb), offset(247250mb)
End scan.

Checking partitions...

* Warning: more than one extended partition: 2.
Partition(Primary 'big' DOS (> 32MB)): primary
Partition(DOS or Windows 95 with 32 bit FAT, LBA): primary
Partition(Linux swap or Solaris/x86): logical
Partition(Linux ext2 filesystem): orphaned logical
Partition(Linux swap or Solaris/x86): invalid

* Warning: partition(Extended DOS, LBA) ends beyond disk end.
Number of inconsistencies found: 1.

Guessed primary partition table:
Primary partition(1)
type: 006(0x06)(Primary 'big' DOS (> 32MB))
size: 188mb #s(385497) s(63-385559)
chs: (0/1/1)-(23/254/63)d (0/1/1)-(23/254/63)r

Primary partition(2)
type: 012(0x0C)(DOS or Windows 95 with 32 bit FAT, LBA)
size: 32773mb #s(67119570) s(385560-67505129)
chs: (24/0/1)-(1023/254/63)d (24/0/1)-(4201/254/63)r

Primary partition(3)
type: 015(0x0F)(Extended DOS, LBA)
size: 170700mb #s(349594401) s(455282100-804876500)
chs: (1023/254/63)-(1023/254/63)d (28340/0/1)-(50101/62/30)r

Primary partition(4)
type: 000(0x00)(unused)
size: 0mb #s(0) s(0-0)
chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r


This is the output of fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90000000

Device Boot Start End Blocks Id System
/dev/sda1 * 1 24 192748+ 6 FAT16
/dev/sda2 9759 22596 103110656 7 HPFS/NTFS

Last edited by r_s; 01-20-2010 at 11:03 AM.
 
Old 01-20-2010, 02:53 PM   #5
r_s
Member
 
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 101

Original Poster
Rep: Reputation: 21
After running testdisk I have my entire hd lost.
This is the output of fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90000000

Device Boot Start End Blocks Id System
/dev/sda1 * 1 24 192748+ 6 FAT16
/dev/sda2 25 4202 33559785 c W95 FAT32 (LBA)
/dev/sda3 9759 22596 103110656 7 HPFS/NTFS
/dev/sda4 22596 38914 131078839+ f W95 Ext'd (LBA)
/dev/sda5 22596 28340 46134268 7 HPFS/NTFS
/dev/sda6 28341 28602 2104472 82 Linux swap / Solaris
/dev/sda7 28603 31520 23438800 83 Linux
/dev/sda8 31521 31861 2739040 82 Linux swap / Solaris

Now whenever I run parted and print anything it says
Can't have a partition outside the disk!
This is becuase for /dev/sda4 it shows end as 38914 while I have only 38913 sectors .So anybody please help me to fix this usnig fdisk, cause I am really nervous this time...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HDD partition lost. xandros DVD + me = lost data lein Linux - General 18 05-22-2007 05:47 AM
Lost My partition? isra Linux - General 4 05-19-2007 12:57 AM
lost partition newbie1000101 Linux - Laptop and Netbook 1 03-08-2005 12:20 PM
lost partition kbrandl Linux - Newbie 1 11-18-2003 04:33 PM
Partition Lost? lilo76 Linux - Hardware 2 01-17-2003 08:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration