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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-18-2005, 06:51 PM
|
#1
|
Member
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210
Rep:
|
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
|
|
|
02-18-2005, 08:41 PM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,370
|
"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
|
|
|
02-18-2005, 09:40 PM
|
#3
|
Member
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210
Original Poster
Rep:
|
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
|
|
|
02-19-2005, 01:29 AM
|
#4
|
Member
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210
Original Poster
Rep:
|
Can anyone tell me how to switch it really quick?
Sorry, but i really want to get this hd working
Thanks
|
|
|
02-19-2005, 11:35 AM
|
#5
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,370
|
"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
|
|
|
02-20-2005, 02:30 PM
|
#6
|
Member
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210
Original Poster
Rep:
|
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
|
|
|
02-21-2005, 02:06 AM
|
#7
|
Member
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210
Original Poster
Rep:
|
can anyone confirm this?
thnks
|
|
|
All times are GMT -5. The time now is 08:39 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|