Linux - NewbieThis 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
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 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
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.
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
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
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
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.....
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.
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
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)
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
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.