LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-27-2009, 09:40 PM   #1
killpotts
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Rep: Reputation: 0
Unhappy Grub 21 error - Have tried many things already with no success :(


Hello All, I have been trying to install Ubuntu 8.10 and I am currently typing this using the live CD. I have Windows XP already installed ( but now I can't boot to it because of, well, this error. )with one internal HD and 2 external USB HD's

Basically, whenever my computer boots up it goes to a black screen that states "loading grub...Error 21" and then freezes. The
only way out is to Ctrl+alt+delete to restart. I cannot boot either Linux or XP. The only way for me to do anything is to boot from the Ubuntu CD, which is what I have done now. I unfortunately do not have an XP boot CD.

I have tried changing the boot order to no avail. Also, my bios does not have an option in it to make any changes to Master/slave relationships.

I have been looking around the internet for ways to fix this and I have found Grub error 21 being fixed by a multitude of ways. All of them either did not work for me, or the solution were far to ridden with linux terms I am not yet familiar enough with to understand.


One thing I did find was a script for providing some info that should help those of you who understand it to help me figure out what I need to do. boot_info_script27.sh

Here are the results:

============================= Boot Info Summary: ==============================

=> Grub0.97 is installed in the MBR of /dev/sda and looks on boot drive #3 in
partition #5 for /boot/grub/stage2 and /boot/grub/menu.lst.
=> No boot loader is installed in the MBR of /dev/sdc

sda1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

sda2: __________________________________________________ _______________________

File system: vfat
Boot sector type: Windows XP: Fat32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sdc1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x3c9e3c9d

Partition Boot Start End Size Id System

/dev/sda1 * 12,305,790 156,296,384 143,990,595 7 HPFS/NTFS
/dev/sda2 63 12,305,789 12,305,727 b W95 FAT32


Drive: sdc ___________________ __________________________________________________ ___

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xa4b57300

Partition Boot Start End Size Id System

/dev/sdc1 63 976,768,064 976,768,002 7 HPFS/NTFS


blkid -c /dev/null: __________________________________________________ __________

/dev/sda1: UUID="44BC7723BC770F24" TYPE="ntfs"
/dev/sda2: UUID="8C13-DAE3" TYPE="vfat"
/dev/sdc1: UUID="64148EEC148EC092" LABEL="ALPHA MEH" TYPE="ntfs"
/dev/loop0: TYPE="squashfs"

=============================== "mount" output: ===============================

/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /lib/modules/2.6.27-7-generic/volatile type tmpfs (rw,mode=0755)
tmpfs on /lib/modules/2.6.27-7-generic/volatile type tmpfs (rw,mode=0755)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
rootfs on / type rootfs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/scd0 on /cdrom type iso9660 (ro,noatime)
/dev/loop0 on /rofs type squashfs (ro,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/ubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ubuntu)
/dev/sdc1 on /media/ALPHA MEH type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)


================================ sda1/boot.ini: ================================

[boot loader]

timeout=30

default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Micro soft Windows XP Professional" /noexecute=optin /fastdetect
 
Old 02-27-2009, 09:59 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
That RESULTS.txt file should have more data in it - is that all of it ?.
Does your BIOS support USB booting ?.
 
Old 02-27-2009, 10:31 PM   #3
killpotts
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Thats all that the results.txt came with... I tried it again and it was no different.

And yes, my BIOS does have an option to boot from USB. I have already tried it with the external HD's attached and it had no effect. I am not sure if it actually works.
 
Old 02-27-2009, 11:26 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
That says to me you are not even seeing that other USB disk. Must have at some point though, because of this
Quote:
=> Grub0.97 is installed in the MBR of /dev/sda and looks on boot drive #3 in
partition #5 for /boot/grub/stage2 and /boot/grub/menu.lst.
Used to be that you could get ms-sys from the Ubuntu repos so you could fix a Windoze MBR; even from the liveCD. That has been pulled because of license concerns.
Knoppix used to have something similar (mbrfix), and grubsuperdisk probably will as well.
If you can get hold of a mates XP or W2k CD, boot that, and get into recovery console. Then run fixmbr - that will get you back into XP at least.
 
Old 03-01-2009, 03:09 AM   #5
killpotts
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Original Poster
Rep: Reputation: 0
OK, I managed to get windows back, but now I am having a new problem. It seems the installer at step 4 won't notice any drives...is it even possible to create a partition on an external HD using its free space without harming the space already taken up ?
 
Old 03-01-2009, 09:26 AM   #6
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Quote:
Originally Posted by killpotts View Post
OK, I managed to get windows back, but now I am having a new problem. It seems the installer at step 4 won't notice any drives...is it even possible to create a partition on an external HD using its free space without harming the space already taken up ?
You're making what should be reasonably easy(installing Ubuntu), into an absolute nightmare. Is there some reason you just don't want to install like 99% of the rest of us? Back up your data to the external drives, partition the internal drive, install Linux on the internal drive, and all will be fine.

I've never really understood people trying to install to an external device.. maybe I'm just weird.

IGF
 
Old 03-01-2009, 11:52 AM   #7
killpotts
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Original Poster
Rep: Reputation: 0
My internal HD is on its last legs, and it will be a while before I can get a new one due to the model. My plan is to have ubuntu on an external drive and boot to USB for a while.
 
Old 03-01-2009, 02:16 PM   #8
Dutch72
Member
 
Registered: Jun 2008
Location: Rotterdam
Distribution: Ubuntu
Posts: 31

Rep: Reputation: 17
Off Topic:

Quote:
Originally Posted by IndyGunFreak View Post
I've never really understood people trying to install to an external device.. maybe I'm just weird.

IGF
I am trying to do this for a good reason:

I have 2 PC's and a laptop at home and a work laptop.
I also need to do maintenance for my parents, my in-laws, my sister, my neighbors etc etc.

My dream is to have a "portable PC" (similar to portable apps) which will run on any hardware through my USB stick. I can then have all my files, my utils, my bookmarks with me at all times.

A 16GB USB Stick for 20 Euros should suffice...

Dutch
 
Old 03-01-2009, 03:40 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I don't see that wanting/needing to install to USB external media is unreasonable. The problem is that the GUI installers don't necessarily allow for "unusual" cases.
Because of this I haven't used the Ububtu "normal" install disk for years - I prefer the "alternate" disk in that it gives better control of install options. You might want to try that. May still not give you the flexibility to pick which MBR you want to install to - can't remember. When in doubt I always install into the boot sector of a partition (either / or /boot), then fix it later.
 
Old 03-01-2009, 07:27 PM   #10
killpotts
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Original Poster
Rep: Reputation: 0
I found this guide, but I believe its for 7.x

http://ubuntukids.org/blog/?p=69

Anyone know if its still possible to manually redirect where Grub points to like this on 8.10 ?
 
  


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
Partial Success Installing, Grub Error 2 BobNutfield Slackware 30 05-21-2008 05:47 PM
Grub Help --Adding more things to boot to timrs Linux - General 12 07-24-2006 12:43 PM
dualboot grub chainloading copy and paste no success amarillo Linux - Distributions 4 02-23-2005 08:52 PM
Success w/ Grub but... Outabux Debian 0 11-21-2004 03:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:40 AM.

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