LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 07-22-2009, 09:45 AM   #1
jackgu1988
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 41

Rep: Reputation: 16
debian sid and grub2 problem


hi! i just installed grub2 on my acer aspire one checked that it was working properly after rebooting the machine, so i ran
Code:
upgrade-from-grub-legacy
after that i rebooted and i get grub version 1.5 loading and then error 15. what can i do? i have booted from an ubuntu 9.04 live usb but still can't find what the problem is.

thank you

Last edited by jackgu1988; 07-22-2009 at 09:52 AM.
 
Old 07-22-2009, 09:56 AM   #2
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
Sounds like your menu.lst has been changed, edited or is not there

please look at your /boot/grub/menu.lst

post your menu.lst here if unsure...
 
Old 07-22-2009, 10:02 AM   #3
jackgu1988
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 16
well, i already checked that and it doesn't seem to have changed since i ran upgrade-from-grub-legacy... check it out:

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-legacy-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         0

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

# 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=/dev/sda1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,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=

## 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=(single-user) single
# altoptions=(single-user 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		Chainload into GRUB 2
root		(hd0,0)
kernel		/boot/grub/core.img

title		컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴
root
		
title		When you have verified GRUB 2 works, you can use this command to
root

title		complete the upgrade:  upgrade-from-grub-legacy
root

title		컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴
root

title		Debian GNU/Linux, kernel 2.6.30-1-686
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.30-1-686 root=/dev/sda1 ro 
initrd		/boot/initrd.img-2.6.30-1-686

title		Debian GNU/Linux, kernel 2.6.30-1-686 (single-user mode)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.30-1-686 root=/dev/sda1 ro single
initrd		/boot/initrd.img-2.6.30-1-686

title		Debian GNU/Linux, kernel 2.6.26-2-686
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.26-2-686 root=/dev/sda1 ro 
initrd		/boot/initrd.img-2.6.26-2-686

title		Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.26-2-686 root=/dev/sda1 ro single
initrd		/boot/initrd.img-2.6.26-2-686

### END DEBIAN AUTOMAGIC KERNELS LIST
:/
 
Old 07-22-2009, 10:07 AM   #4
jackgu1988
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 16
well i think i found what the problem is. in my /boot/grub/grub.cfg instead of hd0,0 says hd0,1. do you think that if i change my menu.lst from hd0,0 to hd0,1 it will work?
 
Old 07-22-2009, 10:24 AM   #5
jackgu1988
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jackgu1988 View Post
well i think i found what the problem is. in my /boot/grub/grub.cfg instead of hd0,0 says hd0,1. do you think that if i change my menu.lst from hd0,0 to hd0,1 it will work?
no that didn't work
 
Old 07-22-2009, 10:28 AM   #6
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
If you went BACK to grub1
you need to rename your grub.conf to menu.lst
right?
or wrong?
 
Old 07-22-2009, 10:38 AM   #7
jackgu1988
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
If you went BACK to grub1
you need to rename your grub.conf to menu.lst
right?
or wrong?
actually i don't think that's the way you do it... did you mean to rename menu.lst_backup_by_grub2_postinst to menu.lst?
 
Old 07-22-2009, 10:46 AM   #8
jackgu1988
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 16
actually no this should be wrong because now i have grub2 installed and not grub1... there must be some other way... problem is that i can't do
Quote:
grub2-install /dev/sda
because i don't have grub2 installed on the usb and i can't install it because if i try to restart i will lose any changes that occured during my last session...
 
Old 07-22-2009, 10:47 AM   #9
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
a question
why did you install grub2 anyway?

are you trying to make a bootable usb?

why not use reg grub?
 
Old 07-22-2009, 10:57 AM   #10
jackgu1988
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 16
i just installed it because i thought it was a good idea... and since it loaded correctly before doing upgrade-from-grub-legacy i couldn't imagine that there would be such a problem. i have a bootable usb with ubuntu that i use to rescue my pc since aspire one does not have a cd drive.
 
Old 07-22-2009, 11:01 AM   #11
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
Oh, cause another member here was trying to use grub2 to install to usb
cause grub2 can boot iso images directly

which ubuntu do you have on usb?

What are you going to do now?
are you gonna re-install grub1 or what?
 
Old 07-22-2009, 11:12 AM   #12
jackgu1988
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 16
i am using ubuntu 9.04 on the usb. on my acer i am using debian sid and i am looking for a way to make debian boot because it returns
Quote:
grub: error 15
also bafore that it says grub version 1.5 (and not 2). i prefer getting grub2 to work fine but if it is hard turning back to grub1 would be fine.

thank you!
 
Old 07-22-2009, 12:47 PM   #13
jackgu1988
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 16
any ideas? i really need to save my pc from format
 
Old 07-22-2009, 01:00 PM   #14
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
grub error 15 means "file not found" right?

did you re-install grub, regualar grub?
 
Old 07-22-2009, 01:08 PM   #15
jackgu1988
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 16
but how can i re-install grub to my pc while i am booting from a usb?
 
  


Reply

Tags
grub2


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
will the ltmodem drivers work in debian sid (knoppix sid) maximalred Debian 5 05-29-2009 11:44 AM
Debian Sid Sound Problem rockymaxsource Linux - Hardware 3 09-24-2006 12:51 PM
Debian SID problem horatiub Debian 5 09-18-2005 04:48 PM
Problem with java in Debian (sid) yarjar Debian 2 06-19-2005 02:52 AM
Gnome 2.6 problem on Debian Sid(2.6.4) rmanocha Linux - Software 1 05-06-2004 02:45 AM


All times are GMT -5. The time now is 01:51 PM.

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