home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Applications and Operating Systems
Reply

Grub Help!

 
Thread Tools Search this Thread
Currently Active Users: 2310
Discussions: 207,853, Posts: 2,459,457, Members: 253,353
Get bargains at  »  Dealighted.com
Old April 6th, 2003, 12:17 AM   Digg it!   #1 (permalink)
Member
 
munky's Avatar
 
Join Date: Jan 2003
Location: New York
Posts: 120
Send a message via ICQ to munky Send a message via AIM to munky
Exclamation
Grub Help!

I got a new comp (by new a p2 400mhz..its free shutup!) I have 2 drives in my server. A 15 which holds everything and a 40 which i had another os for a while. The 40 gig has the boot record right now. The master (hda1 which is the 15) has grub ready, I just need to get it as the mbr b/c I wanna remove the 40 and use it on the new comp. MY root parition is hda3, my boot partition is hda1. What should I do?

munky is offline   Reply With Quote
Old April 6th, 2003, 12:39 AM     #2 (permalink)
Uncommon Man
 
samwichse's Avatar
 
Join Date: Oct 2001
Location: State College, PA
Posts: 4,281
What shouldn't ouy doo?

samwichse is offline   Reply With Quote
Old April 6th, 2003, 12:42 AM     #3 (permalink)
Member
 
munky's Avatar
 
Join Date: Jan 2003
Location: New York
Posts: 120
Send a message via ICQ to munky Send a message via AIM to munky
Well, right now the boot record is on the 2nd drive. IF I take it out, I get a "grub error". I want the first drive to run w/o the second!
munky is offline   Reply With Quote
Old April 6th, 2003, 01:51 AM     #4 (permalink)
Senior Member
 
Join Date: Oct 2001
Posts: 959
so the 40 gig (to be removed) is your /dev/hda or in grub-speak (hd0) and the boot is on (hd0,0)

from a CLI you need to re-run the grub set-up

grub
root (hd1,0)
setup (hd1)
quit

(hd1,0) being the first partition on the second drive (/dev/hdb1)

however, this is all going to change when you whip out the 40g drive, because then you technically only have a /dev/hda

what I would do is back up the boot config from the 40g as well as fstab for reference
next pull the 40g drive
use a linux install disc to get to a chrooted prompt
reconfigure grub and fstab based on your new hardware config i.e.
grub
root (hd0,0)
setup (hd0)
quit

make sure the 15G has a /boot and stick your kernel and grub.conf in there - make sure the grub.conf is pointing at the right (hd) and you should be good

HTH
the jester is offline   Reply With Quote
Old April 6th, 2003, 08:58 AM     #5 (permalink)
Ultimate Member
 
nukes's Avatar
 
Join Date: Oct 2002
Location: Scotland, UK
Posts: 3,221
Send a message via AIM to nukes Send a message via Yahoo to nukes
If you're boot partition (where GRUB is installed) is on the second drive, you need to move it to the first as the MBR can only really serve to bootstrap the system and point it to the partition where stage 2 is installed as it only consists of like 512 bytes or so. If you remove that drive, it won't work as half of grub is missing (including your config file)
It is possible to set grub up to run off a FAT partition (if thats whats on your first drive) If you really want something where it can run without the second drive, why not try XOSL (if you have a FAT/FAT32 partition on the first drive that is)
www.xosl.org
__________________
_____
NuKeS
nukes is offline   Reply With Quote
Old April 6th, 2003, 09:07 AM     #6 (permalink)
Senior Member
 
Join Date: Oct 2001
Posts: 959
I see that my Saturday night severely impaired my ability to give good advice

the jester is offline   Reply With Quote
Old April 6th, 2003, 10:02 AM     #7 (permalink)
Ultimate Member
 
nukes's Avatar
 
Join Date: Oct 2002
Location: Scotland, UK
Posts: 3,221
Send a message via AIM to nukes Send a message via Yahoo to nukes
Wait. I think I got it mixed up. Is the 15 the master at the moment and the 40 the slave or on the other channel?
If that's the case, jester's advice will do it.
nukes is offline   Reply With Quote
Old April 6th, 2003, 10:22 AM     #8 (permalink)
Member
 
munky's Avatar
 
Join Date: Jan 2003
Location: New York
Posts: 120
Send a message via ICQ to munky Send a message via AIM to munky
the 15 is the master, and btw i installed the 15 first with gentoo and then i installed the 40 with clark connect. The 15 still has its grub.conf. So...btw jester your respons confused me
munky is offline   Reply With Quote
Old April 6th, 2003, 10:46 AM     #9 (permalink)
Senior Member
 
Join Date: Oct 2001
Posts: 959
my apologies

what I would do is

1. get a gentoo install disc

2. boot the install disc and follow the gentoo instructions aside from partitioning all the way up to getting to a chroot shell

3. skip to the grub configuration instructions

4. set up grub on your 15G

5. edit your grub.conf (not forgetting the symlink to menu.lst)

6. remove references to the 40G drive from /etc/fstab

and pull the 40G before you do step 1


Last edited by the jester : April 6th, 2003 at 11:01 AM.
the jester is offline   Reply With Quote
Old April 6th, 2003, 07:12 PM     #10 (permalink)
Member
 
Join Date: Oct 2001
Location: australia
Posts: 445
btw, you don't need to chroot to install the grub mbr, you can do it straight from the gentoo cd just after it's finished booting.

KraM is offline   Reply With Quote
Ask a Tech Question (free)!
Most Active Discussions
Is It Just Me? (1014)
Intel Core i7 920 heat issue help p.. (19)
Woman Convicted of Drug Fraud Joins.. (5)
I need help building a computer. 40.. (33)
Best gaming GPU for $200 or less? (17)
Nvidia GeForce gt 220 problems (21)
Trouble connecting to Apartment Int.. (16)
net use command (13)
cant find drivers (8)
Wireless coverage over 3 hotel floo.. (17)
Laptop Battery issue? (10)
Zombie Cookies Privacy Lawsuit Targ.. (6)
Rate My First Computer Build (8)
new video card- screen changes to c.. (8)
Recent Discussions
Trouble connecting to Apartment Inter.. (16)
Wireless coverage over 3 hotel floors (17)
Can't open zip files in vista??? (16)
Rate My First Computer Build (8)
Server 2008 "read only" (0)
120G External Drive, USB 2.0: Works o.. (2)
Help Dell Latitude D610 Power Problem.. (6)
Intel Core i7 920 heat issue help ple.. (19)
new woot (5)
Which Graphic is better? (1)
On startup my monitor clicks forever .. (1)
Cavalier Internet (12)
Laptop Battery issue? (10)
PC turns on, gets normal post beep bu.. (0)
D drive failure? (3)
In need of Help! (1)
DVD Recorder Set-Up (3)
System fans not working (2)
good video card around 100-200 dollar.. (3)
Linux had disk space full (3)
Minidump Help (1)
I need help building a computer. 400-.. (33)
cant find drivers (8)
Redirect malware won't go away (6)
laptop keys broken!!1 (3)

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

All times are GMT -4. The time now is 07:31 PM.
TechIMO Copyright 2010 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28