LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-15-2009, 05:07 AM   #1
ratman1
Member
 
Registered: Oct 2009
Location: Perth, Australia
Distribution: Slackware64 14.0
Posts: 44

Rep: Reputation: Disabled
HELP!! Major Ubuntu problem error 21 when booting!!!!!!!!!!!


Hi,

I am REALLY new to linux so please be 'basic' with me...
okay, this is the problem:

I have a windows vista and windows 7 rc1 32bit dual boot on my laptops hard drive, each on a separate partition. I tried to install ubuntu 9.04 on my 500gb portable external hard drive and all went well. It installed fine but it seems to have moved the boot loader or something onto the portable hd because i can only boot if the portable hd is plugged in. If it isn't it says

"something something something" 1.5
"error 22"

All i want to do is get rid of ubuntu and be back to the normal dual boot. Is that possible to do easily?

That would be great if you can tell me how to get rid of it!!!


Thanks,

Ratman

Last edited by ratman1; 10-16-2009 at 04:15 AM. Reason: clarity
 
Old 10-15-2009, 05:29 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
I take it you have never had ubuntu on the internal drive?
In which case, you only really need to use windows fixboot without the external drive pugged in.

You should be able to make the external drive bootable again from the live disk by making sure that the grub bootloader is installed (IIRC) to the external drive mbr, not the internal.

BTW: that error should be:

Loading Grub stage 1.5
error 21

21 = unknown error.
 
Old 10-15-2009, 05:30 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Thats right. By default, Ubuntu has installed the Grub on the mbr of the drive where Ubuntu resides. You will need to reinstall grub on the internal drive.
Connect the external drive, boot Ubuntu, and type

sudo grub-install /dev/sda Assuming sda is your internal drive. After this you may need to change the menu.lst file.
 
Old 10-15-2009, 05:44 AM   #4
ratman1
Member
 
Registered: Oct 2009
Location: Perth, Australia
Distribution: Slackware64 14.0
Posts: 44

Original Poster
Rep: Reputation: Disabled
Smile Thanks

Yeah, thanks to both of you

Simon Bridge, the error was "loading grub stage 1.5". Thanks

linuxlover.chaitanya, what is mbr, and what is menu.lst? sorry for being so 'new' (for want of a better word) =)
 
Old 10-15-2009, 05:47 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
MBR.

menu.lst file is the configuration file for grub in Ubuntu.
 
Old 10-15-2009, 05:57 AM   #6
ratman1
Member
 
Registered: Oct 2009
Location: Perth, Australia
Distribution: Slackware64 14.0
Posts: 44

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by linuxlover.chaitanya View Post
Connect the external drive, boot Ubuntu, and type

sudo grub-install /dev/sda Assuming sda is your internal drive. After this you may need to change the menu.lst file.
Do i type that in terminal?
 
Old 10-15-2009, 06:23 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Yes, in the terminal.
 
Old 10-15-2009, 06:26 AM   #8
ratman1
Member
 
Registered: Oct 2009
Location: Perth, Australia
Distribution: Slackware64 14.0
Posts: 44

Original Poster
Rep: Reputation: Disabled
i did that and pressed return, then it said:

(hd0) /dev/sda
(hd1) /dev/sdb

what do i do then?

All i want to do is get rid of Ubuntu 9.04 for now without breaking my pc. Will this do it?
(ps if i sound angry i am not intentionally :-) )

Last edited by ratman1; 10-15-2009 at 06:39 AM. Reason: politeness
 
Old 10-15-2009, 07:44 AM   #9
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
If you want to get it to boot back to windows and forget ubuntu for now just unplug your external hd and boot a windows disk to repair the mbr. If this is not an option then there are places to download windows boot repair.

I recommend Super Grub for a start then you will be able to repair your boot with windows and then if you want to boot your external drive you can use the Super Grub disk to boot.

Larry
 
Old 10-15-2009, 07:49 AM   #10
ratman1
Member
 
Registered: Oct 2009
Location: Perth, Australia
Distribution: Slackware64 14.0
Posts: 44

Original Poster
Rep: Reputation: Disabled
would a windows 7 disk be fine???
 
Old 10-15-2009, 07:58 AM   #11
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by linuxlover.chaitanya View Post
type sudo grub-install /dev/sda Assuming sda is your internal drive. After this you may need to change the menu.lst file.
His bios may not boot usb devices

If you can get to terminal just type sudo grub
and hit enter and see if you get the grub prompt

grub>

If you do then type

setup (hd0)

and hit enter

That may repair it to where you can boot from your external drive but you will have to use my prior post to repair it with the drive disconnected.

Larry
 
Old 10-15-2009, 08:01 AM   #12
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
I am not a windows man but would think a windows 7 disk would but it may want to wipe Vista. Sorry do not know enough about windows to advise.
 
Old 10-15-2009, 08:04 AM   #13
ratman1
Member
 
Registered: Oct 2009
Location: Perth, Australia
Distribution: Slackware64 14.0
Posts: 44

Original Poster
Rep: Reputation: Disabled
btw my bios can boot usb devices i think. I have run ubuntu 9.04 persistently from a thumb drive by setting the boot order in my bios. I put usb key/drive above notebook hard drive and it went to my thumb drive.
 
Old 10-15-2009, 08:05 AM   #14
ratman1
Member
 
Registered: Oct 2009
Location: Perth, Australia
Distribution: Slackware64 14.0
Posts: 44

Original Poster
Rep: Reputation: Disabled
windows 7 didn't wipe vista when i dual booted. I'll try the terminal thing.
 
Old 10-15-2009, 11:50 AM   #15
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by ratman1 View Post
I put usb key/drive above notebook hard drive and it went to my thumb drive.

That may be part of your problem, try and change the boot order back to your hd booting first if you can before making any changes.

If you are interested there is a way to have windows boot when your external hd is unplugged and then when you plug in your external hd grub will boot all but you have so much going now I will not get into that now.
 
  


Reply

Tags
boot, drive, dual, error, grub, hard, portable, stage, ubuntu



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
Having problems with Dual Booting Ubuntu and Vista, Ubuntu having major issues. Chimmichango Linux - Newbie 2 08-03-2009 02:54 AM
Major Crash Problem in Ubuntu/kubuntu hatmancan Ubuntu 8 11-16-2008 03:51 AM
Major Help Needed With Booting Error! linuxnoob7 Linux - Software 1 09-13-2005 11:12 PM
Major Help Needed With Booting Error! linuxnoob7 Linux - General 1 09-13-2005 10:28 PM
Major problem booting linux sylven_1999 Mandriva 5 11-13-2003 12:59 PM

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

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