LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-19-2005, 01:09 PM   #1
bzidan
LQ Newbie
 
Registered: Sep 2005
Location: si
Posts: 2

Rep: Reputation: 0
GRUB error 22


I've moved UBUNTU from lap top to another computer.

By my mistake I forgot GRUB installed....

And I've turned linux partition to NFST...
and now at boot GRUB reported :
GRUB Loading stage1.5

Grub Loading....
error 22



Can anyone help me to get off GRUB!!

Have a nice day!
 
Old 09-19-2005, 01:19 PM   #2
cuiq
Member
 
Registered: Aug 2004
Location: Philly
Distribution: Debian Lenny, FreeBSD
Posts: 577

Rep: Reputation: 30
If you have a windows boot disk, use it to get a DOS prompt. At the prompt type

fdisk /mbr

If you have a winxp disk boot up with it and choose Repair Install (I think, someone will correct me if I'm wrong) when you get a prompt type

fdisk /mbr




peace V
 
Old 09-19-2005, 07:30 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Error 22 in Grub is "No such partition"

You can copy a Linux partition from one hdd to another or from one PC to another by various programs but its boot loader can only be transferred by the "dd" command.
 
Old 09-20-2005, 02:45 AM   #4
bzidan
LQ Newbie
 
Registered: Sep 2005
Location: si
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you very much and thank for DELL staff that made 80MB partition for system needs.
Yust boot from xp boot and with dr dos make bootable partition2 and now I have DATA.
Thank you.
hard way to simple solution!!!
 
Old 09-29-2005, 08:07 AM   #5
mugi
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
I`ve got the same probleme, so can you tell me a little bit more detailed, what to do, cause I don`t know very much about computers...
Thank you very much!
 
Old 10-02-2005, 11:54 PM   #6
G.Prasanna
LQ Newbie
 
Registered: Oct 2005
Location: India
Posts: 2

Rep: Reputation: 0
ERROR 22

Hi Everybody,
I have installed Ubuntu and windows 2003 server as well in my PC.
Accidently i formatted the drive where Ubuntu is installed.
During my next boot i noticed a error in the boot screen as "ERROR 22".
I could not able to log into the windows even.
pls do help me to overcome this.
Cheers,
Prasanna
 
Old 10-03-2005, 01:23 AM   #7
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
G.Prasanna, Welcome to the LQ! and mugi, too.

If you can provide more information when you post, it will make easier for the others who like to help you. For example tell us what do you mean by
Quote:
by G.Prasanna "i formatted the drive where Ubuntu is installed"
Did you format a partition, or did you format the whole hard disk, or etc. Tell us what you exactly did.

And what do you mean by
Quote:
by G.Prasanna "During my next boot i noticed a error in the boot screen as "ERROR 22".
I could not able to log into the windows even."
What happend when you tried to boot into Windows. What was shown. Please be more specific about your peoblem description.





Last edited by SkyEye; 10-03-2005 at 01:33 AM.
 
Old 10-03-2005, 06:13 AM   #8
G.Prasanna
LQ Newbie
 
Registered: Oct 2005
Location: India
Posts: 2

Rep: Reputation: 0
Error 22

hi skyeye,
i deleted my partition, from windows disk management utility. when i restarted my computer i noticed the error message "ERROR 22", when initializing GRUB.
Cheers
-Prasanna
 
Old 10-03-2005, 06:27 AM   #9
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
So you deleted your Linux partitions(s) from Windows disk management utility which means now you don't have any Linux installations. If this is the case you'll be able to work just after a MBR re-creation.

See the previous postings too, to see how you could do this by using a DOS or Windows bootable disk (CD or Floppy). If you don't have any try using something like FreeDOS boot disk. Or if you have a Knoppix CD I guess you can do it by it too.
 
Old 10-03-2005, 09:48 AM   #10
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally posted by saikee
Error 22 in Grub is "No such partition"

You can copy a Linux partition from one hdd to another or from one PC to another by various programs but its boot loader can only be transferred by the "dd" command.
how do u know that its for "No such partition" ????
just by experience or is there any manual availabel listing various errors related with "GRUB"

regards
 
Old 10-03-2005, 10:37 PM   #11
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Refer to GRUB Manual

Note: Always, use the documentation. Make it a habit.

Last edited by SkyEye; 10-03-2005 at 10:39 PM.
 
Old 10-14-2005, 09:09 AM   #12
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
SkyEye,

Thanks for the answer. Been away for 3 weeks.
 
Old 10-18-2005, 12:45 AM   #13
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Quote:
Originally posted by saikee
SkyEye,

Thanks for the answer. Been away for 3 weeks.
Anytime, it's all about sharing with another Linux user.
 
Old 11-11-2005, 03:38 PM   #14
miles1981
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
Hello

I got the same error, but in different situations with an installation of Debian AMD64 testing.
I have a PATA drive which is the first master and which enables the load of my Windows.
I have a SATA drive on the first master and it contains the Windows and hopefully someday my Linux. I have another SATA drive on the third master, it is a data drive.

When I install everything without checking, GRUB is installed and starts from the PATA drive, but it can't load, it can't find the partition where it is installed, on the first SATA drive, in the seventh partition - I have one parition for my first windows, a partition for the windows swap, a partition for Linux swap, a partition for my second windows, a partition for Linux, a partition for /home and a partition for the remaining, but the partition for Linux is strangely labeled 7th -.
When I look in the partition device of the Debian installer, the SATA drive that is the first master is labeled SCSI3 and the third SATA drive is labeled SCSI1 ! I tried with an KUBUNTU, the same results...

Perhaps GRUB sees the partition number differently than the installer, but then how make it work ? And why is the partition device mixing names ?

If somebody has the answer, I would be very grateful
 
Old 11-12-2005, 03:15 AM   #15
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Grub is known as Grand Unified Boot-loader and attempts to boot DOS, Windows, Linux, BSD..... As each system can call PATA and SATA different names Grub uses only a numbering system and obtains the references directly from the BIOS.

Grub always counts from 0 and so

(hd1,2) is the 3rd partition in the 2nd disk.

If you arrange PATA to boot first then it is (hd0) to Grub.

The same designation (hd0) will be used by Grub on your Sata if you tell the BIOS to put it at the front of the booting queue. So Grub is blind to the type of disk you have and doesn't care as it has no interest in it.

Linux calls a hard disk according to the location it is hooked to the M/B. hda, hdb, hdc and hdd are the 4 IDE permanently reserved channels. Recent M/B support 2 Sata and they are called sda and sdb (or hde and hdf) in Linux.

Therefore be aware that Linux and Grub use different notations for the same hard disk.

A SATA is serial ATA that requires a driver to work like a SCSI disk. To Linux Sata is part of the SCSI family. The installer may call a Sata as SCSI but Linux treat them as a device like /dev/sda for the whole drive and /dev/sda3 for the 3rd partition of that disk.

-----------------------------------

You have a lot of confusions. Sata do not have a master/slave designation. They only have channel no.

You are also not supposed to have Windows bootable from a logical partition which alway starts from the 5th partition, as the first 4 are reserved as primary partitions.

I suggest you to obtain a Linux Live CD, one that boots into a Linux system without being installed into a hard disk, and do a fdisk -l at the root terminal to see a complete run down of all your drives and the partitions already created. You need to know what you have got first.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM
GRUB bootloader spits out "GRUB hard disk error" Crampedson Linux - Software 2 01-26-2005 06:34 PM
GRUB Section2 load error, partition error. Ryle Linux - General 1 06-27-2004 02:55 PM
GRUB error? DriveReady SeekComplete DataRequest Error sth Linux - Hardware 3 02-26-2003 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:53 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
Open Source Consulting | Domain Registration