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 02-18-2005, 06: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, 08:41 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
"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, 09: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, 01: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, 11:35 AM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
"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, 02: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, 02:06 AM   #7
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

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

thnks
 
  


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


All times are GMT -5. The time now is 02:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration