LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-11-2008, 10:33 PM   #1
Yuki_Nagato
LQ Newbie
 
Registered: Mar 2008
Distribution: Slackware 12.1
Posts: 14

Rep: Reputation: 0
Seperate GRUB /boot partition


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?
 
Old 08-11-2008, 10:47 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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
 
Old 08-11-2008, 10:54 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
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.

http://users.bigpond.net.au/hermanzo...boot_partition
 
Old 08-11-2008, 11:06 PM   #4
Yuki_Nagato
LQ Newbie
 
Registered: Mar 2008
Distribution: Slackware 12.1
Posts: 14

Original Poster
Rep: Reputation: 0
Alright.

These are good links. I believe I will have to install to the MBR. I will be back after I try this later.
 
Old 08-12-2008, 01:07 AM   #5
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 305

Rep: Reputation: 80
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.
 
Old 08-12-2008, 10:27 PM   #6
Yuki_Nagato
LQ Newbie
 
Registered: Mar 2008
Distribution: Slackware 12.1
Posts: 14

Original Poster
Rep: Reputation: 0
I just installed it to the MBR.

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.

Thank You.
 
  


Reply

Tags
grub, partition, slackware



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
GRUB error 21 when trying to boot XP after installing Ubuntu 7.04 on seperate hdd neilksos Linux - Newbie 16 05-05-2008 08:07 AM
SuSe 10, Win XP - dual boot, 2 seperate HDD's, GRUB question Thanh-BKK Linux - Newbie 6 12-06-2005 08:21 PM
seperate /boot partition jturnbul Slackware 4 09-22-2004 06:45 PM
XP Pro NTFS and Red Hat Boot with Grub on Seperate Drives js_530 Linux - General 1 04-10-2004 05:07 PM
dual boot SuSE / XP on seperate drives with GRUB uploadjoe Linux - Software 2 02-20-2003 11:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:52 PM.

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