LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-11-2005, 08:51 AM   #1
xjchen001
LQ Newbie
 
Registered: Aug 2005
Location: Singapore
Distribution: Fedora Core 4
Posts: 13

Rep: Reputation: 0
Angry urgent help: Cannot load any kernel


Hi,
I am very sad that I could not load any kernel at all.

Previously, I installed three OS on my x86 machine.
Disk0 (hd0) has 4 partitions:
(hd0, 0), Primary Partition, Active, NTFS, WinXP Pro installed.
(hd0, 1), Logic Partition, NTFS,
(hd0, 2), Logic Partition, NTFS,
(hd0, 3), Logic Partition, NTFS,

Disk1 (hd1) had 9 partitions:
(hd1, 0), FAT, Win2000 installed, but not active, not bootable.
(hd1, 1), SWAP for Red Hat 9.
(hd1, 2), / for Red Hat 9.
In fact I am not quite sure about the partition number of these two partitions. But the positions of cylinders are there, i.e. between (hd1, 0) FAT and my Fedora Core 4.
there are three partitions for my Fedora Core 4 for swap, boot, and root respectively.
(hd1, 3), SWAP for Fedora Core 4;
(hd1, 4), Boot for Fedora Core 4; (I am not sure about whether partition 4 is boot or partition 3 is boot)
(hd1, 5), / for Fedora Core 4
(hd1, 6), FAT, Partition Type 0xb
(hd1, 7), FAT, Partition Type 0xb.

I used GRUB as boot loader. GRUB resides in boot partition for Fedora Core. Three possible loadable kernels:
1) Fedora Core 4
2) Others (WinXP)
3) Red Hat 9

This afternoon, I entered WinXP, and try to manage my disk using Windows Disk Manager (RightClick 'My Computer'-->'Manage'-->'Disk Management'). I thought that I seldom use Red Hat 9, So i delete the 2nd and 3rd partition of the second disk, i.e. (hd1, 1) and (hd1, 2) which had Red Hat 9 OS. The WinXP gave me no warnings about possible kernel loading error.

In WinXP, after I delete the two partitions, they merged into one. And I created another parition for it, and formatted it. When it was formatting, I surfed internet. Then it suddenly changed to BLUE screen and computer restarted.

Then it reached the prompt
grub>

And the computer stuck there without displaying the kernel loading options.

I pressed TAB following the instructions. I tried root command.

grub>root (hd1, 0)
FAT filesystem, partition type 0xb

grub>root (hd1, 1)
Unknown filesystem, partition type 0xf

grub>root (hd1, 2)
No such partition

grub>root (hd1, 3)
No such partition

grub>root (hd1, 4)
FAT filesystem, partition type 0xb

grub>root (hd1, 5)
ext2fs filesystem, partition type 0x83

grub>root (hd1, 6)
unknown filesystem, partition type 0x82

grub>root (hd1, 7)
ext2fs filesystem, partition type 0x83

grub>root (hd1, 8)
FAT filesystem, partition type 0xb

grub>root (hd1, 9)
FAT filesystem, partition type 0xb

It seems that the partition numbers increased, but in fact (hd1, 2) and (hd1, 3) don't exist at all.

Maybe the system cannot find the grub.conf ???
How can I modify the grub.conf accordingly after I remove the two partitions and create the new partition?
What do i need to do to let the system read the grub.conf and display the kernel loading options?

Please help. Both disks contains files related to my projects.

Regards,
Xinjun
 
Old 09-11-2005, 09:08 AM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Hello there,
boot your system using the bootable cd of fedora core or rescue floppy( if you have one ).
go into rescue mode by typing there "linux rescue"
then follow the instructions to reinstall grub into MBR
.......
now check the entries you get after running
fdisk -l
and the entries in yoiur
grub.conf

actually there is mistmatching between these entries since you deleted two partitions and made them one.

correct the entries in grub.conf and your system will start working again

regards

Last edited by b0nd; 09-11-2005 at 09:11 AM.
 
Old 09-11-2005, 11:30 PM   #3
xjchen001
LQ Newbie
 
Registered: Aug 2005
Location: Singapore
Distribution: Fedora Core 4
Posts: 13

Original Poster
Rep: Reputation: 0
Thank you very much. I used Win98 disk to reset mbr. So now I can enter WinXP.
I will find the FC4 bootable CD to do the rest.
Thank you very much.

Regards,
Xinjun

