LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 09-12-2009, 08:32 AM   #1
sarick22
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Rep: Reputation: 0
Grub error 22 on netbook(no cd drive)


i "tried" booting ubuntu from usb but i messed around with partition and now i get the error 22...and i somehow messed up the usb as well and now i cant boot linux too. anyway before i write wall of text i will try to make it clear what my problem is and what i tried to do.

problem:
1.booting up with no usb(booting to windows)
grub error 22

2.booting up with usb(trying to boot to linux)
on screen it says "boot:" i used UNetbootin. i was able to boot to linux until i messed around with partition even more...

my "solution"
after searching on google i read that i should make freedos boot on usb and enter fixmbr or fdsk /mbr because mbr need to reset or something... so i got freedos on usb and booted it. after booting it asked me for date and time and i get "C:\>". when i type something it says "bad command or filename -"

so my question is is there any other alternative way of fixing it? or what is wrong with my solution?

thanks for help!
 
Old 09-12-2009, 09:54 AM   #2
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 217

Rep: Reputation: 46
When you try to boot the computer, do you get the grub menu at all? If you do, then you can try the grub commandline.

http://linuxbasics.org/tutorials/adv...b_command_line

You say you messed with the partitions. Did you delete something? What did you use to mess with the partitions?

You say you are using UNetbootin - what have you put on it? It looks like it is designed to put a distro or something like Super Grub on it.
 
Old 09-12-2009, 10:03 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Which version of windows do you have?
Did you have it installed and working before trying to install (which distribution of) Linux?
What did you do with the partitions?
The solution you tried is to put windows in the master boot record and would not help boot Linux without several more steps.
 
Old 09-12-2009, 10:23 AM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
My guess when the USB Linux was installed the boot loader was accidentally installed in the MBR of the internal hard disk where the MS Windows resides.

Freedos "fdisk" fixes only the older systems up to Xp. Vista and Win7 requires a different cure.

When using the Freedos one should check first if the fdisk.exe is inside in the C:\. The error obviously telling the user the requested command isn't inside C:\ or it cannot be used. The other possibility of the error is the fdisk command may try to repair the MBR in the c:\ drive but this is a USB device that a Dos by default does not support as a booting medium. This problem can be overcome by putting the Freedos on a floppy or a CD.
 
Old 09-12-2009, 12:06 PM   #5
sarick22
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Original Poster
Rep: Reputation: 0
thank you guys for the replies!

Quote:
Originally Posted by ajlewis2 View Post
When you try to boot the computer, do you get the grub menu at all?
Did you delete something? What did you use to mess with the partitions?
You say you are using UNetbootin - what have you put on it?
no there is no grub menu. when i try to boot linux (eeebuntu distro) from usb i get "boot:" thats all. to be more exact it says
"SYSLINUX 3.63 Debian-2008-07-15 EBIOS Copyright (c) 1994-2008 H. Peter Anvin

Bootcursor here)"
when i type something it says "Could not find kernel imagewhat i type)"
and then after few secs the screen turns grey which is suppose to be unetbootin menu but without the menu. i cant do anything.
On USB i installed EEEbuntu with Unetbootin. I tried to delete my previous linux partition with Gparted and then try to merge it to winxp but screen froze so i restarted by taking out the battery...then my partition that i was merging to got deleted/corrupted. whenever i try to use Gparted my laptop froze and after few times i started getting the error.

Quote:
Originally Posted by yancek View Post
Which version of windows do you have?
Did you have it installed and working before trying to install (which distribution of) Linux?
What did you do with the partitions?
I have Windows XP and yes, it was installed on my laptop and i was trying to boot LInux from USB because i did not want to dual boot. i use EEEbuntu.

Quote:
Originally Posted by saikee View Post
My guess when the USB Linux was installed the boot loader was accidentally installed in the MBR of the internal hard disk where the MS Windows resides.

Freedos "fdisk" fixes only the older systems up to Xp. Vista and Win7 requires a different cure.

When using the Freedos one should check first if the fdisk.exe is inside in the C:\. The error obviously telling the user the requested command isn't inside C:\ or it cannot be used. The other possibility of the error is the fdisk command may try to repair the MBR in the c:\ drive but this is a USB device that a Dos by default does not support as a booting medium. This problem can be overcome by putting the Freedos on a floppy or a CD.
hmm maybe i messed up installing freedos from USB. FYI, i used http://www.bensbits.com/2007/08/21/b...sb_flash_drive guide. im a newbie so maybe i didnt do it right. i dont have internal cd drive on my laptop so my last resort is buy an external drive...but im so poor >.> college textbook ate all my money -.-
 
Old 09-12-2009, 12:55 PM   #6
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 217

Rep: Reputation: 46
Quote:
Originally Posted by sarick22 View Post
thank you guys for the replies!


no there is no grub menu. when i try to boot linux (eeebuntu distro) from usb i get "boot:" thats all. to be more exact it says
"SYSLINUX 3.63 Debian-2008-07-15 EBIOS Copyright (c) 1994-2008 H. Peter Anvin

Bootcursor here)"
when i type something it says "Could not find kernel imagewhat i type)"
and then after few secs the screen turns grey which is suppose to be unetbootin menu but without the menu. i cant do anything.
Usually when it says "boot" you just press ENTER key and it boots. You should not type anything.

Last edited by ajlewis2; 09-12-2009 at 12:56 PM.
 
Old 09-12-2009, 01:36 PM   #7
sarick22
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ajlewis2 View Post
Usually when it says "boot" you just press ENTER key and it boots. You should not type anything.
it says "boot: " and when i hit enter i just get another boot: l dont know how that frown face got there... but anyway, i put supergrubdisk on usb using unetbootin and try to boot it. i see the menu but i cant seem to click on any. i hit enter but nothing happens.
 
