LinuxQuestions.org
Visit Jeremy's Blog.
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 02-14-2013, 10:10 AM   #1
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Rep: Reputation: 17
Screwed up the mbr of Windows install! need help?


I had win 7 on my machine. I booted in the live envoirnment, opened up Disk utility(I was running live lubuntu) and Don't know why clicked on <make drive bootable>. (It was the drive containing the windows install) Then I realised my error. Opened up Gparted, resized the windows drive, deleted all other drives and made a swap and a primary partition from the free space and installed Lubuntu. But during the install Lubuntu didn't detected my windows install. It acted as if I was installing Lubutu on a fresh machine. Now at the moment I can mount the drive, explore it from my Lubuntu desktop but I can't boot it.I don't even have the installation disk at hand so I can't use that.

Thanks
 
Old 02-14-2013, 10:17 AM   #2
rokytnji
LQ 5k Club
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 17 , ChromeOS
Posts: 5,074
Blog Entries: 20

Rep: Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326
Parted Magic cd has super grub disk on it. You might be able to fix Windows MBR with that.

Also. On this Acer Laptop. I have a recovery Partition for Windows 7. I can fix Windows with that when needed.

Code:
/dev/sda1: LABEL="PQSERVICE" UUID="84C0247FC0247996" TYPE="ntfs" 
/dev/sda2: LABEL="SYSTEM RESERVED" UUID="9C2425202424FF40" TYPE="ntfs" 
/dev/sda3: LABEL="Acer" UUID="6AC2CA02C2C9D28D" TYPE="ntfs" 
/dev/sda5: UUID="26a54718-3581-4c8b-958a-a03d4ce2b96f" TYPE="swap" 
/dev/sda6: LABEL="/" UUID="36c9c5bd-8611-475c-91ed-b13b8ecfe729" TYPE="ext4" 
/dev/sda7: LABEL="/home" UUID="55421c6b-4f54-41a2-979e-82ca2b7f2b1f" UUID_SUB="4a16b4e6-1f25-4024-9ebc-a6ff6b28c584" TYPE="btrfs"
Code:
title antiX at sda6, kernel 3.6.11-antix.1-amd64-smp
kernel /boot/vmlinuz-3.6.11-antix.1-amd64-smp root=/dev/sda6 quiet nouveau.modeset=0 
initrd /boot/initrd.img-3.6.11-antix.1-amd64-smp
boot

title Windows Recovery Environment (loader) at sda1
root (hd0,0)
rootnoverify 
chainloader +1

title Windows 7 (loader) at sda2
root (hd0,1)
rootnoverify 
chainloader +1
I use grub legacy instead of grub 2 like Lubuntu uses.
 
Old 02-14-2013, 10:59 AM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Then I realised my error. Opened up Gparted, resized the windows drive, deleted all other drives and made a swap and a primary partition from the free space and installed Lubuntu.
What was windows physical location on disk, was it sda1 or another partition?
Post output of
Quote:
fdisk -l
 
Old 02-14-2013, 01:14 PM   #4
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 17
Code:
Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders, total 117210240 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008a8cb

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *    21305344   117209087    47951872   83  Linux
/dev/sda2          206848    21305343    10549248    7  HPFS/NTFS/exFAT
/dev/sda3            2048      204799      101376   82  Linux swap / Solaris

Partition table entries are not in disk order

The one in the middle is the windows 7 partition.
Just to be on the safe side, I'm using Lubuntu 12.04 and another thing I don't want to remove the L ubuntu partition but keep a dual-boot so Windows appears in grub. I know I can Install windows to the sda2 drive and then fix the grub but that'll be a hell lot of work. I'm looking for some thing that could fix it without much hassle.

Last edited by Nabeel; 02-14-2013 at 01:20 PM.
 
Old 02-14-2013, 01:17 PM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Windows is still there you erased System Reserved which contains your boot loader you'll have to try fixing boot most likely reinstall. You can do a repair install

Last edited by EDDY1; 02-14-2013 at 01:21 PM.
 
Old 02-15-2013, 10:19 AM   #6
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 17
Well THis was what I was afraid of But seeing no other option Looks like i'll have to go with it
 
Old 02-15-2013, 12:14 PM   #7
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,396

Rep: Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485
A quick Google search for "fix windows 7 mbr without disc" (w/o the quotes) yields several promising hits, including this one from BleepingComputer.
 
  


Reply


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
Suse 10.1 has screwed up my MBR d_GeNeRiT SUSE / openSUSE 2 10-12-2006 09:59 PM
How I screwed my mbr...FC2 & W2k, windows unable to boot even after reinstallation! shamael Linux - Newbie 3 05-24-2004 10:26 PM
really screwed MBR jimmywithtorch Linux - Software 4 03-15-2004 03:34 AM
Mandrake Install Screwed up MBR; Need to Make Boot Loader CD paul_m_d Linux - Newbie 5 12-09-2003 03:36 AM
screwed up mbr hooligan Linux - Software 5 10-17-2001 12:59 AM


All times are GMT -5. The time now is 08:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration