LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-18-2005, 05:51 PM   #1
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Rep: Reputation: 30
How do I change the my hd (with linux) from slave to master and have grub boot?


How do I change the my hd (with linux) from slave to master and have grub boot?

I get error 17 if I try to change my hd from slave to master.


Thanks
 
Old 02-18-2005, 07:41 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"How do I change the my hd (with linux) from slave to master and have grub boot?
I get error 17 if I try to change my hd from slave to master."

When you move a hard drive you have to change grub.conf to point to all of the new addresses of your partitions. Move the hard drive. Then use a rescue CD to boot into your Linux system. Edit grub.conf (on some distributions the file is called menu.lst) to point to your new partition addresses. Then run this command:
grub-install /dev/hda

That should get your grub set up properly.

-----------------------
Steve Stites
 
Old 02-18-2005, 08:40 PM   #3
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
How do I make it point to master?


title Debian GNU/Linux, kernel 2.6.8-1-k7
root (hd0,0)
kernel /vmlinuz-2.6.8-1-k7 root=/dev/hda3 ro
initrd /initrd.img-2.6.8-1-k7
savedefault
boot

Thanks
 
Old 02-19-2005, 12:29 AM   #4
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
Can anyone tell me how to switch it really quick?
Sorry, but i really want to get this hd working

Thanks
 
Old 02-19-2005, 10:35 AM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"Can anyone tell me how to switch it really quick?"

Assuming that your / partition is now hda1 then change:
root (hd0,0)
to:
root /dev/hda1

Which brings up the question of how did this work on your old configuration?

---------------------------
Steve Stites
 
Old 02-20-2005, 01:30 PM   #6
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
old configuration? Will this way be easier than changing my menu.lst to have debian say root (1,0) and my windows say (0,0) Basically just switching them because my windows is my master and linux slave. So, I just switch them. Not sure if this would work though.


title Debian GNU/Linux, kernel 2.6.8-1-k7 (recovery mode)
root (hd0,0)
kernel /vmlinuz-2.6.8-1-k7 root=/dev/hda3 ro single
initrd /initrd.img-2.6.8-1-k7
savedefault
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hdb1
title Windows 98
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)


Thanks
#savedefault
makeactive
chainloader +1
 
Old 02-21-2005, 01:06 AM   #7
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
can anyone confirm this?

thnks
 
  


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
FC3 cannot boot on master if slave present ariadne Fedora 1 03-04-2005 12:00 PM
Setting Boot 1st From Master, Second From Slave clem_c_rock Linux - Newbie 0 07-04-2004 11:54 AM
Wont boot when two RH9.0 hdd's. i.e. one master and one slave. joel777 Linux - General 5 04-24-2004 12:07 AM
boot loader, MBR, redhat9 on primary slave, winxp on primary master samik Linux - Hardware 4 10-15-2003 08:55 PM
Dual boot with master slave hds Helper_Monkey Linux - Newbie 2 12-25-2002 10:57 PM

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

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