LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-16-2005, 10:51 AM   #1
linda
Member
 
Registered: Apr 2001
Location: New Jersey
Distribution: Slackware
Posts: 222

Rep: Reputation: 30
Grub: A Backwards question


I play around with Linux about twice a year, during Christmas vacation and Summer break (I am a schoolteacher!)

Anyway, in my roundabout way I have gotten my multiboot sytem working with Slackware, Suse, and WinXP. I mainly used Suse to get Grub working correctly with a pretty splashboot screen. Slackware didn't come with that capability, so I installed Suse, and Grub works very nicely now.

Anyway, I am about to tinker some more, and I want to know how to keep my Grub install intact. I want to get rid of Suse. How can i trace back to where all of the important grub files are? This isn't as easy a question as it first appears. When Grub installs, it puts files in something similar to Windows MBR (how I understand it in my mind at least). Grub also refers to "root" and "boot". And I get all mixed up with it. I think I put Grub on its own partition, just so I wouldn't mess it up.

Does anyone know how to find "all" of the files grub needs to work? Or better yet, would anyone be willing to help me sort out this mess I have on my computer? Yes, it works, but I am wasting a lot of space I think with having Grub in two places, and having Suse installed when I don't even use it. I mainly use WinXP and Slackware.
 
Old 07-16-2005, 12:11 PM   #2
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Rep: Reputation: 30
Ok, for me Grub DOES put itself on the MBR. The main grub files can be found is /boot/grub

Root is the / (root) partition for that install, i.e. where the kernel is stored.

You will probably want to install grub under slack (if thats what you want to keep) or if /boot is its own partition there should not be a problem, just don't let the installs touch it, then add the entrys manually. Its very simple to do, just go
Code:
nano /boot/grub/gub.conf
as root...

This is what each entry should look something like:

Code:
title Gentoo 64 (2.6.12-r4) #Name grub shows
 root (hd1,1) #what partition you want
 kernel /boot/kernel-2.6.12-gentoo-r2 #what kernel to use; root=/dev/hdb2 #the "real" root path, as the kernel will see it
Grub uses a funny system for drives, (hd0,0) is hda1, (like coordinates i suppose) and in the same fashon (hd1,6) is hdB7. Get it? its simple really.

Kernels should be kept in /boot.

AS for fancy images, put
Code:
splashimage=(hd1,1)/boot/bootsplash.xpm.gz
after the timeout, point the path to where the image is. Make sure its the right size etc!
 
Old 07-16-2005, 02:32 PM   #3
linda
Member
 
Registered: Apr 2001
Location: New Jersey
Distribution: Slackware
Posts: 222

Original Poster
Rep: Reputation: 30
Ok, that was pretty helpful especially where you wrote:

title Gentoo 64 (2.6.12-r4) #Name grub shows
root (hd1,1) #what partition you want
kernel /boot/kernel-2.6.12-gentoo-r2 #what kernel to use; root=/dev/hdb2 #the "real" root path, as the kernel will see it

So I can look for the grub.conf I am using now, and make sure I don't mess up anything it is pointing to. (Famous last words!) I don't want to reinstall grub under slack, because I tried that last summer and remember pulling my hair out about it. The grub that is supported by Slack doesn't support the spashimage, and getting that to work involved all kinds of patching which i wasn't able to do.

I was able to get the hang of grub's convention for naming partitions and such. That wasn't too hard. The problem was installing grub. When you actually install it, it creates a file someone that isn't readable. I don't understand that aspect of it at all. And to make matters worse, I don't use grub as my main booter. I am chain-booting: using WinXP's bootloader, pointing to WinXP or Grub. I think I probably should just get rid of that, and let grub take over completely.

But for now, I'm going to try to leave everything as is, grub-wise, and go from there. If I can't, then I'll try to make Grub the main bootloader

Thank you!!!
 
Old 07-16-2005, 02:54 PM   #4
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Rep: Reputation: 30
glad it was of use.

Is grub on its own partition then? If so you can just leave it as is, and add any new kernels in the conf, I just did so when I recompiled my kernel for some new stuff.

Linux basically only lets you, i.e. any user, access their own /home folder. Root has complete control over everything and can do anything, even delete the whole partition. This is why its advised to only use root when you know what you want to do then get out of there! Use
Code:
 su
to login as root then
Code:
exit
when you are done.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Time goes backwards DoubleLetter Linux - General 6 11-02-2007 05:38 PM
freebsd 5.3 backwards compatibility kpachopoulos *BSD 1 12-21-2004 04:58 PM
Backwards Clustering? ImpactDNI Linux - Networking 6 06-29-2004 02:44 PM
move backwards alaios Linux - General 1 03-14-2004 02:21 PM
Question re: backwards compatibility.... sankeny Slackware 5 11-21-2002 07:13 PM

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

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