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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
10-15-2009, 05:07 AM
|
#1
|
|
Member
Registered: Oct 2009
Location: Perth, Australia
Distribution: Mint 13 cinnamon
Posts: 43
Rep:
|
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
|
|
|
|
10-15-2009, 05:29 AM
|
#2
|
|
Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep: 
|
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.
|
|
|
|
10-15-2009, 05:30 AM
|
#3
|
|
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,592
Rep: 
|
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.
|
|
|
|
10-15-2009, 05:44 AM
|
#4
|
|
Member
Registered: Oct 2009
Location: Perth, Australia
Distribution: Mint 13 cinnamon
Posts: 43
Original Poster
Rep:
|
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) =)
|
|
|
|
10-15-2009, 05:47 AM
|
#5
|
|
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,592
Rep: 
|
MBR.
menu.lst file is the configuration file for grub in Ubuntu.
|
|
|
|
10-15-2009, 05:57 AM
|
#6
|
|
Member
Registered: Oct 2009
Location: Perth, Australia
Distribution: Mint 13 cinnamon
Posts: 43
Original Poster
Rep:
|
Quote:
Originally Posted by linuxlover.chaitanya
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?
|
|
|
|
10-15-2009, 06:23 AM
|
#7
|
|
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,592
Rep: 
|
Yes, in the terminal.
|
|
|
|
10-15-2009, 06:26 AM
|
#8
|
|
Member
Registered: Oct 2009
Location: Perth, Australia
Distribution: Mint 13 cinnamon
Posts: 43
Original Poster
Rep:
|
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
|
|
|
|
10-15-2009, 07:44 AM
|
#9
|
|
LQ Veteran
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
|
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
|
|
|
|
10-15-2009, 07:49 AM
|
#10
|
|
Member
Registered: Oct 2009
Location: Perth, Australia
Distribution: Mint 13 cinnamon
Posts: 43
Original Poster
Rep:
|
would a windows 7 disk be fine???
|
|
|
|
10-15-2009, 07:58 AM
|
#11
|
|
LQ Veteran
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
|
Quote:
Originally Posted by linuxlover.chaitanya
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
|
|
|
|
10-15-2009, 08:01 AM
|
#12
|
|
LQ Veteran
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
|
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.
|
|
|
|
10-15-2009, 08:04 AM
|
#13
|
|
Member
Registered: Oct 2009
Location: Perth, Australia
Distribution: Mint 13 cinnamon
Posts: 43
Original Poster
Rep:
|
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.
|
|
|
|
10-15-2009, 08:05 AM
|
#14
|
|
Member
Registered: Oct 2009
Location: Perth, Australia
Distribution: Mint 13 cinnamon
Posts: 43
Original Poster
Rep:
|
windows 7 didn't wipe vista when i dual booted. I'll try the terminal thing.
|
|
|
|
10-15-2009, 11:50 AM
|
#15
|
|
LQ Veteran
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
|
Quote:
Originally Posted by ratman1
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:17 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|