How do I change the my hd (with linux) from slave to master and have grub boot?
Linux - NewbieThis 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.
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.
"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
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.