LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-14-2005, 04:38 PM   #1
oO0agentcow0Oo
LQ Newbie
 
Registered: Jun 2005
Distribution: Fedora 11
Posts: 9

Rep: Reputation: 0
Moving grub.conf to another partition


I am currently running a dual-boot WinXP/RedHat 9 machine. As per RedHat install, my computer runs GRUB to boot. This is fine, for what I have now, but I want to add a 3rd OS (possibly another Linux distro) and at some point remove RedHat. I know that grub.conf is located on my /boot partition along with the other GRUB files. To remove this means I'm left with the GRUB console. It is a very nice console program, but tedious when booting. I'd have to mount the root and options and all that junk every time I boot. I 've grown rather fond of the splash.img and convenient auto menu. Without tampering too much with the MBR, is there a way to keep GRUB the way it is (or close enough with menu and all) and still remove all RedHat partitions? I can't even begin to think how. Please help.
 
Old 07-14-2005, 04:46 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Hey,

Every new linux distro installation will ask your for a bootloader install. If you choose not to install the bootloader, your current bootloader is retained but new distro is not bootable until you modify your grub.conf and add the boot info for the new distro.

I suggest you backup your grub.conf and then install a new distro. Choose to install a bootloader and your previous bootloader will be replaced. If you are so fond of splashscreens, you can even make one for yourself.

Tux,

Edit: You can still keep your redhat and install a third distro, modify your current grub.conf file and you can boot them all.

Last edited by tuxrules; 07-14-2005 at 04:48 PM.
 
Old 07-15-2005, 02:55 AM   #3
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Rep: Reputation: 30
you ask how to move grub.conf to another partition,..here's how:
-find which hard drive is owned by the partition that you want to put your grub.conf
1) open a terminal
-if you want to see a list of all your hard drive partitions (you will have to use a partition with a linux-type file system on it)
-fdisk /dev/hda
-p
-q

-I assume that you don't have access to any other partitions, because otherwise it would be too simple for you to copy the file onto one of them
2) make a directory which will act as an access point for the other partition
-example "mkdir access"

3) now mount the directory onto the partition your going to copy to
-example "mount /dev/hda3 access"

-now if you type "ls access" you will be able to see into (and access) the mounted hard drive partition

4) copy the grub.conf
- example "cp /boot/grub/grub.conf access"
- there you have it, you've copied the grub.conf to another partition.
 
Old 07-15-2005, 05:06 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
If /boot is indeed on it's own partition do NOT do anything.
Remove the (separate) root partition if you like, nothing affected.

However - if /boot is simply a mount point, and actually exists on the same partition (under) the root, you have significant problems. Copying the conf will achieve nothing.
You will need to create a new partition, reboot the RH install CD into recovery mode, re-install grub, (in need) copy the conf across and update it, update the fstab to mount the new partition as /boot.

And ......
pray

The reason all this is required is because the loader uses (relative) sector counts to find the stage files (and conf). You go moving things around (or deleting them), you wind up with the grub prompt.

Otherwise, tuxrules post seems to cover things.
 
Old 07-17-2005, 07:48 PM   #5
oO0agentcow0Oo
LQ Newbie
 
Registered: Jun 2005
Distribution: Fedora 11
Posts: 9

Original Poster
Rep: Reputation: 0
Well, I just got back from camping and was delighted to see all the helpfull responses. All sugestions look very feasible. It may be later this week when I actually give these suggestions a try. I'll let you know and other advice is still much appreciated. My /boot directory is in fact a separate partition, and my WinXP Partition is ntfs so writing to it is not possible...yet. I think a floppy back-up will have to do, or I'll just set up a FAT32 back up partition for grub.conf. If there is any other possible hang-ups with overwriting boot loaders, I would be interested to know before I try to do it . In all likelyhood my new dostro will use lilo. Otherwise I have settled on CollogeLinux as my third (just to be safe with a familiar OS to me) Thanks again. Cheers
 
Old 07-27-2005, 02:05 PM   #6
oO0agentcow0Oo
LQ Newbie
 
Registered: Jun 2005
Distribution: Fedora 11
Posts: 9

Original Poster
Rep: Reputation: 0
See new thread:

http://www.linuxquestions.org/questi...hreadid=347170
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
moving files from windows partition to linux partition M O L8ingN2dust Linux - Newbie 11 01-08-2006 09:11 PM
grub configure to take it's conf file from a fat32 partition hq4ever Linux - General 1 11-20-2004 04:55 PM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 08:22 PM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 03:53 PM
Moving grub to another partition salinger Linux - Software 3 03-15-2003 07:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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