LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags , , , , , , , , ,

Reply
 
Thread Tools
Old 10-15-2009, 06:07 AM   #1
ratman1
LQ Newbie
 
Registered: Oct 2009
Location: Perth, Australia
Distribution: Ubuntu 9.04 Jaunty Jackelope/Windows Vista/Windows Seven Rc1
Posts: 18
Thanked: 0
HELP!! Major Ubuntu problem error 21 when booting!!!!!!!!!!!


[Log in to get rid of this advertisement]
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 05:15 AM.. Reason: clarity
windows_98_nt_2000 ratman1 is offline  
Tag This Post , , , , , , , , ,
Reply With Quote
Old 10-15-2009, 06:29 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Red Beach (NZ)
Distribution: Ubuntu 9.04
Posts: 8,185
Blog Entries: 3
Thanked: 97
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.
linuxubuntu Simon Bridge is offline     Reply With Quote
Old 10-15-2009, 06:30 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Ubuntu Karmic, CentOS 5.4
Posts: 2,487
Thanked: 158
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.
linuxubuntu linuxlover.chaitanya is offline     Reply With Quote
Old 10-15-2009, 06:44 AM   #4
ratman1
LQ Newbie
 
Registered: Oct 2009
Location: Perth, Australia
Distribution: Ubuntu 9.04 Jaunty Jackelope/Windows Vista/Windows Seven Rc1
Posts: 18
Thanked: 0

Original Poster
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) =)
windows_98_nt_2000 ratman1 is offline     Reply With Quote
Old 10-15-2009, 06:47 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Ubuntu Karmic, CentOS 5.4
Posts: 2,487
Thanked: 158
MBR.

menu.lst file is the configuration file for grub in Ubuntu.
linuxubuntu linuxlover.chaitanya is offline     Reply With Quote
Old 10-15-2009, 06:57 AM   #6
ratman1
LQ Newbie
 
Registered: Oct 2009
Location: Perth, Australia
Distribution: Ubuntu 9.04 Jaunty Jackelope/Windows Vista/Windows Seven Rc1
Posts: 18
Thanked: 0

Original Poster
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?
linuxubuntu ratman1 is offline     Reply With Quote
Old 10-15-2009, 07:23 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Ubuntu Karmic, CentOS 5.4
Posts: 2,487
Thanked: 158
Yes, in the terminal.
linuxubuntu linuxlover.chaitanya is offline     Reply With Quote
Old 10-15-2009, 07:26 AM   #8
ratman1
LQ Newbie
 
Registered: Oct 2009
Location: Perth, Australia
Distribution: Ubuntu 9.04 Jaunty Jackelope/Windows Vista/Windows Seven Rc1
Posts: 18
Thanked: 0

Original Poster
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 07:39 AM.. Reason: politeness
linuxubuntu ratman1 is offline     Reply With Quote
Old 10-15-2009, 08:44 AM   #9
Larry Webb
Senior Member
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse 11.0
Posts: 2,973
Blog Entries: 3
Thanked: 37
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
windows_xp_2003 Larry Webb is offline     Reply With Quote
Old 10-15-2009, 08:49 AM   #10
ratman1
LQ Newbie
 
Registered: Oct 2009
Location: Perth, Australia
Distribution: Ubuntu 9.04 Jaunty Jackelope/Windows Vista/Windows Seven Rc1
Posts: 18
Thanked: 0

Original Poster
would a windows 7 disk be fine???
windows_98_nt_2000 ratman1 is offline     Reply With Quote
Old 10-15-2009, 08:58 AM   #11
Larry Webb
Senior Member
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse 11.0
Posts: 2,973
Blog Entries: 3
Thanked: 37
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
windows_xp_2003 Larry Webb is offline     Reply With Quote
Old 10-15-2009, 09:01 AM   #12
Larry Webb
Senior Member
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse 11.0
Posts: 2,973
Blog Entries: 3
Thanked: 37
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.
windows_xp_2003 Larry Webb is offline     Reply With Quote
Old 10-15-2009, 09:04 AM   #13
ratman1
LQ Newbie
 
Registered: Oct 2009
Location: Perth, Australia
Distribution: Ubuntu 9.04 Jaunty Jackelope/Windows Vista/Windows Seven Rc1
Posts: 18
Thanked: 0

Original Poster
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.
windows_98_nt_2000 ratman1 is offline     Reply With Quote
Old 10-15-2009, 09:05 AM   #14
ratman1
LQ Newbie
 
Registered: Oct 2009
Location: Perth, Australia
Distribution: Ubuntu 9.04 Jaunty Jackelope/Windows Vista/Windows Seven Rc1
Posts: 18
Thanked: 0

Original Poster
windows 7 didn't wipe vista when i dual booted. I'll try the terminal thing.
windows_98_nt_2000 ratman1 is offline     Reply With Quote
Old 10-15-2009, 12:50 PM   #15
Larry Webb
Senior Member
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse 11.0
Posts: 2,973
Blog Entries: 3
Thanked: 37
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.
windows_xp_2003 Larry Webb is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 03:54 AM
Major Crash Problem in Ubuntu/kubuntu hatmancan Ubuntu 8 11-16-2008 04:51 AM
Major Help Needed With Booting Error! linuxnoob7 Linux - Software 1 09-14-2005 12:12 AM
Major Help Needed With Booting Error! linuxnoob7 Linux - General 1 09-13-2005 11:28 PM
Major problem booting linux sylven_1999 Mandriva 5 11-13-2003 01:59 PM


All times are GMT -5. The time now is 02:44 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration