LinuxQuestions.org
Review your favorite Linux distribution.
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 08-15-2009, 01:44 PM   #1
ThomasC
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Rep: Reputation: 0
URGENT, can't boot window after deleting ubuntu partitions and some mess up


Yesterday, I tried to delete ubuntu 7.04 partition by using disk management in vista.

After that, I got the GRUB error 17 message.Then I check in internet for solutions, and some how, I got my partition which is vista os "wear" the mask linux.

My fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 863 6928384 27 Unknown
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 863 19237 147590999 83 Linux
/dev/sda3 19238 19457 1767150 5 Extended

Today, I finally got the solution for the grub error 17, and it works. However, my latop got another issue. When I boot my vista, chkdsk doesn't run. After 3 seconds, my laptop restart, and the problem with chkdsk repeat.

Can you help me out?

Many thanks
 
Old 08-15-2009, 02:05 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Please do not use "urgent" in your thread titles. What is urgent for you is not urgent for anyone else. Putting such words in your title will not get help to you any faster. From what you have said, I would guess your solution will come from the Vista side rather than the Linux side. I hope you have a Vista resue disk of some kind. That is probably were your solution lies, if there is a solution. You might also try posting on some of the Vista forums to see what people have done in similar situations.
Cheers,
jdk
 
Old 08-15-2009, 02:08 PM   #3
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
fdisk /mbr will restore the master boot record for windows installments. (overwriting grub)

use that from the rescue mode on the windows cd (booting from it), not sure how it exactly works with vista, but with xp this works.
 
Old 08-15-2009, 02:12 PM   #4
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
This might work for you:

How to Manually Repair BCD when Windows Won’t Start
http://www.vistaclues.com/how-to-man...ws-wont-start/
 
Old 08-16-2009, 12:11 AM   #5
ThomasC
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Original Poster
Rep: Reputation: 0
I burned the recovery cd, and booted it. However, for some reason, startup repair can't repair my problem and recommend me to send the problem back to microsoft.

Diagnosis and repair log

Number of repair attempts: 4

Session details
System Disk = \Device\Harddisk0
Window directory = \\?\GLOBALROOT\Device\HarddiskVolume2\Windows
AutoChk Run = 0
Number of root causes = 1

I tried to use prompt to input the BootRec.exe command. The result is
*With /FixMbr : The repair works, but it doesn't solve my problem.
*With /FixBoot : The volume does not contain a recognized file system. Please make sure that all required file system drivers are leaded and that the volume is not corrupted.
*With /ScanOS : Total identified windows installations : 0 (My guess is that my early messed up make window "wear" the mask linux)
*With /RebuildBcd : Total identified windows installations : 0

How do I solve my problem?

Many thanks
 
Old 08-16-2009, 01:02 AM   #6
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Rep: Reputation: 49
Hi,

As per your first post, you only have the problem with your laptop now. The problem with the other computer is solved?

Are you sure that partitions still exist on your HDD? If yes, there seems to be a problem with the partition type ID being changed due to some reason.

Please read that following article:
http://www.freeos.com/articles/3935/


In the above mentioned article pay special attention to the part -- Partition Creation and read up the text mentioned below.

Quote:
By default, fdisk creates a partition of type Linux with ID 83. This is incorrect, if you're trying to create a partition of type swap. You can change the partition type using the command “t”.
Regards,
ADJ
 
Old 08-16-2009, 09:41 PM   #7
ThomasC
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Yah, I used fdisk /dev/sda. Chose option m and use command t to change my partition. I remembered that I use 82 which is linux. Is there anyway that I can restore my vista ID.

Thank you very much
 
Old 08-17-2009, 10:19 AM   #8
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Rep: Reputation: 49
Hi,

As already mentioned in the article,

Quote:
Hex code (type L to list codes):

Each partition type has a number assigned to it. For the most part, the hex codes of the partition ID's are unique. In some cases, there are conflicts - Solaris partitions and Linux swap share the same ID. If unsure of the Partition ID, use “L” to check. As you can see, fdisk supports a wide variety of partitions from FAT to BSD to BEOS. We select 82 for Linux swap.
Go through the article again -- and this time, select the Hex code corresponding to NTFS ( (or whichever partition type you think Vista is installed on)from the list - by typing L) and go ahead.

Regards,
ADJ
 
Old 08-18-2009, 12:28 AM   #9
ThomasC
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks. My vista is back again. Right now, I installed the new version of ubuntu dual boot with vista, and the system works perfect
 
Old 08-18-2009, 12:35 AM   #10
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by ThomasC View Post
Thanks. My vista is back again. Right now, I installed the new version of ubuntu dual boot with vista, and the system works perfect
That's good news, Thomas. Now would you kindly go to the Thread Tools menu just above your first post and mark this thread as "solved".
Thanks,
jdk
 
  


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
Urgent Help! Ubuntu + Xp Professional Dual Boot Error sako75 Ubuntu 20 11-13-2007 01:14 AM
partitions - getting in a mess! er20ic Linux - Newbie 4 11-05-2006 04:16 PM
Made a mess with my swap partitions VaniaMih Linux - Newbie 12 12-01-2005 01:23 PM
help with deleting partitions please the snucka Linux - General 1 01-13-2005 03:17 PM

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

All times are GMT -5. The time now is 11:08 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