Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-09-2009, 09:23 AM   #1
LQ Newbie
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
fdisk deleted my lenovo recovery partition.

I had Windows Vista on my lenovo laptop. Some time back I installed Ubuntu Studio on my laptop after removing Vista and had some free space. In this free space I installed Windows XP. I was happy with Ubuntu so I decided to remove XP. I used fdisk to delete the windows partition. However, this deleted all existing partitions except those used by ubuntu.

I had my lenovo recovery primary boot partition /dev/sda1 which could install Vista again. This also got deleted. I badly want this partition back. In it's place fdisk shows free space exactly equal to the memory of deleted partition...

Help is appreciated...
Old 04-09-2009, 09:55 AM   #2
Senior Member
Registered: Jun 2008
Posts: 1,796

Rep: Reputation: 213Reputation: 213Reputation: 213
A first step...

It is advisable to use Clonezilla or the command dd to make a cloned copy of the HDD, or that Vista partition, on another HDD as a prelude to any attempt to recover the lost partitions. Working on the copy allows you more than one attempt on the problem without loosing the contents of the original. Obviously, you should not now be writing anything to the disk, or that portion of the disk that you wish to recover, assuming it appears to the system as formated.

Several live-cds have recovery tools. Testdisk has been recommended on this forum and there have been several good posts. Use the forums search function and google for howtos.

I merely refer all of this information, as I have never had the pleasure of solving such a problem on my own behalf. I usually endeavour to avoid such difficulties by using a live-cd of Parted Magic to partition and check partitions, as it has both GParted with its GUI and fdisk and cfdisk if I need them.

Good luck, and your post reads as if your chances are good.

Last edited by thorkelljarl; 04-09-2009 at 05:23 PM.
Old 04-09-2009, 10:30 AM   #3
LQ Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
If you are unable to recover the hidden partition using the tools suggested above..

You would probably have to use the recovery CD's DVD's you created when you first purchased the laptop to recreate the hidden service and recovery partition. That process will most likely wipe everything else on the laptop, since recovery disks are not known to play well with anything else. Their sole function is to get the laptop back to the condition it was in when you received it from the factory.

If you did not create recovery disks you may be able to order them from Lenovo for a fee.
Old 04-09-2009, 01:13 PM   #4
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,813
Blog Entries: 27

Rep: Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111

First, 'fdisk' didn't delete the partitions. You did.

You should do a backup of the hdd before you do anything else.

You should be able to recover the partition by utilizing the blocks within fdisk as long as you have the start and stop. Or you can use 'test-disk' or 'Ranish' to recover. 'UBCD' or 'SystemRescueCd' would be useful LiveCDs to have on hand.

These links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
Old 04-09-2009, 04:22 PM   #5
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
If the partition was deleted and and it has not been overwritten yet, then you can simply restore it. Launch fdisk, select create partition and set the boundaries exactly as they were before. If unsure, run testdisk first to find out what they were - but be careful, there is a one-off issue between fdisk and testdisk (fdisk counts from 1, testdisk from 0).


fdisk, partition, recover, ubuntu

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
couldn't get into fdisk; deleted partitions anyway; bad idea? dancehallwraith Linux - Newbie 3 08-22-2008 08:44 AM
recovery of deleted files linux4real Linux - Newbie 7 06-29-2006 08:14 AM
recovery of deleted files linux4real Linux - General 1 06-27-2006 09:32 AM
data recovery (deleted by rm -R) lavluda Debian 9 02-16-2006 04:02 AM
deleted linux partition adn the boot loader was deleted also,now i have only gnu grub boris199 Linux - Laptop and Netbook 2 01-29-2005 04:53 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:39 PM.

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