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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-20-2010, 06:32 AM
|
#1
|
Member
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 101
Rep:
|
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.
|
|
|
01-20-2010, 07:20 AM
|
#2
|
Senior Member
Registered: Jun 2008
Posts: 1,820
|
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.
|
|
|
01-20-2010, 07:24 AM
|
#3
|
Member
Registered: Sep 2003
Distribution: Slackware
Posts: 626
Rep:
|
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"
|
|
|
01-20-2010, 09:17 AM
|
#4
|
Member
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 101
Original Poster
Rep:
|
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.
|
|
|
01-20-2010, 02:53 PM
|
#5
|
Member
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 101
Original Poster
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 03:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|