grub file damaged no linux- no windows - error 22

Asked by Steve Sammons

version 8.10 never asked about importing my windows files. I need them. Following written instructions I opened Windows clicked on remove programs and deleted 8.10. I inserted a CD of version 8.04. It loaded and asked to migrate my file. OH JOY! After the install I tried to reboot and gor error 22. NO Windows, no 8.04! WOE! The grub program seems to be damaged . The command grub> find/boot/grub/stage1 returns the message: no grub directory. Since I'm running from a CD due to the error 22 message the command mkdir also doesn't work. How do I get windows back? How do I repair grub? If I can get back to windows I should be able to download Super Grub and run it from windows. Is this the way to fix grub? How bo I get windows back? I have diabetes software there that I need to use.
A heart felt thanks for your taking the time and sharing your knowledge to fiz this problem!
Steve

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Solved by:
Wyatt Smith
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Please start you pc from Ubuntu 8.04 live cd and using a terminal type:

sudo fdisk -l

copy and paste result here...

Thank you

Revision history for this message
Nicolas DERIVE (kalon33) said :
#2

Hello steve,

Did you try the "repair a broken system" feature from the alternate cd ? It has an option to reinstall grub.

you can find the appropriate cd image here :

http://releases.ubuntu.com/hardy/ubuntu-8.04.1-alternate-i386.iso (for the 8.04 one)

http://releases.ubuntu.com/intrepid/ubuntu-8.10-alternate-i386.iso (for the 8.10 one)

Hope that it helps you.

--kalon33

Revision history for this message
Steve Sammons (2fallible) said :
#3

Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda (for the first IDE disk)
  or: fdisk /dev/sdc (for the third SCSI disk)
  or: fdisk /dev/eda (for the first PS/2 ESDI drive)
  or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices)
  ...
ubuntu@ubuntu:~$

Hi marcobra,
Here is the information you requested.

Revision history for this message
Steve Sammons (2fallible) said :
#4

 to do that using ethernetHi Nicolas,

I am downloading the file you suggested. It will take 90 minutes to complete the download. THANK YOU!

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

But may be your hard disk is ok so please copy and paste the result of

sudo fdisk -l

fdisk -l is the lower of FDISK -L

before go on...

Thank you

Revision history for this message
Steve Sammons (2fallible) said :
#6

Nicolas, here is the information you asked for:

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4d3c4d3b

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 8363 67175766 7 HPFS/NTFS
/dev/sda2 8365 9598 9912105 c W95 FAT32 (LBA)
/dev/sda3 9599 9729 1052257+ d7 Unknown

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30e630e5

   Device Boot Start End Blocks Id System
/dev/sdb1 1 4815 38676456 7 HPFS/NTFS
/dev/sdb2 4816 9729 39471705 5 Extended
/dev/sdb5 4816 9522 37808946 83 Linux
/dev/sdb6 9523 9729 1662696 82 Linux swap / Solaris
ubuntu@ubuntu:~$

Revision history for this message
Steve Sammons (2fallible) said :
#7

Nicolas,

I installed Ubuntu on my second internalhard drive as youcan see by noting sdb. I hope this bit if information helps.

Steve

Revision history for this message
Steve Sammons (2fallible) said :
#8

Oh my1 I got your names mixxed up (how stupid) and sent the replies to the wrong places. I hope you can see my posts and that you will forgive the name errors.

Embarrased, Steve

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#9
Revision history for this message
Steve Sammons (2fallible) said :
#10

Yes, the returned message was that the grub file was not found. I tried that set ifinstructions a few times hoping I had made an entry error,=. I just tried again. No luck.

Revision history for this message
Steve Sammons (2fallible) said :
#11

Nicolas,
After I down load the file do I need to burn a DVD?

Revision history for this message
Steve Sammons (2fallible) said :
#12

Nicolas,

I just got a message saying the file was too large to add to my memory. I guess I have to burn it to a CD.

Revision history for this message
Steve Sammons (2fallible) said :
#13

Marcobra,

I need to leave for a short time. I'll be back... :-)

Revision history for this message
Nicolas DERIVE (kalon33) said :
#14

Yes Steve, it's a CD image, to be burned on a cd, and then to boot like a live-cd, and then choose "repair broken system" (or recover, something like this, I forgot the exact english message) and after a loading phase, you should be able to reinstall a grub.

Revision history for this message
Steve Sammons (2fallible) said :
#15

Nicolas,

The file is too large to download. I have tried more than once. How
do I get the file to burn a CD IOs image?

I appreciate your input.

Steve

