LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-18-2009, 04:55 AM   #1
ashruf
LQ Newbie
 
Registered: Dec 2007
Posts: 11

Rep: Reputation: 0
Question boot partion


I had harddisk with 3 partion and installed kubuntu 9.04
to the end of the harddisk then i added a four partion
and now i cant boot kubuntu
i installed grub on root partion
when installing kubuntu
i use indepndent bootloader
i used super grub disk with no use
i tried install grub on root again
seemes to install right but when
i reboot i still cant boot kubuntu
 
Old 08-18-2009, 05:23 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Please clarify a few things:

1. Did you install Kubuntu and then make the fourth partition, or did you install Kubuntu ON the fourth partition?

2. You say "I installed GRUB on the root partition." Some kind of bootloader must be on the MBR of the drive. What is on the MBR? Are you using chainloading?

3. What is the overall configuration?---i.e. what is on all of the other partitions? From a Linux system (or a Live CD), run "fdisk -l" as root and post the results here.
 
Old 08-18-2009, 05:23 AM   #3
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
edit: sorry, missed the previous post.

hello,
whats the exact error (or,if present,error message):
does the grub-menu come up and it fails after that or you aint got no grub-menu at all?

from the kubuntu-cd do this and post the output:
Quote:
fdisk -l
cat /boot/grub/menu.lst
or install gparted on the live and and have a gui-look at the table.

did try installing grub to (hd0) (at debian-install-media we got rescue-mode, dont know where to find it on the kubuntu-cd )

good luck

Last edited by j1alu; 08-18-2009 at 05:25 AM.
 
Old 08-18-2009, 12:51 PM   #4
ashruf
LQ Newbie
 
Registered: Dec 2007
Posts: 11

Original Poster
Rep: Reputation: 0
i installed kubuntu brfore adding fourth partion
and iuse osl2000
used to boot normally before adding the fourth partion
 
Old 08-18-2009, 01:15 PM   #5
ashruf
LQ Newbie
 
Registered: Dec 2007
Posts: 11

Original Poster
Rep: Reputation: 0
and i used supergrub disk to reinstall grub to
root partion it goes right with the install
but when rebooting icant boot kubuntu
 
Old 08-18-2009, 01:35 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
You will need to give us more information...
  1. What is installed on each one of the 4 partitions**? (What is "osl2000"?)
  2. Can you boot anything on the disk?
  3. Which partition are you calling the "root partition"? What is installed there?
  4. What bootloader is installed in the MBR? (This is the first sector of the drive, and is not associated with any partition.)
  5. Can you boot from a live CD and run things like fdisk as we have requested?

**Note: partition, not partion
 
Old 08-18-2009, 11:17 PM   #7
ashruf
LQ Newbie
 
Registered: Dec 2007
Posts: 11

Original Poster
Rep: Reputation: 0
OSL2000 IS A BOOTLOADER
vista on c then d - e -f partitions
kubuntu in the end of the disk
and i can boot vista
root partition where kubuntu is installed
whole kubuntu in one partition then swap after it
yes ican boot live cd and i wiil post what you requested
iam looking for kubuntu cd now
 
Old 08-18-2009, 11:37 PM   #8
ashruf
LQ Newbie
 
Registered: Dec 2007
Posts: 11

Original Poster
Rep: Reputation: 0
here is what you requested
cat /boot/grub/menu.lst
omitting empty partition (5)

Disk /dev/sda: 160.0 GB, 160041885696 bytes
240 heads, 63 sectors/track, 20673 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0xffff6d56

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2303 17409981 7 HPFS/NTFS
/dev/sda2 2304 4063 13305600 7 HPFS/NTFS
/dev/sda3 4064 5284 9230760 7 HPFS/NTFS
/dev/sda4 5285 20672 116333280 5 Extended
/dev/sda5 5285 6096 6131601 7 HPFS/NTFS
/dev/sda6 6097 11110 37897303+ 7 HPFS/NTFS
/dev/sda7 11110 18424 55295698+ 7 HPFS/NTFS
/dev/sda8 18424 19576 8707198+ 83 Linux
/dev/sda9 19576 20592 7679038+ 83 Linux
/dev/sda10 20592 20672 610438+ 82 Linux swap / Solaris

Disk /dev/sdb: 4127 MB, 4127195136 bytes
197 heads, 63 sectors/track, 649 cylinders
Units = cylinders of 12411 * 512 = 6354432 bytes
Disk identifier: 0x1ea0c401

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 650 4033543+ 6 FAT16


# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
## password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=7bd3feb6-bd97-4f27-b9a7-de8a1f47c2d3 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,7)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 8.04.1, kernel 2.6.24-21-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=7bd3feb6-bd97-4f27-b9a7-de8a1f47c2d3 ro quiet splash
initrd /boot/initrd.img-2.6.24-21-generic
quiet

title Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=7bd3feb6-bd97-4f27-b9a7-de8a1f47c2d3 ro single
initrd /boot/initrd.img-2.6.24-21-generic

title Ubuntu 8.04.1, memtest86+
root (hd0,7)
kernel /boot/memtest86+.bin
quiet

### 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/sda1
title Windows NT/2000/XP (loader)
root (hd0,0)
savedefault
chainloader +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows Vista/Longhorn (loader)
root (hd0,1)
savedefault
chainloader +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda3
title Windows NT/2000/XP
root (hd0,2)
savedefault
chainloader +1
 
