LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-27-2004, 08:43 AM   #1
saposmak
Member
 
Registered: Sep 2003
Distribution: Redhat
Posts: 72

Rep: Reputation: 15
endless booting problem (grub)


I (used to) have a windows xp partition (ntfs) and a linux ext3 partition, which would boot just fine with grub.... In an attempt to take space from the windows partition and put it in the linux partition, I tried to resize the windows partition using Partition Magic...

Well the damn thing gave me an error while it was half-way through the resizing process, and I could not boot windows. This is fine, since I barely use winxp anymore. Linux still booted just fine, and I was happy (as long as I could recover some important files from the winxp partition, which I did)

Anyway, to recover the files from the WinXP partition, I took out the disk from my computer, then put it in another computer (that also has XP) and used a nifty application that works to recover data from screwed up ntfs drives (it's called getbackdata for ntfs... it's awesome)

The problem now is that when I put back my disk in the original computer, now Linux doesn't wanna boot. I read somewhere that the MBR (master boot record) is usually in the windows partition, which is a problem because I erased the windows partition... lol so I guess I'm in a lot of trouble....

I have my linux boot partition on another disk (I did this to prevent things like THESE to happen... heh), So when I boot from the disk that has the boot partition in, an older version of grub than I used to have appears... I choose Linux, and it boots, just not on the right kernel... I have kernel 2.6.5, and it boots a 2.2.x-x kernel!

Maybe this is a defense mechanism thing that Linux has in case it's not possible to boot the other kernel... I don't know. I'll be happy if I can just call the right grub version, and boot my actual 2.6.5 kernel... help anyone?

Thanks in advance for any guide.
 
Old 05-27-2004, 11:45 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
edit your /boot/grub/menu.lst file
somthing like

root (hd0,0)
default=0
timeout=10
title linux
kernel /path/to/kernel2.6 root=/dev/your_root_partiton
initrd /path-to/initrd
 
Old 05-27-2004, 05:03 PM   #3
saposmak
Member
 
Registered: Sep 2003
Distribution: Redhat
Posts: 72

Original Poster
Rep: Reputation: 15
Thanks for replying...

I did that, and it still does the same thing... what does the hd1,1 or hd0,0 mean?

Anyway I'm thinking of just downloading fedora core and installing it anew... I was thinking of doing that before all this trouble happened. I just don't wanna see my data destroyed that's all
 
Old 05-27-2004, 09:05 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
lol...

(hd0,0) = the hard drive that grub just beeoted partiton 1
(hd0,1) = the hard drive that grub just booted partiton 2
(hd1,0) = the other hard drive partiton 1
(hd1,1) = the other hard drive partiton 2

if you are giving the correct path to a 2,6 kernel then the 2.6 kernel will boot.
please post your grub.conf file.
 
  


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 stuck in an endless loop. dikadika Linux - General 4 02-27-2005 07:46 PM
Problem With Booting XP using GRUB bowb4steve Linux - Newbie 2 10-28-2004 08:25 PM
booting problem using grub tacca *BSD 3 10-23-2004 03:58 PM
problem booting other Linux OS using GRUB tuxrules Linux - Newbie 2 07-21-2004 01:08 PM
RH 9 Problem Booting with Grub scottym Linux - Distributions 1 08-03-2003 10:54 PM

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

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

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