On 11/13/08, Nicolas DERIVE <email address hidden> wrote:
> Your question #51257 on grub in ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+source/grub/+question/51257
>
> Status: Open => Answered
>
> Nicolas DERIVE proposed the following answer:
> Yes Steve, it's a CD image, to be burned on a cd, and then to boot like
> a live-cd, and then choose "repair broken system" (or recover, something
> like this, I forgot the exact english message) and after a loading
> phase, you should be able to reinstall a grub.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.edge.launchpad.net/ubuntu/+source/grub/+question/51257/+confirm?answer_id=13
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.edge.launchpad.net/ubuntu/+source/grub/+question/51257
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Best Wyatt Smith (wyatt-smith) said :
#16

You can try to manually recreate you grub directory.

From the LiveCD mount your hard drive and change root

ubuntu@ubuntu:~$ sudo mkdir /mnt/root
ubuntu@ubuntu:~$ sudo mount -t ext3 /dev/sdb5 /mnt/root
ubuntu@ubuntu:~$ sudo mount -t proc none /mnt/root/proc
ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/root/dev
ubuntu@ubuntu:~$ sudo chroot /mnt/root bin/bash

Now create you grub directory and copy all the need files to it

root@ubuntu:/# sudo mkdir /boot/grub
root@ubuntu:/# sudo cp cp /usr/lib/grub/i386-pc/* /boot/grub/

To reinstall grub

root@ubuntu:/# sudo grub
grub > find /boot/grub/stage1

This should return (hd1,4), if it does then you can

grub > root (hd1,4)
grub > setup (hd0)
grub > quit

Hope this helps

Revision history for this message
Wyatt Smith (wyatt-smith) said :
#17

You should also edit your grub menu.lst file to make sure the ubuntu entries are pointing to the correct partition. From the terminal

gksudo gedit /boot/grub/menu.lst

Find this section

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

Change the last line and make sure it is

# groot=(hd1,4)

Save and exit. Then type this in the terminal

sudo update-grub

Revision history for this message
Steve Sammons (2fallible) said :
#18

Hi Wyatt,

I did some more research and found Auto Super Grub Disk. I followed their
instructions and all is well. I hope you never have this problem!

Thank you for your efforts.[?]

On Fri, Nov 14, 2008 at 9:47 AM, Wyatt Smith <
<email address hidden>> wrote:

> Your question #51257 on grub in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/grub/+question/51257
>
> Wyatt Smith proposed the following answer:
> You should also edit your grub menu.lst file to make sure the ubuntu
> entries are pointing to the correct partition. From the terminal
>
> gksudo gedit /boot/grub/menu.lst
>
> Find this section
>
> ## default grub root device
> ## e.g. groot=(hd0,0)
> # groot=(hd0,0)
>
> Change the last line and make sure it is
>
> # groot=(hd1,4)
>
> Save and exit. Then type this in the terminal
>
> sudo update-grub
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/grub/+question/51257/+confirm?answer_id=16
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/grub/+question/51257
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Steve Sammons (2fallible) said :
#19

Thanks for your help. I used Auto Super Grub Disk. It fixed my problems. I recommend the program.

Steve

Revision history for this message
david johnson (daedsiluap) said :
#20

Hi guys, I am recieving an ERROR 22 message as well, my copy of Auto Super Grub does not load and I can not get to the terminal . When I click the above link for the Alternate disk image for Hardy 8.04 I reveive 404 invalid address message. A further complication is that I do not have the LiveDisk, my original copy came from a down load when I had MS windows and the system rejects it now.

What do I do now? and/or how do I get back to the terminal?

you may contact me directly by email at <email address hidden>

thank you, david

Revision history for this message
Steve Sammons (2fallible) said :
#21

David,

If you have a flash drive attached I suggest you dismount it.

Take a look at your BIOS settings. You may need to rearrange the order of
places it looks for the Master Boot Record / GRUB

Try to boot from your Ubuntu disk. You may need to buy one at a book store
or download a new one on another computer.

Visit hermanzone and see if there is an answer for you there.

I hope this helps!

Steve

On Mon, Feb 16, 2009 at 4:01 AM, david johnson <
<email address hidden>> wrote:

> Your question #51257 on grub in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/grub/+question/51257
>
> david johnson posted a new comment:
> Hi guys, I am recieving an ERROR 22 message as well, my copy of Auto
> Super Grub does not load and I can not get to the terminal . When I
> click the above link for the Alternate disk image for Hardy 8.04 I
> reveive 404 invalid address message. A further complication is that I do
> not have the LiveDisk, my original copy came from a down load when I had
> MS windows and the system rejects it now.
>
> What do I do now? and/or how do I get back to the terminal?
>
> you may contact me directly by email at <email address hidden>
>
> thank you, david
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
david johnson (daedsiluap) said :
#22

Thanks Steve,

There is no flash drive connected. I can not get past the ERROR 22 screen. How can I check the BIOS, is there a way to get inside to do this? I will try to get a new copy of Ubuntu in the mean time. Please keep the info coming,it does help and I need all the help that I can get. david

