LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-22-2006, 02:48 AM   #1
MurX
Member
 
Registered: Oct 2005
Location: London
Distribution: elive e17
Posts: 152

Rep: Reputation: 30
Grub is not booting into one of my partitions.


I have installed two xubuntu systems on two partitons, xubuntu 32 and xubuntu AMD64.

The AMD64 system was installed last and works fine, grub is able to boot into it.

I can not boot into Xubuntu32 though.

Here is my grub/menu.lst file which I edited and cleaned up. ( I made a copy of my old menu.lst file but that was on the xubuntu32 install)

title XUbuntu32, kernel ???2.6.12-10 Default
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sda2 ro quiet splash
initrd /boot/initrd.img
savedefault
boot

title XUbuntu32, kernel ???2.6.12-10-generic Default (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz root=/dev/sda3 ro single
initrd /boot/initrd.img
boot

title xUbuntu, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
boot


title XUbuntu64, kernel 2.6.12-10-amd64-generic
root (hd0,3)
kernel /boot/vmlinuz root=/dev/sda4 ro quiet splash
initrd /boot/initrd.img
savedefault
boot

title XUbuntu64, kernel 2.6.12-10-amd64-generic (recovery mode)
root (hd0,3)
kernel /boot/vmlinuz root=/dev/sda4 ro single
initrd /boot/initrd.img
boot

title xUbuntu64, memtest86+
root (hd0,3)
kernel /boot/memtest86+.bin
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

I put in the ???? so that once I can boot into this system I can out the correct kernel version in here.

I am not sure about where Xubuntu should be booting from although I think I put the fist install ie / on sda2 with /home on sda3, but I am not sure. How can I check this so that I can set grub to look in the correct place to boot?

As a last resort I could always reinstall the xubuntu32 and get the installer to correct my grub/menu.conf file but I would rather not do this as I am sure the install is fine it appears to be the grub/menu.lst file at fault.

I have a feeling that all I need to do is to correct the (hd0,x) parameters so that grub knows where to look.

Can anyone tell me how I can take a look at the drive partions in sda?

Many thanks.
 
Old 02-22-2006, 05:46 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
what's on the 1st parition of your 1st hard drive?


seems to me like you need to change

root (hd0,1)

to

root (hd0,2)

does the recovery mode boot work??
 
Old 02-22-2006, 06:02 AM   #3
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
Easy to find out. Boot into xubuntu 64 and mount sda1 and sda2 and sda3 and possible sda4 on some mount points and use ls to list the contents. home would contain your user accounts directories and / would contain the entire directory tree viz. /boot, /bin, /dev, /etc .............

btw whatz on the first partition, as your menu.lst file doesn't reference it ?
 
Old 02-22-2006, 05:09 PM   #4
MurX
Member
 
Registered: Oct 2005
Location: London
Distribution: elive e17
Posts: 152

Original Poster
Rep: Reputation: 30
Thanks for the help guys but I really needed to get this system up and running today so I reinstalled Xubuntu 32bit, it only took about 30 mins anyway and as I had nto data to loose is no big deal.

my first partition on the first drive contains the /boot files and is about 100Mb. I assume it contains the Master Boot loader.

In any case i can now boot into all my windows Oss and both of my Xubuntu installs.

Thanks again.
 
Old 02-23-2006, 03:57 AM   #5
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
no the mbr is not "on" any partitions. it's a special area on the disk... seperate to any partioning. the disk needs to be told what to do when it's read at boot time - that's what the mbr does.


i don't understand what you mean. the fact that there is a /boot on your 1st partition means nothing - every instance of linux has this. it's where the kernel lives.
 
Old 02-23-2006, 05:21 PM   #6
MurX
Member
 
Registered: Oct 2005
Location: London
Distribution: elive e17
Posts: 152

Original Poster
Rep: Reputation: 30
satinet,

Thanks for clearing that up for me about the MBR. I thought that it was a separate partition.

Anyhow, the first partition I have is sda1, is about 100Mb and /boot is the mount point.

Not sure I completly understand all this but my system is working.
 
Old 02-23-2006, 06:46 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by MurX
satinet,

Thanks for clearing that up for me about the MBR. I thought that it was a separate partition.

Anyhow, the first partition I have is sda1, is about 100Mb and /boot is the mount point.

Not sure I completly understand all this but my system is working.
Things on hard drives live in "blocks" which are one or more "sectors".
The mbr lives in the first 512 byte block (block 0).
Partition tables for primary partitions live in this same block.
Partition tables for **extended** partitions live in blocks 1 and above
The actual partitions start in block 63 or 64, but I think this is convention and not a hard requirement.

Amadeus (the movie): After listening intently to Mozart's latest masterpiece, the emperor frowns, shakes his head, and declares: "No--too many notes."
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 09:37 PM
LILO booting probem with 2 partitions. conveco Linux - Newbie 2 09-15-2005 08:15 AM
Booting 4 OS's with three primary partitions.. rrfish72 Linux - General 8 11-14-2004 04:10 PM
dual booting and partitions jfyeh Linux - Newbie 2 02-13-2004 03:02 PM
Linux Partitions and Tri Booting Hawkster78 Linux - Hardware 2 01-08-2003 02:08 PM


All times are GMT -5. The time now is 11:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration