SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I am attempting to boot both Windows and Slackware 12.1 with GRUB. The Windows bootloader is still intact, and I skipped over the LiLo setup part of "setup." I have been booting Slackware with the DVD.
I perfer to completely vanilla-install new versions of Linux as opposed to upgrading. So I figured that I need to keep the /boot folders intact so that Windows does not get lost in space if something wierd happens. The separate partition came to mind.
I currently have a hard drive that looks as such:
sda1 = Windows }
sda2 = Windows backup thing } I ain't touching these (preinstalled)
sda3 = /boot
sda4 = extended
--sda5 = /
--sda6 = Linux swap
My problem is such that "grubconfig" does not seem to do the job. It creates the menu.lst file and all of its friends and drops them into a place called "/boot/boot/grub/" Yes, there are two "boot". This seems to stem from me designating sda3 as "boot" during setup.
I then designate sda3 as the place to to boot from (the other choices are the MBR and a floppy disk.) Yet, when I restart, Windows pops up without a hitch: no GRUB.
I whipped out the Ubuntu Live CD and fired up GParted. I flagged sda3 as "bootable," but this made no effect. Of course, when I checked again later, sda1 was somehow marked as "bootable" again.
Anyone else booting Slackware from a separate partition?
You need to install grub (stage1) to the MBR. The later code needs a partition to live in, but the initial code has to be in the MBR if you want it to be the loader.
As for the /boot/boot... thing, see the grub FAQ here
The link below explains the correct way to create a separate /boot partition. It is written for Ubuntu but most of it will apply to any distro and if you read it you will understand why you have "/boot/boot/grub/" and will be shown how to change that.
I had the exact same problem with my Slackware 12.0 install. I ran grubconfig and it made a /boot/boot/grub/ directory as well. It sounds like you have all the required files to use grub but it is not installed to the MBR. I ran an Ubuntu Live CD to correct the issue. Here's what I did.
1) Boot Ubuntu Live CD
2) Open up a terminal
3) Become root by typing the command "sudo -s"
4) Complete the following commands as root
root # mkdir /media/sda3
root # mount /dev/sda3 /media/sda3
root # cd /media/sda3/boot
root # mv grub /media/sda3/
root # cd
root # umount /dev/sda3 /media/sda3
root # grub
grub> root (hd0,2)
grub> setup (hd0)
grub> quit
root # exit
5) Reboot
You should now have grub installed to the MBR. Update the menu.lst as needed.
GRUB has become lovely as of late. It detected every partition I have on the hard drive. I edited out the data ones, and am left with a working dual-boot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.