Grub 21 error - Have tried many things already with no success :(
UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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:
/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)
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.
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.
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 ?
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.