Revision history for this message
david johnson (daedsiluap) said :
#23

Problem under control.

Thank you Steve,

Herman Zone has an excellent explination of what to do and not to do when playing around with MBR/BIOS. Your suggestion saved me a lot of time and frustration. I reccommend to Hermanzone to anyone who does not fully understand the function and purpose of MBR or the proper use of such powerful programming as Get Parted Live. It is very easy to make a very big mistake.

Again, thank you Steve, david

Revision history for this message
david johnson (daedsiluap) said :
#24

Problem under control.
Thank you Steve,
Herman Zone has an excellent explination of what to do and not to do when playing around with MBR/BIOS. Your suggestion saved me a lot of time and frustration. I reccommend to Hermanzone to anyone who does not fully understand the function and purpose of MBR or the proper use of such powerful programming as Get Parted Live. It is very easy to make a very big mistake.
Again, thank you Steve,   david

________________________________
From: Steve Sammons <email address hidden>
To: <email address hidden>
Sent: Monday, February 16, 2009 7:03:43 PM
Subject: Re: [Question #51257]: grub file damaged no linux- no windows - error 22

Question #51257 on grub in ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/grub/+question/51257

Steve Sammons posted a new comment:
David,

If you have a flash drive attached I suggest you dismount it.

Take a look at your BIOS settings.  You may need to rearrange the order of
places it looks for the Master Boot Record / GRUB

Try to boot from your Ubuntu disk.  You may need to buy one at a book store
or download a new one on another computer.

Visit hermanzone and see if there is an answer for you there.

I hope this helps!

Steve

On Mon, Feb 16, 2009 at 4:01 AM, david johnson <
<email address hidden>> wrote:

> Your question #51257 on grub in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/grub/+question/51257
>
> david johnson posted a new comment:
> Hi guys, I am recieving an ERROR 22 message as well, my copy of Auto
> Super Grub does not load and I can not get to the terminal ..  When I
> click the above link for the Alternate disk image for Hardy 8.04 I
> reveive 404 invalid address message. A further complication is that I do
> not have the LiveDisk, my original copy came from a down load when I had
> MS windows and the system rejects it now.
>
> What do I do now? and/or how do I get back to the terminal?
>
> you may contact me directly by email at  <email address hidden>
>
> thank you,  david
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

--
You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Steve Sammons (2fallible) said :
#25

David,

I'm glad I could help you. It is frustrating to find things don't work as
you expected them to.

Steve

On Tue, Feb 17, 2009 at 1:36 AM, david johnson <
<email address hidden>> wrote:

> Your question #51257 on grub in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/grub/+question/51257
>
> david johnson posted a new comment:
> Problem under control.
> Thank you Steve,
> Herman Zone has an excellent explination of what to do and not to do when
> playing around with MBR/BIOS. Your suggestion saved me a lot of time and
> frustration. I reccommend to Hermanzone to anyone who does not fully
> understand the function and purpose of MBR or the proper use of such
> powerful programming as Get Parted Live. It is very easy to make a very big
> mistake.
> Again, thank you Steve, david
>
>
>
> ________________________________
> From: Steve Sammons <email address hidden>
> To: <email address hidden>
> Sent: Monday, February 16, 2009 7:03:43 PM
> Subject: Re: [Question #51257]: grub file damaged no linux- no windows -
> error 22
>
> Question #51257 on grub in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/grub/+question/51257
>
> Steve Sammons posted a new comment:
> David,
>
> If you have a flash drive attached I suggest you dismount it.
>
> Take a look at your BIOS settings. You may need to rearrange the order of
> places it looks for the Master Boot Record / GRUB
>
> Try to boot from your Ubuntu disk. You may need to buy one at a book store
> or download a new one on another computer.
>
> Visit hermanzone and see if there is an answer for you there.
>
> I hope this helps!
>
> Steve
>
> On Mon, Feb 16, 2009 at 4:01 AM, david johnson <
> <email address hidden>> wrote:
>
> > Your question #51257 on grub in ubuntu changed:
> > https://answers.launchpad.net/ubuntu/+source/grub/+question/51257
> >
> > david johnson posted a new comment:
> > Hi guys, I am recieving an ERROR 22 message as well, my copy of Auto
> > Super Grub does not load and I can not get to the terminal .. When I
> > click the above link for the Alternate disk image for Hardy 8.04 I
> > reveive 404 invalid address message. A further complication is that I do
> > not have the LiveDisk, my original copy came from a down load when I had
> > MS windows and the system rejects it now.
> >
> > What do I do now? and/or how do I get back to the terminal?
> >
> > you may contact me directly by email at <email address hidden>
> >
> > thank you, david
> >
> > --
> > You received this question notification because you are a direct
> > subscriber of the question.
> >
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>
> You received this question notification because you are a direct
> subscriber of the question.
>