LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Grub Error 22, deleted partition (https://www.linuxquestions.org/questions/linux-newbie-8/grub-error-22-deleted-partition-377590/)

kmorsch 10-27-2005 08:48 PM

Grub Error 22, deleted partition
 
Hi, I am new to Linux and I have a big problem already.

My friend installed Knoppix on my hard drive as a partition. I thought he was only giving me the Live CD to try out so when I found out it was installed I deleted the partition through windows xp computer management>disk management feature. If something is going to be installed I didn't want knoppix.

When I restarted the computer, I get the Dell Logo followed by

GRUB Loading Stage 1.5

GRUB Loading, Please wait...
ERROR 22

Other times it will say Floppy diskette seek failure, press F1, and then when you press that, you get the GRUB Error.

Dell support cannot help me, I know nothing about Linux. I have a windows reinstallation disk, but it will not recognize it on boot even though I change the boot sequence for cd rom to be 1st.

I don't know where else to turn, please help!

I understand that I must someone get a windows boot disk and type fixmbr or something, but I am not that well versed in computers. I need further instruction.

titanium_geek 10-27-2005 09:24 PM

Hello and Welcome to LQ!

Sorry you had such a negative experience with Linux- I hope you won't be prejudiced against it in the future. :)

Ok- down to business:
You need to get into a windows rescue mode type thing. You can do this with a windows bootdisk, (floppy or cd) you just need to go into the bios and change the boot order to be the floppy/cd first (even take away the hdd as a boot option so it is forced to try hard on the floppy/cd)

then, when you are into windows and get to a commandline, type fixmbr. that should be it.

titanium_geek

syg00 10-27-2005 09:31 PM

Re: Grub Error 22, deleted partition
 
Quote:

Originally posted by kmorsch
... so when I found out it was installed I deleted the partition
Doesn't always pay to be too rash.
Quote:

... I know nothing about Linux. I have a windows reinstallation disk, but it will not recognize it on boot even though I change the boot sequence for cd rom to be 1st.
What messages do you get - only the grub messages ???.
Do you still have the Knoppix CD, or some other Linux LiveCD ???. If so we can use that to diagnose your situation.

titanium_geek 10-27-2005 09:35 PM

if you can't get into windows, a possible solution would be to fix grub using a liveCD (such as knoppix) and use that to boot to windows- we are linux whizzes here, I'm afraid, not windows whizzes. That wouldn't be that bad.

http://www.gnu.org/software/grub/man...1_002e5-errors

http://www.google.com/search?hl=en&q...=Google+Search

titanium_geek

syg00 10-27-2005 09:47 PM

Quote:

Originally posted by titanium_geek
... we are linux whizzes here, I'm afraid, not windows whizzes.
Speak for yourself !!! ... :p
A Linux install had unintended consequences - we'll get it sorted.

titanium_geek 10-27-2005 09:50 PM

Meaning we are more partial to linux solutions... not that we are TOTALLY clueless about windows. :D

seriously- what possesed you to DELETE the partition? it's not like its a virus or something.

titanium_geek

kmorsch 10-27-2005 11:28 PM

I deleted it because I wanted a different distro of linux on it and I didn't know how else to get it off =(
I don't have the knoppix disc anymore, I only have some live ubuntu cds. I changed the settings in bios. it simply won't boot from any sort of disc. Dell support are the dumbest people in the universe, i feel like i will never get my computer back.

kmorsch 10-27-2005 11:30 PM

also, does anyone know where i can get a windows bootdisk, besides making one because it sounds hard a time consuming. and does a bootdisk actually work, since its not booting from cdrom?

syg00 10-27-2005 11:33 PM

Not booting any CD is a different problem.
Try rebooting, and while the "Dell" splash screen is displayed hit the "one time boot menu" key - on mine it's F12.
You should be able to select the CD from there.
When you get Ubuntu up, issue the following from a terminal (aka command) screen
Code:

fdisk -l
(that's ell as in list), and post the output back here.

titanium_geek 10-28-2005 08:24 AM

Grin. Don't worry, we all do stupid stuff on our linux boxes (Dont even ASK how many I have killed. :( )

For future reference: don't "delete partition" but leave it where it is, you can install the linux you want over the top of it.

Tell Dell that you can't boot ANYTHING from the CD drive. Are you (or someone you know) able to put another CD drive in? or connect a USB (etc) CD drive? I had problems booting from one of my CD drives, the fix was to boot from another one (but I had to use the first one to read from after the boot)

titanium_geek

mono-factor 12-21-2008 12:45 PM

Im prety stupid
 
i just did the same thing as the other guy there, and now i cant do anything because of my error2.
But i can use my Knopix CD.
Can anyone help me please?

sudo fdisk -l

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

Device Boot Start End Blocks Id System
/dev/hda1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/hda2 3825 3881 457852+ 7 HPFS/NTFS
/dev/hda3 3882 4726 6787462+ 7 HPFS/NTFS
/dev/hda4 4727 9729 40186597+ 5 Extended

Disk /dev/sda: 20.0 GB, 20003880960 bytes
255 heads, 63 sectors/track, 2432 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2431 19526976 7 HPFS/NTFS

CJS 12-21-2008 12:58 PM

Mono-factor, are you getting a Grub error 2, or a Grub error 22 like the OP of this thread? Do you get your Grub error before seeing a Grub menu, or after you get the Grub menu and select an OS to boot? Also, your fdisk output does not show any linux partitions. Are you using something like Wubi to install Linux inside of Windows? Please provide more information about your problem.

Drakeo 12-21-2008 02:09 PM

put the live dis in open a terminal type sudo fdisk mbr then password then reboot windows. if it does not reboot to window burn this iso http://forjamari.linex.org/frs/downl...isk_0.9774.iso
some how and put it in and reboot your windows. this is the linux way of fixing windoze. because know one ever builds emergency boot disk. that is a windows product and i stay away from it.

yancek 12-21-2008 02:16 PM

Quote:

also, does anyone know where i can get a windows bootdisk
http://www.bootdisk.com/

When you get this working, download a copy of SuperGrubDisk for future use.

upchucky 12-21-2008 05:57 PM

yes, actually advanced supergrub is the one you want, it can fix win and linux boot mbr, the advanced part is that it has a few more bells and whistles that do not assume you know what you are doing.

anytime there is work done with partitions there is always a risk in messing up the partitions and mbr, but it is easily repaired if patience and a cool head is kept.

if you can get the knoppix live cd again it is a very valuable tool used to fix broken windows and linux

mono-factor 12-22-2008 06:27 AM

Sorry for my typo, it is error 22, i get this errro before the grub menu appears.
what i did was deleat my ubuntu partiotn from computer management (being stupid i didint think of the grub i installed) and now when i turn on my computer i get a error when grub try to find any partions.

Does anyone know if install grub again would it fix the problem?
because i am newb to linux.
plus on the other side why is ubuntu so badddd, i rather have knopix insttalled on my harddrive if it was possibile.

CJS 12-22-2008 06:37 AM

Since you deleted Ubuntu, I assume you only have Windows on that HDD? If so, you can restore a Windows MBR by booting the Windows XP Install CD, go to the "recovery console" and run:
Code:

fixmbr
Or if you have a Vista Install CD, do:
Code:

bootrec /fixmbr
Or if you don't have either of those CDs, you can do it from the Ubuntu Live CD by doing:
Code:

sudo lilo -M  /dev/sda mbr
That will install a Windows equivalent MBR to drive sda. Let me know how it goes.

mono-factor 12-22-2008 06:56 AM

do you know any good linux OS that light-weight like knopix?

and thanx im gonna try that out.
can i do this from anyother live cd?

CJS 12-22-2008 07:13 AM

Quote:

Originally Posted by mono-factor (Post 3383835)
do you know any good linux OS that light-weight like knopix?

Well it depends just how light-weight you want the distro to be. :) If you want a super light-weight distro, you could look at Puppy Linux or Damn Small Linux.
Quote:

Originally Posted by mono-factor (Post 3383835)
and thanx im gonna try that out.
can i do this from anyother live cd?

You can do that lilo command from another Live CD if Lilo comes with the Live CD; if the Live CD doesn't have Lilo but you have internet access from that Live CD, you can install the Lilo package first and then run the command.

mono-factor 12-22-2008 07:44 AM

Hi did wha you told me, i think i have that lilo thing since it didnt state it is a unreconisable command (im sorry for my stupidity T_T); i did that command and it didnt work.

I do want a linux OS, do you think if i installed disro it may solve the problem or should i install another grub?

how is kubuntu, is that realativly heavy?

(i bet you know im a window user ^_^)

CJS 12-22-2008 07:53 AM

I would go ahead and install another distro since you plan on doing that anyway, and the distro should install its own boot loader. What happened after you ran the lilo command and rebooted? Still the same Grub error?

mono-factor 12-22-2008 08:13 AM

Yeah still got that same error

But im still thankfull for your help ^_^

this may sound stupid but can you show me where to find one with no broken links please?

CJS 12-22-2008 08:17 AM

What do you mean broken links? What links are you referring to?

dspurlock 05-07-2009 08:04 AM

I recently had the same problem. Duel booted windows and linux, deleted the partiton, hen got the same grub error 22 and couldnet boot. Tried a bunch of stuff from the forums, when that dident work just started trying stuff, Heres what I did to fix it. Boot from a windows boot disk (you may need to configure the BIOs to boot from cd rom first) then enter the windows recovery console. In the commad prompt just type fixboot (add a drive letter if needed ex fixboot E:, I dident have to though since it booted from my C: drive). This will create a new partition boot sector. It will ask are you sure, say yes and tada thats should do it. hope this helps

monsm 05-07-2009 08:48 AM

As titanium_geek said in the first reply, you should be able to change the boot order so that you can boot from cd/dvd.

When you start the machine you should see a brief prompt to press F1 or Del or something similar to enter setup.
This is the bios setup. Use the arrow keys and look for a menu that specify the boot options. You will be able to set the machine to boot from CD or DVD first, then harddrive in there.

Once thats done you can put in the Ubuntu DVD (the 9.04 is getting some great reviews). Install that in the space where you deleted knoppix. The ubuntu DVD will re-install grub and give you an option to boot windows as well.

Mons

kevin63661 06-26-2009 09:39 PM

Tutorial
 
http://www.youtube.com/watch?v=OSQqyIvIMwY

pixellany 06-27-2009 03:29 AM

Two problems:

1. That video does not seem relevant to the discussion in this thread---and the author speaks so poorly it is very hard to understand.

2. You are reviving an old thread.

Jarke 07-07-2009 10:11 AM

I was having this problem too. Seeing as Linux found a way to screw me over, even after being deleted, I thought to myself, "This is probably the most kick ass OS ever," so I reinstalled it, and what do you know? Problem solved. Linux saves computer...again. In any case, just get a boot disk of whatever distro you want and install it again the same way you did the first time. You might need to open the boot menu when your computer starts up (mash f12 at the Dell logo) and scroll to the second option, boot from optical drive I believe it is. Hope this helped.

vap16oct1984 07-07-2009 11:07 AM

Ohh forget all these ... take windows cd and reinstall the Windows operating system. While new installation make sure don't delete your data choose the partition accordingly.

I am saying this as you are not comfortable with linux so handle this situation in which you are best. So resolve the issue with Windows.

Thanks a lot

pixellany 07-09-2009 01:20 AM

Old thread, last reply not helpful, OP long gone.....

Yep---time to close.


All times are GMT -5. The time now is 01:05 AM.