LinuxQuestions.org
Register a domain and help support LQ
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 05-05-2004, 06:23 PM   #1
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Rep: Reputation: 30
Grub - reorganisation


Hello,

For about a year I am experimenting with linux. I have installed some distro's ( RH 9 - Suse 9 - Suse 8.2 )but I want to install some others to compare their possibilities.

At this moment I have 3 hd's 120 + 120 + 200). Room enough, but in the beginning, due to my inexperience , I made some errors or the distro's didn't behave as I expected.

The following are the fstab files from the distro's.

diskb2/etc/fstab RED HAT 9 on hdb2

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdb3 swap swap defaults 0 0
/dev/fd0 /mnt/floppy auto noauto,user,kudzu 0 0
/dev/hda1 /mnt/Win_c auto noauto,user 0 0
/dev/hdc2 /mnt/Suse auto noauto,user 0 0
/dev/sda1 /mnt/Fdrive auto noauto,user 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0


/diskc2/etc/fstab SUSE 8.2 on hdc2
/dev/hdc2 / ext3 defaults 1 1
/dev/hdb1 /bootb1 auto noauto,user 0 0
/dev/hdb2 /drvb2 auto noauto,user 0 0
/dev/hda1 /windows/C vfat users,gid=users,
umask=0002,iocharset=iso8859-1,code=437 0 0
/dev/hdc6 /drvc6 auto noauto,user 0 0
/dev/hdb3 swap swap pri=42 0 0
/dev/hdc1 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
/dev/dvd /media/dvd auto ro,noauto,user,exec 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0
/dev/sda1 /media/sda1 auto noauto,user,exec 0 0 #HOTPLUG B3Fu.SFaHrVGraQF



/etc/fstab SUSE 9.0 HDC6?
/dev/hdc6 / reiserfs defaults 1 1
/dev/hdb1 /diskb1 auto noauto,user 0 0
/dev/hdb2 /diskb2 auto noauto,user 0 0
/dev/hdc2 /diskc2 auto noauto,user 0 0
/dev/hda1 /windows/C vfat users,gid=users,
umask=0002,iocharset=iso8859-1,code=437 0 0
/dev/hdb3 swap swap pri=42 0 0
/dev/hdc1 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
/dev/dvd /media/dvd auto ro,noauto,user,exec 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0

So in the moment I have :

hda1 = windows
hdb1 = boot ? I think See suse 8.2
hdb2 = red hat 9
hdb3 = swap red hat/ swap suse 9.0
hdc1 = swap suse 9.0
hdc2 = suse 8.2
hdc6 = suse 9.0

GrUB boots from hdc2 ( I changed the menu list so I could detect which one is activated)

Question 1
I think I have at least one SWAP to much.
I can edit the fstab files so that all use hdc1 and then I can delete hdb3.
Are there further consequences ?

Question 2
As I see it there is a boot partition on hdb1.
How do I make GRub boot from that partition.
First I have to edit the menu lst I think.
And then... editing the MBR ???

Question 3
To prevent this kind of things, I had the Idea to do the next.
Make a copy from the MBR with DD to a flop.
Install the new distro.
Start with the flop. Look to the Menu lst from the new distro.
Edit the menu lst on hdb1.
Put the MBR from the flop back to hda.
(I don't have the intention to change anything on hda, the distros go to hdb or hdc)
Did I forget anything ?

Thank for your help.

CloudBuilder
 
Old 05-05-2004, 06:43 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Yes one swap partition is all you need. To make grub use the menu.lst in /dev/hdb1 do
Code:
grub
> root (hd1,0)
> setup (hd0)
> quit
 
Old 05-06-2004, 06:29 AM   #3
lightsycle
LQ Newbie
 
Registered: May 2004
Location: Louisville, KY
Distribution: currently none...
Posts: 15

Rep: Reputation: 0
I have a question: What does the (hd0,0) mean? I only ask because I have 3 os on my hdd and the 3rd MDK8.1 won't work from grub. I have to use a disk.
 
Old 05-06-2004, 12:11 PM   #4
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by lightsycle
I have a question: What does the (hd0,0) mean? I only ask because I have 3 os on my hdd and the 3rd MDK8.1 won't work from grub. I have to use a disk.
HD0 = the first HD (normaly C: in win)
the netx 0 = the first partition.

So first HD First Partition.

Sometimes the install of a new LINUX distro makes an new grub menu.lst.
So look from where grub does start ( /boot/grub/menu.lst)

For trying you can change the text a little bit and see if this is the start menu.

If it is, you can ad you entry for the start, you can find the entry for this one also in
its /boot/grub/menu.lst.

CloudBuilder

Last edited by CloudBuilder; 05-06-2004 at 12:17 PM.
 
Old 05-06-2004, 12:55 PM   #5
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Quote:
Originally posted by lightsycle
I have a question: What does the (hd0,0) mean? I only ask because I have 3 os on my hdd and the 3rd MDK8.1 won't work from grub. I have to use a disk.
As CloudBuilder says, (hd0,0) is the first partition on the first hard drive. If you want to put an entry for MDK8.1 on your /boot/grub/menu.lst , tell us what partition it is on and we'll have a stab at it.
 
Old 05-06-2004, 03:02 PM   #6
lightsycle
LQ Newbie
 
Registered: May 2004
Location: Louisville, KY
Distribution: currently none...
Posts: 15

Rep: Reputation: 0
MDK 8.1 is on hda7.

I tried tinkering with it a little this morning with the help of man and info pages but to no avail. I was trying to copy the syntax that boots RH9 on hda3? i believe? no good. n-e-help is appreciated.
 
Old 05-06-2004, 03:38 PM   #7
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Try
Code:
title Mandrake 8.1
root (hd0,6)
kernel /boot/vmlinuz root=/dev/hda7 devfs=mount vga=788
those options work for Mandrake 9.2 but Mandrake 10 needs a lot more
Code:
title Mandrake 8.1
kernel (hd0,6)/boot/vmlinuz root=/dev/hda7 devfs=mount acpi=ht splash=silent vga=788
initrd (hd0,6)/boot/initrd.img
so try combinations.

Apologies to CloudBuilder if we've hijacked your thread. Did you solve your problem?

Last edited by Andrew Benton; 05-06-2004 at 03:41 PM.
 
Old 05-06-2004, 06:53 PM   #8
lightsycle
LQ Newbie
 
Registered: May 2004
Location: Louisville, KY
Distribution: currently none...
Posts: 15

Rep: Reputation: 0
Thanx. I will try it. :-}
 
  


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
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 10:37 PM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 09:01 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 05:55 AM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 10:16 AM
Trying to dual-boot XP and RH9 with GRUB...GRUB stops right after BIOS EvilYoda Linux - Newbie 5 06-20-2003 04:38 PM


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