| |
06-10-2008
|
#1 (permalink)
| | Just Joined!
Join Date: Mar 2007
Posts: 17
| [SOLVED] Grub installed on wrong HD, now that HD is dead I have two hard drives, my Raptor is technically my primary HD (physically) although it has nothing but my games on it and Windows/Ubuntu is on the other HD (my real primary drive). It seems when I installed Ubuntu it installed Grub on the Raptor rather than the larger drive that Ubuntu is actually on. So I had Grub on my raptor loading Ubuntu on my other hard drive if that makes sense.
Anyway my Raptor seems to have died so now Grub doesn't work. How can I get back into Ubuntu? If I tell it to boot off my main drive it boots Windows only. |
| Looking for Linux Hosting? Click Here
|
06-10-2008
|
#2 (permalink)
| | Linux Enthusiast
Join Date: Oct 2007 Location: Tucson AZ
Posts: 740
| The default installation for Grub on most Linux distributions is to install to the mbr of the first hardrive so if your Raptor drive was seen by the BIOS as the first drive, that's where Grub would be installed. This is not automatic like it is with windows where you get no choice but usually the last item to choose in your Linux installation is where to put the bootloader.
Have you removed the Raptor drive? Do you still have the Ubuntu CD? If so, or if you have another Live CD you could use that to reinstall Grub or you could download the SuperGrubDisk and use it to repair your bootloader. Super Grub Disk Official Webpage
Post the output of "fdisk -l" if you have a Live CD to use. |
| |
06-10-2008
|
#3 (permalink)
| | Super Moderator
Join Date: Jun 2006 Location: Chandigarh, India
Posts: 20,697
| You have to edit menu.lst and /etc/fstab files before re-installing GRUB using SuperGRUB CD.
Boot up from Ubuntu CD, mount root partition of Ubuntu and post the contents of /boot/grub/menu.lst and /etc/fstab files here.
__________________ It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein New Users: Read This First |
| |
06-10-2008
|
#4 (permalink)
| | Just Joined!
Join Date: Mar 2007
Posts: 17
| fdisk -l just attempts to boot into Windows.
No the Raptor is still installed for the moment. I submitted a RMA ticket with WD. Yes I still have a Ubuntu CD. I can boot into Ubuntu from the Live CD (but it doesn't use the version on the HD). Not sure how to tell it to fix Grub and put it on the other HD. |
| |
06-10-2008
|
#5 (permalink)
| | Super Moderator
Join Date: Jun 2006 Location: Chandigarh, India
Posts: 20,697
| Boot up from Ubuntu CD ( version doesn't matter ), open Terminal and execute this Post output here.
__________________ It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein New Users: Read This First |
| |
06-10-2008
|
#6 (permalink)
| | Just Joined!
Join Date: Mar 2007
Posts: 17
| Quote:
Originally Posted by devils casper You have to edit menu.lst and /etc/fstab files before re-installing GRUB using SuperGRUB CD.
Boot up from Ubuntu CD, mount root partition of Ubuntu and post the contents of /boot/grub/menu.lst and /etc/fstab files here. | fstab Code: # /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb2
UUID=5a738528-fa33-4d7b-a9c4-9531f29094d6 / ext3 defaults,errors=remount-ro 0 1
# /dev/sdb5
UUID=5cfc2dbd-eb66-4e59-bf71-5aae75101727 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
menu.lst Code: # 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 change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default saved
## 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=5a738528-fa33-4d7b-a9c4-9531f29094d6 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,1)
## 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, kernel 2.6.24-17-generic
root (hd1,1)
kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=5a738528-fa33-4d7b-a9c4-9531f29094d6 ro quiet splash
initrd /boot/initrd.img-2.6.24-17-generic
quiet
title Ubuntu 8.04, kernel 2.6.24-17-generic (recovery mode)
root (hd1,1)
kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=5a738528-fa33-4d7b-a9c4-9531f29094d6 ro single
initrd /boot/initrd.img-2.6.24-17-generic
title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd1,1)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=5a738528-fa33-4d7b-a9c4-9531f29094d6 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet
title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root (hd1,1)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=5a738528-fa33-4d7b-a9c4-9531f29094d6 ro single
initrd /boot/initrd.img-2.6.24-16-generic
title Ubuntu 8.04, kernel 2.6.24-15-generic
root (hd1,1)
kernel /boot/vmlinuz-2.6.24-15-generic root=UUID=5a738528-fa33-4d7b-a9c4-9531f29094d6 ro quiet splash
initrd /boot/initrd.img-2.6.24-15-generic
quiet
title Ubuntu 8.04, kernel 2.6.24-15-generic (recovery mode)
root (hd1,1)
kernel /boot/vmlinuz-2.6.24-15-generic root=UUID=5a738528-fa33-4d7b-a9c4-9531f29094d6 ro single
initrd /boot/initrd.img-2.6.24-15-generic
title Ubuntu 8.04, kernel 2.6.22-14-generic
root (hd1,1)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=5a738528-fa33-4d7b-a9c4-9531f29094d6 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet
title Ubuntu 8.04, kernel 2.6.22-14-generic (recovery mode)
root (hd1,1)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=5a738528-fa33-4d7b-a9c4-9531f29094d6 ro single
initrd /boot/initrd.img-2.6.22-14-generic
title Ubuntu 8.04, kernel 2.6.20-16-generic
root (hd1,1)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=5a738528-fa33-4d7b-a9c4-9531f29094d6 ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
quiet
title Ubuntu 8.04, kernel 2.6.20-16-generic (recovery mode)
root (hd1,1)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=5a738528-fa33-4d7b-a9c4-9531f29094d6 ro single
initrd /boot/initrd.img-2.6.20-16-generic
title Ubuntu 8.04, memtest86+
root (hd1,1)
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/sdb1
title Windows Vista/Longhorn (loader)
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
fdisk -l info: Code: Disk /dev/sda: 74.3 GB, 74355769344 bytes
255 heads, 63 sectors/track, 9039 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x99b9f51f
Device Boot Start End Blocks Id System
/dev/sda1 1 9040 72610816 7 HPFS/NTFS
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xfe3867d4
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 22887 183832031+ 7 HPFS/NTFS
/dev/sdb2 22888 30088 57842032+ 83 Linux
/dev/sdb3 30089 30401 2514172+ 5 Extended
/dev/sdb5 30089 30401 2514141 82 Linux swap / Solaris
Disk /dev/sdc: 2030 MB, 2030043136 bytes
129 heads, 32 sectors/track, 960 cylinders
Units = cylinders of 4128 * 512 = 2113536 bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 961 1982448 6 FAT16
Partition 1 has different physical/logical endings:
phys=(968, 128, 32) logical=(960, 63, 32)
|
| |
06-10-2008
|
#7 (permalink)
| | Super Moderator
Join Date: Jun 2006 Location: Chandigarh, India
Posts: 20,697
| You have to edit both files. /etc/fstab Code: # /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb2
/dev/sda2 / ext3 defaults,errors=remount-ro 0 1
# /dev/sdb5
/dev/sda5 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
menu.lst file ( first title block and last title Windows block) Code: title Ubuntu 8.04, kernel 2.6.24-17-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-17-generic root=/dev/sda2 ro quiet splash
initrd /boot/initrd.img-2.6.24-17-generic
quiet
title Windows Vista/Longhorn (loader)
root (hd0,0)
chainloader +1
Save files, set Ubuntu Hard Disk as Primary and boot up from SuperGRUB CD.
Select Fix Linux Boot Loader ( GRUB ) option.
__________________ It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein New Users: Read This First |
| |
06-16-2008
|
#8 (permalink)
| | Just Joined!
Join Date: Mar 2007
Posts: 17
| Thanks for the help, got it all fixed now. |
| |
06-16-2008
|
#9 (permalink)
| | Super Moderator
Join Date: Jun 2006 Location: Chandigarh, India
Posts: 20,697
| Glad to help you ! 
__________________ It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein New Users: Read This First |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |