LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 12-31-2010, 11:10 AM   #1
android-eve
Member
 
Registered: Dec 2010
Posts: 36

Rep: Reputation: 1
Question GRUB2: sudo update-grub succeeds but...


OMG 10.04 is so cool!

But where did GRUB's menu.lst disappear?

OK, I found this thread, which explains that this a whole new game...

I was somewhat overwhelmed by the new syntax so I decided to simply rely on the automatic search feature of GRUB2 as explained in "Adding Entries to Grub 2" in this Basics document.

So I did so, but it didn't find the other Ubuntu 8.04 bootable partitions on my drive.

BTW, it seems that I have both 10_linux and 30_os-prober in /etc/grub.d:
Code:
drwxr-xr-x   2 root root  4096 2010-12-30 17:29 ./
drwxr-xr-x 127 root root 12288 2010-12-31 11:59 ../
-rwxr-xr-x   1 root root  4444 2010-07-01 17:26 00_header*
-rwxr-xr-x   1 root root  1416 2010-07-01 17:06 05_debian_theme*
-rwxr-xr-x   1 root root  4594 2010-07-01 17:26 10_linux*
-rwxr-xr-x   1 root root   918 2010-03-23 05:40 20_memtest86+*
-rwxr-xr-x   1 root root  6605 2010-07-01 17:26 30_os-prober*
-rwxr-xr-x   1 root root   214 2010-07-01 17:26 40_custom*
-rw-r--r--   1 root root   483 2010-07-01 17:26 README
What did I do wrong? What am I missing?

Update: Thanks to this thread, I managed to display the menu by simply commenting out the line:
Code:
GRUB_HIDDEN_TIMEOUT=0
Interestingly it contains the entries I edited by hand earlier into /etc/grub.d/40_custom:
Code:
menuentry "Ubuntu 8.04" {
set root=(hd0,0)
linux /boot/vmlinuz-2.6.24-28-generic
initrd /boot/initrd.img-2.6.24-28-generic
}

menuentry "Windows 7 Ultimate 64-bit" {
set root=(hd0,2)
chainloader (hd0,2)+1
}
But it refuses to boot either of these 2. So I am stuck for now with 10.04... What did I do wrong?

Last edited by android-eve; 12-31-2010 at 11:39 AM.
 
Old 12-31-2010, 12:05 PM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
There is no menu.lst in grub2, it is called grub.cfg and you are not supposed to edit it. I would think grub2 is confused with your location. Do the command sudo fdisk -l and post. Here is a good tutorial grub2
 
Old 12-31-2010, 12:23 PM   #3
android-eve
Member
 
Registered: Dec 2010
Posts: 36

Original Poster
Rep: Reputation: 1
Question

Quote:
Originally Posted by Larry Webb View Post
There is no menu.lst in grub2, it is called grub.cfg and you are not supposed to edit it.
Yes, I know. By the time I saw your reply I managed to edit /etc/grub.d/40_custom as described above. I am almost there, but there is GRUB2 panics when I select the non 10.04 partitions, saying "No such partition".

Quote:
Originally Posted by Larry Webb View Post
I would think grub2 is confused with your location. Do the command sudo fdisk -l and post.
Here it is:

Code:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6c806c80

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1992    16000708+  83  Linux
/dev/sda2            1993        5976    32001449+   5  Extended
/dev/sda3   *        5977       22685   134215042+   7  HPFS/NTFS
/dev/sda4           22686       24677    16000740   83  Linux
/dev/sda5            1993        3984    16000708+  83  Linux
/dev/sda6            3985        5976    16000708+  82  Linux swap / Solaris
I am trying to boot /dev/sda1 which has 8.04 (ext3) on it.

Thanks.
 
Old 12-31-2010, 12:26 PM   #4
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 54
Yeah, grub.cfg is not supposed to be edited unless there's something seriously wrong with your system (like when I once had to revert a grub change by removing "init=/usr/bin/startx" from the command line).
 
Old 12-31-2010, 12:37 PM   #5
android-eve
Member
 
Registered: Dec 2010
Posts: 36

Original Poster
Rep: Reputation: 1
Thumbs up

Quote:
Originally Posted by Larry Webb View Post
Here is a good tutorial grub2
Problem solved. Thanks to the tutorial you pointed at, I realized my mistake: GRUB2 starts counting partitions from 1, not from 0.
 
Old 12-31-2010, 02:06 PM   #6
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Glad to help, keep that tutorial handy unless your memory can retain more than mine.
 
  


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
[SOLVED] chainloading with grub and grub2 houndhen Linux - General 3 12-20-2010 01:39 PM
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 02:39 PM
How do I need to format grub entry to boot from grub2 into grub legacy? mitchell7man Linux - Software 6 04-03-2010 03:03 AM
grub vs grub2 miros84 Linux - Software 5 01-03-2010 05:41 AM
Grub Legacy or Grub2? RAVC Linux - Software 2 01-21-2006 09:43 AM


All times are GMT -5. The time now is 02:52 AM.

Main Menu
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