Quote:
Originally posted by ruudra
Hello there,
boot your system using the bootable cd of fedora core or rescue floppy( if you have one ).
go into rescue mode by typing there "linux rescue"
then follow the instructions to reinstall grub into MBR
.......
now check the entries you get after running
fdisk -l
and the entries in yoiur
grub.conf

actually there is mistmatching between these entries since you deleted two partitions and made them one.

correct the entries in grub.conf and your system will start working again

regards
 
Old 09-12-2005, 02:14 AM   #4
xjchen001
LQ Newbie
 
Registered: Aug 2005
Location: Singapore
Distribution: Fedora Core 4
Posts: 13

Original Poster
Rep: Reputation: 0
Hi suudra,

I failed to install grub into MBR.
I tried to repair the FC4 and install new grub boot loader. The system report that "No kernel package is installed, and the boot loader configuration will not be changed.".

Then i try to install grub into MBR.
grub>find /sbin/init
(hd1, 7)

Why (hd0, 0) is not there?

when run
grub>setup (hd0)
"/boot/grub/stage1" exists... No
"/grub/stage1" exists... No

but in fact before i entered grub, I can see thoese files in sh-3.00.
sh-3.00#ls /boot/grub/
device.map e2fs_stage1_5 fat_stage1_5 ffs_stage1_5 e2fs_stage1_5 grub.conf iso9660_stage1_5 jfs_stage1_5 menu.lst minix_stage1_5 stage1 stage2 reiserfs_stage1_5 splash.xpm.gz ufs2_stage1_5 vstafs_stage1_5 xfs_stage1_5


Seems that I could not install the grub again. What may be the possible reason?
This morning, i use fdisk /mbr command reset MBR. Is it because of that?


Regards,
Xinjun

Last edited by xjchen001; 09-12-2005 at 03:25 AM.
 
Old 09-12-2005, 04:12 AM   #5
xjchen001
LQ Newbie
 
Registered: Aug 2005
Location: Singapore
Distribution: Fedora Core 4
Posts: 13

Original Poster
Rep: Reputation: 0
Just now I fixed the problem.
The solution is to use 'grub-install' instead of grub>setup.

In sh-3.00, run grub-install.
sh-3.00#grub-install

Then modify the /boot/grub/grub.conf to adjust the boot partition number.
change "root (hd1,7)" to "root (hd1,5)". The name "root" is a little misleading. In fact, (hd1,5) is the boot partition, not the root partition.

Thank you Ruudra,

Regards,
Xinjun
 
Old 09-12-2005, 11:30 AM   #6
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
my pleasure
U may like to visit
this

my college friends are running this site.
It really has some very basic topics about linux, specially for newbies.
"recover GNU/LINUX bootloader" topic is also there...........have a look at that.

regards
 
Old 09-12-2005, 12:30 PM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,043
Blog Entries: 4

Rep: Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648
The boot partition, usually mounted as /boot, is the place where the Linux kernel image (vmlinuz...), and grub itself, is found.

The root partition, always mounted as /, is the anchor of the entire filesystem. /sbin/init must be found there.

These are customarily separate partitions.

Notice that the grub boot loader numbers partitions upward from zero, while Linux refers to the first partition as number one. So, (hd1,0) is /dev/hda1.

When you find that you've got the partition information all bolluxed up, having a live CD to boot from is extremely helpful. You need to be able to look at how the partitions are set up, and check for overlaps and confirm what is actually on them.
 
Old 09-12-2005, 12:33 PM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,043
Blog Entries: 4

Rep: Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648
Thumbs up

Quote:
Originally posted by ruudra
my pleasure
U may like to visit
this
my college friends are running this site.
It really has some very basic topics about linux, specially for newbies.
A very helpful, well-done site.
 
  


Reply


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
compiling kernel chapter 8.3 ..urgent sharmashikha Linux From Scratch 1 06-21-2005 03:11 AM
URGENT - BOOT UP in Kernel and not KDE busaussie Linux - General 18 06-11-2005 10:46 AM
How do I re-install an operatingsystem? Corrupted install. Yast wont load. URGENT.thx CrewXp SUSE / openSUSE 5 05-09-2005 12:07 AM
ReInstalling a corrupted OperatingSystem? Had Suse. Yast wont load right. URGENT! thx CrewXp General 3 05-05-2005 11:39 AM
grub doesn't auto-load kernel, time/date auto-change, k3b cannot load kenji1903 Red Hat 16 03-27-2005 08:48 PM


All times are GMT -5. The time now is 01:07 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