LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-24-2008, 04:15 PM   #1
swalker23
Member
 
Registered: Aug 2008
Location: Virginia, USA
Distribution: Kubuntu 10.04 x64
Posts: 85

Rep: Reputation: 15
Exclamation Editing menu.lst to boot vista on seperate HDD and to see the 3rd help


Here are my dilemmas, I have 3 hdds 1 with Kubuntu 1 I use as backup and another I just bought to install windows on.(all hooked up with SATA)
Kubuntu boots just fine with 2 HDD's installed but when I install the 3rd I get error 5 when grub is loading. I unplug the 3rd HDD and reset and Kubuntu boots as normal. Is this because my menu.lst has 2 HDD listed? What do I need to change in grub so I can dual boot windows and all 3 hdds are listed without getting error 5 when loading? Or will all this be easier if I back up kubuntu with clonezilla, install windows on 3rd HDD, reinstall kubuntu on orginal HDD, and then use clonezilla to restore my settings?

Here is my menu.lst:


# 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 3

## 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=26a225aa-4042-4819-9d57-0b2a87d14991 ro

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

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

## 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-19-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=26a225aa-4042-4819-9d57-0b2a87d14991 ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet

title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=26a225aa-4042-4819-9d57-0b2a87d14991 ro single
initrd /boot/initrd.img-2.6.24-19-generic

title Ubuntu 8.04.1, memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST
 
Old 09-24-2008, 04:17 PM   #2
swalker23
Member
 
Registered: Aug 2008
Location: Virginia, USA
Distribution: Kubuntu 10.04 x64
Posts: 85

Original Poster
Rep: Reputation: 15
I don't have windows installed on 3rd HDD yet. I've read tutorials on how to dual boot off 2nd HDD but I can't find anything that list if you have 3 HDD's.

Last edited by swalker23; 09-24-2008 at 04:22 PM.
 
Old 09-24-2008, 06:24 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
Did you look up error 5 for Grub? Partition table invalid or corrupt! Very bad! Should be helpful if you post your output of fdisk -l (run command as root, lower case letter L not a number one).

Is there any reason why you're booting off the second drive (hd1)? How are you attaching the third drive? Are you putting it on a new/unused cable?
 
Old 09-24-2008, 06:47 PM   #4
swalker23
Member
 
Registered: Aug 2008
Location: Virginia, USA
Distribution: Kubuntu 10.04 x64
Posts: 85

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by yancek View Post
Did you look up error 5 for Grub? Partition table invalid or corrupt! Very bad! Should be helpful if you post your output of fdisk -l (run command as root, lower case letter L not a number one).

Is there any reason why you're booting off the second drive (hd1)? How are you attaching the third drive? Are you putting it on a new/unused cable?
I looked up error 5 but before I tried any of the solutions I thought about trying to boot without the 3rd drive connected and it booted to kubuntu so I didn't try any of the solutions. I think it is booting off of hd1 instead of hd0 because I had my back up HDD connected to SATA slot 1 and the main OS connected to SATA 4 or 5 slot. I guess during boot up(on fresh install) from SATA 1 to 6 and listed my backup as the hd0.(not sure don't understand much about hd0, hd1 ect.) It ended up like do to me really tired when building my pc and got mixed up which SATA cable was which. I am attaching the 3rd HDD with SATA cable as well. When installing the new HDD I went ahead and put the Kubuntu HDD to SATA1 and my 3rd HDD to SATA2 and lastly my backup HDD to SATA 4 or 5. As far as I know the cables are new, using the ones that came with my mobo. If I can't get any help by late tonight I'm just gonna try the clonezilla method I posted above and copy or print the menu.lst from the fresh install into the grub after the clonzilla install.

edit: Before I switched SATA slots my linux HDD was sdb1 and my backup was sda1.

here is the results of fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa87da347

Device Boot Start End Blocks Id System
/dev/sda1 1 59327 476544096 83 Linux
/dev/sda2 59328 60801 11839905 5 Extended
/dev/sda5 59328 60801 11839873+ 82 Linux swap / Solaris

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x726fa0f2

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 121601 976760001 7 HPFS/NTFS

Last edited by swalker23; 09-24-2008 at 06:48 PM.
 
Old 09-24-2008, 10:04 PM   #5
swalker23
Member
 
Registered: Aug 2008
Location: Virginia, USA
Distribution: Kubuntu 10.04 x64
Posts: 85

Original Poster
Rep: Reputation: 15
After waiting for help I went ahead and bit the bullet and did a fresh install of kubuntu after install windows. Figured than waiting for some more hours of help I could do a fresh install and just reinstall my apps and stuff.
 
  


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
grub menu.lst Won't boot Windows XP tschima Solaris / OpenSolaris 2 07-23-2008 09:35 PM
Vista, XP Ubuntu Triple Boot. What's the XP Entry for menu.lst? TerabyteUK Linux - Software 3 07-12-2007 11:59 PM
Editing /boot/grub menu.lst OpenSUSE 10.2 ceeleelewis Linux - Newbie 7 03-16-2007 10:05 AM
HELP HELP. boot problem! menu.lst I think King of Japan SUSE / openSUSE 3 10-12-2005 11:20 AM
Mandrake, no-hlt instruction and editing menu.lst zupidupi Mandriva 4 01-02-2005 11:50 PM


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