Old 08-19-2009, 08:40 AM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
From your fdisk output:
Quote:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2303 17409981 7 HPFS/NTFS
/dev/sda2 2304 4063 13305600 7 HPFS/NTFS
/dev/sda3 4064 5284 9230760 7 HPFS/NTFS
/dev/sda4 5285 20672 116333280 5 Extended
/dev/sda5 5285 6096 6131601 7 HPFS/NTFS
/dev/sda6 6097 11110 37897303+ 7 HPFS/NTFS
/dev/sda7 11110 18424 55295698+ 7 HPFS/NTFS
/dev/sda8 18424 19576 8707198+ 83 Linux
/dev/sda9 19576 20592 7679038+ 83 Linux
/dev/sda10 20592 20672 610438+ 82 Linux swap / Solaris
This tells us that you have NINE partitions (not counting the extended). How does this relate to your statement that you installed a 4th partition after installing Kubuntu?
You have a total of 6 Windows partitions, which---if they are formatted--should be seen by Windows as C thru H. Then you have two Linux partitions, plus swap. From what you have supplied, we can't know for sure which one is "root", but the menu.lst file implies that it is sda8 (hd0,7 in GRUB's syntax).

The GRUB menu.lst file appears normal for what the Kubuntu installer would have set up.

The main issue seems to be that you put GRUB on the Linux partition instead of the MBR. This would mean that you need to configure your bootloader to chainload to that partition. I am not familiar with your bootloader, but the documentation should tell you how to do this.

You can also install GRUB to the MBR from a live CD.

It might be just as easy to reinstall Kubuntu and have it put GRUB in the MBR. But first, make sure you know what all those partitions are, and delete the ones you don't need.

Naturally, you'll back up any important data before doing any of this.....

Last edited by pixellany; 08-20-2009 at 07:31 AM.
 
Old 08-19-2009, 10:22 AM   #10
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
ashruf,

Boot from any distro Live CD whatever is available on you now.
Once booted, open terminal enter these commands:

root@host--#: grub (a grub prompt opens)

grub> root (hd0,7) <press Enter>
grub> setup (hd0) <press Enter>
grub> quit <press Enter>

REBOOT. Your Linux should run this time.
--------------------x

If grub prompt doesn't come after issuing "grub" command, do these:

root@host--#: mkdir /mnt/mylinux
root@host--#: mount /dev/sda8 /mnt/mylinux
root@host--#: chroot /mnt/mylinux
root@host--#: grub-install /dev/sda
(alternate command here is: root@host--#: grub-install hd0 this should also do under normal conditions.)

REBOOT. Your linux should run this time.
--------------------x

By the way, to learn more about Grub commands and how it works visit and read this page.

Hope this helps. Check back how it goes.

Good luck and enjoy your linux.

Last edited by malekmustaq; 08-19-2009 at 10:28 AM.
 
Old 08-22-2009, 12:43 PM   #11
ashruf
LQ Newbie
 
Registered: Dec 2007
Posts: 11

Original Poster
Rep: Reputation: 0
you mean by installing grub to MBR
IT will detect partitions where linux installed
can i use linux grub disk to boot with
then drop to command line and install grub to MBR
 
Old 08-22-2009, 03:41 PM   #12
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
The GRUB installer does not automatically detect anything. After you install it, you have to setup to config file to match what you have on your system.

I don't know what the "linux grub disk" is, but any Linux Live CD should have GRUB.

The "booting" link below in my sig has the basic procedure for installing GRUB---and there are links to the GRUB manual, etc.

You never answered my other questions (my previous post to this thread)
 
Old 08-23-2009, 02:29 PM   #13
ashruf
LQ Newbie
 
Registered: Dec 2007
Posts: 11

Original Poster
Rep: Reputation: 0
i used super grub disk to install grub to MBR
it did and ican boot all windows oses
but icant boot linux still
and yes i have 2 linux installtions
one ubuntu 64
the other kubuntu 9.04
you mean after installing grub to MBR
I STILL shoud do something to my linux install
so it can boot
and ihave 3 primary partitions all have windows
 
Old 08-23-2009, 02:36 PM   #14
ashruf
LQ Newbie
 
Registered: Dec 2007
Posts: 11

Original Poster
Rep: Reputation: 0
and i want ask if i made ghost image of a
linux install and later i made restore of it
can i restore it to any partition i like
not the orignal partition and by installing grub
to MBR will it boot or i shoud restore the image
to the orignal partition so it can boot again
 
Old 08-23-2009, 03:35 PM   #15
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by ashruf View Post
i used super grub disk to install grub to MBR
it did and ican boot all windows oses
but icant boot linux still
..
you mean after installing grub to MBR
I STILL shoud do something to my linux install
so it can boot
What I said was that you have to edit the configuration file for GRUB. The link I mentioned is only one of many, many places with the instructions for this.

When you installed GRUB, you had to specify a "root partition"---for GRUB, this means the partition that contains /boot/grub/menu.lst----this is the file that you need to edit to get everything to boot.
 
  


Reply



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
increase boot partion size dappa_don Linux - Newbie 7 02-04-2009 08:47 AM
problem mounting a linux partion from another ext3 partion fkeith Linux - Hardware 1 10-14-2007 07:33 PM
Need help with partion for dual boot (xp/kubuntu) AltUlster Linux - Newbie 5 01-04-2006 01:28 PM
how do i move files from my windows partion to my linux partion awesome_man Linux - Newbie 2 01-30-2004 12:51 PM
Must "/boot" partion be installed in the primary partion? domeili Linux - Newbie 9 11-01-2003 08:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:13 AM.

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