LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-18-2011, 08:30 AM   #1
asipper
Member
 
Registered: Oct 2011
Distribution: Fedora 17
Posts: 138

Rep: Reputation: 0
Can grub access another partition?


I'm running Slackware with /boot on a separate partition. I want to try Debian. How would I get grub to access the /boot partition or lilo for that matter. Or would it be easier in all to share the /boot partition
 
Old 12-18-2011, 08:41 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
What is your existing setup?

LILO in the MBR, booting kernel(s) from the partition normally mounted as /boot?

If so, the most self-contained option (especially as you are only trying Debian) might be to install Debian's GRUB in the boot sector of Debian's root file system and chainload it from the existing LILO.

Alternatively you could migrate to GRUB in the MBR and on the partition normally mounted as /boot. If you then decided against Debian it would be hard to maintain GRUB if your Slackware is 64 bit.
 
Old 12-18-2011, 08:52 AM   #3
asipper
Member
 
Registered: Oct 2011
Distribution: Fedora 17
Posts: 138

Original Poster
Rep: Reputation: 0
LILO is in the MBR. Does Debian use grub2 because i can't use grub-legacy? My slackware is 32 bit . How do you chainload?
 
Old 12-18-2011, 08:58 AM   #4
asipper
Member
 
Registered: Oct 2011
Distribution: Fedora 17
Posts: 138

Original Poster
Rep: Reputation: 0
I'd prefer if I only use LILO and everything is in one place but I'll use grub2 as grub-legacy doesn't seem to support GPT
 
Old 12-18-2011, 09:28 AM   #5
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,901

Rep: Reputation: 261Reputation: 261Reputation: 261
I think this will allow you to chainload if gub2 is installed to debians partition.
Quote:
other = /dev/hdb
label = debian
To boot debian from lilo the under slackware mount the debian partition somewhere, lets say /mnt. Then your lilo.conf for debian would look something like this:
Quote:
image = /mnt/vmlinuz
initrd = /mnt/initrd.gz
root = /dev/sda?
label = debian
read-only
 
Old 12-18-2011, 10:10 AM   #6
asipper
Member
 
Registered: Oct 2011
Distribution: Fedora 17
Posts: 138

Original Poster
Rep: Reputation: 0
Thanks I'm installing debian now I'll tell you if it works.
 
Old 12-18-2011, 11:50 AM   #7
asipper
Member
 
Registered: Oct 2011
Distribution: Fedora 17
Posts: 138

Original Poster
Rep: Reputation: 0
When running "lilo" I get Warning: Device 0x0800: Inconsistent partition table, 4th entry
chs adress in PT: 0:0;0 --> LBA (-1)
lba adress in PT: 0 --> CHS (0:0:1)
Fatal: Either FIX-Table or Ignore-Table most be specified
but when running -P ignore i still get the same error.
ANd when trying directly it can't find the initrd.
 
Old 12-18-2011, 02:05 PM   #8
asipper
Member
 
Registered: Oct 2011
Distribution: Fedora 17
Posts: 138

Original Poster
Rep: Reputation: 0
I fixed a path now I get Fatal: Parition entry not found for other ...
 
Old 12-18-2011, 02:09 PM   #9
asipper
Member
 
Registered: Oct 2011
Distribution: Fedora 17
Posts: 138

Original Poster
Rep: Reputation: 0
Nevermind I set the path to /mnt instead of /mnt/boot it should work
YES IT DOES. Thanks for the help everyone
 
  


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
[SOLVED] Grub : Lost my windows partition, can't find menu.lst in /boot/grub.Someone can help? lucid_dino Ubuntu 9 11-01-2010 02:51 PM
I installed GRUB on root partition. Anyway to access fedora? L_Masoumi Linux - General 3 03-15-2008 06:25 AM
grub failed to load linux (grub think ext3 partition as fat) khairilthegreat Linux - Newbie 7 08-09-2007 01:12 PM
Formatted Over grub now i can't access my linux partition Mutch Linux - Newbie 5 11-19-2006 04:21 PM
using GRUB to access a partition grendel-IT Linux - Software 2 03-05-2004 10:46 AM


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