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 03-15-2008, 04:35 AM   #1
narchy
LQ Newbie
 
Registered: Mar 2008
Posts: 6

Rep: Reputation: 0
Unhappy Ubuntu 7.10 Dual Boot with XP, ubuntu partition deleted, grub 1.5 error 22


Hello all,
I was a Linux virgin until a few weeks ago when i decided to walk towards the light and try out the one and only...
So I installed Ubuntu 7.10 and it worked great. Unfortunately I only have this laptop as of now and it's got a 100 GB HDD, not great for dual boots. I didn't want to get rid of my XP Installation because I'm familiar with Windows so I made two partitions using Partition Magic 8.0. My Windows XP boot started suffering and since I use XP more and ubuntu was more an experimental thing for me I deleted the Linux partition (in one of my more moronic moments I have to admit) and re-extended the XP partition to include the entire HDD...
To my dismay I forgot about the GRUB Loader and now I'm stuck with the somewhat infamous error 22. I've read some of the threads out there and unfortunately I have no boot disk for Windows XP, 2000, or otherwise(laptop didn't come with one) and the system isn't responding past the GRUB Loader error page. This is of course, in some twisted case of irony, me posting on LQ off of the Ubuntu Live CD kernel.
Any and all help is greatly appreciated.
~Narchy
 
Old 03-15-2008, 05:08 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
This might help. I don't use windows so I can't vouch for it.
Quote:
Download fixmbr - MbrFix tool to repair master boot record

MbrFix is same as fixmbr or fdisk /mbr, but works in any Windows including Windows NT, XP, 2000, 2k
I found it here:
http://www.ambience.sk/fdisk-master-...ilo-fixmbr.php.

You can also search www.google.com/linux, search word fixmbr. You may find other tools.
The one I list above is about 57 mb.
 
Old 03-15-2008, 05:27 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I did some testing a while back on a mbr fix type utility on Knoppix. Worked fine - booted any primary partition marked "active". Windows or Linux.
Hopefully the same one mentioned above.
 
Old 03-15-2008, 06:02 AM   #4
narchy
LQ Newbie
 
Registered: Mar 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you for the advice but I can't run any kind of Windows so I don't think I can run the mbrfix utility unless there's one for Linux and I can't find it because I'm stupid.
 
Old 03-15-2008, 06:40 AM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
If you had done the google search I recommended, you could have found this:

How to fix your Windows MBR with an Ubuntu liveCD
http://www.arsgeek.com/?p=3340
 
Old 03-15-2008, 10:48 AM   #6
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
You can try super grub live cd to fix your the MBR of your disk.

http://supergrub.forjamari.linex.org/
 
Old 03-15-2008, 03:01 PM   #7
narchy
LQ Newbie
 
Registered: Mar 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the input everyone.

@BigRigDriver
I tried what you found on http://www.arsgeek.com/?p=3340 but my ubuntu terminal says:
"ubuntu@ubuntu:~$ sudo apt-get install ms-sys //My Input

//Computer spits out...

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package ms-sys"

Little help?

~Narchy
 
Old 03-15-2008, 03:31 PM   #8
narchy
LQ Newbie
 
Registered: Mar 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Another quick thing, I don't think I'm going to be able to implement any solution requiring any kind of iso, am I, because I'm using the Ubuntu LiveCD to load this kernel so I can't pop it out and put in a different CD, unless there's a virtual drive solution.
 
Old 03-15-2008, 05:03 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by narchy View Post
E: Couldn't find package ms-sys"

Little help? ~Narchy
Did you enable "Universal" first as it says in that blog ???.
 
Old 03-16-2008, 02:49 PM   #10
narchy
LQ Newbie
 
Registered: Mar 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Ah thanks, I didn't enable Universal. Rather I should say that the repositories didn't update right even though I checked Universal because the internet connection was being screwy...I got ms-sys running and everything fell right in place. Thanks so much for your help everyone. I hope to acquire a better machine soon so that all my Linux related dreams can come true but for now thanks for helping me save another almost-bricked machine from the clutches of my stupidity.

~Narchy
 
Old 12-26-2008, 09:57 PM   #11
cxshar
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
Still getting the error

Hey I've also got this problem where ms-sys package isn't being found and everything has been checked in System Sources.

I'm using the latest xubuntu live cd.

Any suggestions on what to do?
 
Old 02-07-2011, 03:54 AM   #12
janakiramulu
Member
 
Registered: Jan 2011
Location: mangalore
Distribution: ubuntu
Posts: 167

Rep: Reputation: 0
How to fix your Windows MBR with an Ubuntu liveCD

hi
bigrigdriver
i have duel booting windows+ubuntu 10.4,unfaortunately but grub has gone so
i want fix my windows mbr using ubuntu 10.4 live cd

i enabled the community-maintained open source software(universe)
in terminalusing command 'sudo apt-get install ms-sys'
result::""couldnt find package ms-sys"" in terminal what to do

how to install the packages using live cd ubuntu 10.4
 
  


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
Ubuntu 8.03a3 New Install: GRUB Error 21 after new dual-HDD, dual-boot install tvdxer Ubuntu 1 01-29-2008 01:08 PM
Grub error 17 after XP-Ubuntu dual install Grrblt Linux - General 12 09-17-2007 05:00 PM
Partition rearrangement & dual booting Ubuntu/XP via GRUB VoidRoamer Linux - Hardware 9 04-29-2007 08:32 AM
grub dual boot ubuntu/windows dellcom1800 Linux - General 1 01-25-2007 06: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

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