Old 09-12-2009, 02:22 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Are you not able to boot from your hard disk with xp?
Are you not able to boot from whichever distro of Linux you installed on the USB?
Do you have a Linux Live CD and a CD drive?
I don't think FreeDOS is the best way to go, can you download SuperGrubDisk and try that?
It seems you don't have the stage1 Grub file in mbr of USB as noted in an earlier post. Do you remember where you installed Grub?

If you can boot any Live CD and run the "fdisk -l" command as root (lower case Letter L) and post it here someone may be able to help with that partition information avaialble.
 
Old 09-12-2009, 03:45 PM   #9
sarick22
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
1.Are you not able to boot from your hard disk with xp?
2.Are you not able to boot from whichever distro of Linux you installed on the USB?
3.Do you have a Linux Live CD and a CD drive?
4.I don't think FreeDOS is the best way to go, can you download SuperGrubDisk and try that?
5.It seems you don't have the stage1 Grub file in mbr of USB as noted in an earlier post. Do you remember where you installed Grub?

If you can boot any Live CD and run the "fdisk -l" command as root (lower case Letter L) and post it here someone may be able to help with that partition information avaialble.
1. Nope. i get the grub error.
2. Nope. i get broken grey screen and when i hit enter i get black screen with "Boot: " on. whenever i type stufff on it it say kernel image not found.
3. nope. no internal drive. i have to buy external one. it will be my last resort....
4. i did try supergrubdisk. read my last post.
5. i dont even know what grub is so i dont know where i installed it.
 
Old 09-12-2009, 04:01 PM   #10
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 217

Rep: Reputation: 46
I had good luck running Ubuntu remix on a usb stick for my netbook. If you get that on the stick, you can boot it and then run 'fdisk -l' to see what partitions you actually have. If you have a partition already made for Linux, you could then install this version on it and it should give you a new grub in the mbr so you can boot windows.

I would suggest that you do not repartition with it, though, because I had a bigger problem than I think you do after repartitioning. I can explain it later, but I don't want to muddy things now. First just let us see what you actually have for partitions, assuming you can get this on your usb stick. Be sure to read the instructions for how to put it on the stick. It is not a simple copy.

http://www.ubuntu.com/GetUbuntu/download-netbook
 
Old 09-12-2009, 04:29 PM   #11
29t88
Member
 
Registered: Jan 2009
Distribution: CentOS 5.3
Posts: 62

Rep: Reputation: 17
Restoring Windows Master Boot records will get rid of grub so you couldnt boot from linux < Only windows. I had a error with this once before.... I restored MBR's Then i created a linux boot disk and in my bios told it to boot from USB Drive, then from there i reinstalled grub.
I know these steps dont explain how to do it, but it kind of explains what to do
 
Old 09-13-2009, 08:17 AM   #12
sarick22
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ajlewis2 View Post
I had good luck running Ubuntu remix on a usb stick for my netbook. If you get that on the stick, you can boot it and then run 'fdisk -l' to see what partitions you actually have. If you have a partition already made for Linux, you could then install this version on it and it should give you a new grub in the mbr so you can boot windows.

I would suggest that you do not repartition with it, though, because I had a bigger problem than I think you do after repartitioning. I can explain it later, but I don't want to muddy things now. First just let us see what you actually have for partitions, assuming you can get this on your usb stick. Be sure to read the instructions for how to put it on the stick. It is not a simple copy.

http://www.ubuntu.com/GetUbuntu/download-netbook
thank you! it worked. i installed unbuntu remix thro usb before but i didnt know that was the solution! but now how do i uninstall ubuntu without getting the grub error again? i want to dual boot windows with different linux distro.
 
Old 09-13-2009, 08:40 AM   #13
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
What other distro's you wanna install?

You boot many distros besdies windows
you can also boot frugal distros from the ubuntu partition too
 
Old 09-13-2009, 09:14 AM   #14
sarick22
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Original Poster
Rep: Reputation: 0
i want to uninstall unbuntu linux. i only want to have windows on my laptop and boot EEEbuntu linux from SD card or USB.
 
Old 09-13-2009, 09:40 AM   #15
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 217

Rep: Reputation: 46
Quote:
Originally Posted by sarick22 View Post
thank you! it worked. i installed unbuntu remix thro usb before but i didnt know that was the solution! but now how do i uninstall ubuntu without getting the grub error again? i want to dual boot windows with different linux distro.
Glad to hear it worked. I'm assuming that you installed it, or are you just running it on the usb stick? To install another distro you need to get something on the usb stick like you did for ubuntu remix. If you installed ubuntu on the hard drive, do not delete that partition or ubuntu just yet.

First, please do 'sudo fdisk -l > partition.txt' (that is an ell, not a one). Then post the partition.txt here so we can see what you are working with.
 
  


Reply

Tags
error, grub, netbook


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
GRUB error on windows-only drive after ubuntu install on separate drive Pappou Linux - Newbie 4 03-22-2009 08:00 PM
Ubuntu on USB drive, XP on main drive. Grub 21 error steste Linux - Newbie 1 12-09-2007 04:10 PM
External Hard Drive GRUB Error magcius Linux - Hardware 4 05-15-2007 07:37 PM
GRUB Error 15 unless bootable CD in drive virshu Fedora 4 11-23-2006 08:11 PM
Grub Error 5 after drive removal stranger777 Linux - Newbie 4 04-09-2006 07:35 PM


All times are GMT -5. The time now is 03:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration