LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-12-2010, 02:20 PM   #1
helpmeoutplease
Member
 
Registered: May 2010
Posts: 37

Rep: Reputation: 16
Ubuntu 10.04 Grub Help please, anyone.


If you can help me i would greatlt appreciate it. Thank you Pleeeeeeeeeeeeaase

First I - Have windows 7 installed on 120gb Harddrive (workes Great)

Second - purchase 2nd Hard drive 500gb- installed Ubuntu 10.04


The problem is , i have 2 harddrive installed with 2 different operationing systems

Sata 1 - Windows 7
Sata 2 -Ubuntu 10.04

note: if i switch them around that Sata 1 boots first.

WHICH OS SHOULD BOOT 1ST ?

WHEN I BOOT UBUNTO, I get no Grub menu to select which OS.

Can someone please help me with the Grub so it can recognize both OS.

everytime i try to locate the Grub through my terminal i get nothing , can someone please,please, help. Knowledge of Linux is Required

Last edited by helpmeoutplease; 05-12-2010 at 02:53 PM.
 
Old 05-12-2010, 03:10 PM   #2
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,221

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
If the menu is hidden, holding the shift key should display the grub menu.
 
Old 05-12-2010, 03:15 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
First, you need to calm down a bit. We are all volunteers, and sometimes it takes a few minutes for people to respond.

Please confirm that you can boot into either system by switching the drive order in the BIOS setup. (If you were switching cables---DON'T!!!)

Then--when running in Ubuntu, open a terminal and enter "sudo fdisk -l" (no quotes, and ell, not one) Post the results here.
 
Old 05-12-2010, 03:26 PM   #4
helpmeoutplease
Member
 
Registered: May 2010
Posts: 37

Original Poster
Rep: Reputation: 16
Sorry, i,m just having so much trouble next time i 'll be a little more patient , thank you for your help.

I can boot into both drives when i switch the drive order...

results:

gabe@gabe-desktop:~$ sudo fdisk -l
[sudo] password for gabe:

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 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: 0x2f4e2f4d

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 14594 117115904 7 HPFS/NTFS

Disk /dev/sdb: 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: 0x00004b4a

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 58336 468581376 83 Linux
/dev/sdb2 58336 60802 19803137 5 Extended
/dev/sdb5 58336 60802 19803136 82 Linux swap / Solaris
gabe@gabe-desktop:~$

Last edited by helpmeoutplease; 05-12-2010 at 03:35 PM.
 
Old 05-12-2010, 03:39 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Please confirm that you can boot into either system by switching the drive order in the BIOS setup. (If you were switching cables---DON'T!!!)
You missed this question!!

Your fdisk output suggests that you are booting from the first drive--otherwise, the drive with the Linux partition would have been listed first.

Also, try to see your boot menu at startup using what colorpurple said---or possibly just by hitting any key after the initial POST (power-on self test)

And---open a terminal and enter "cd /boot/grub" and then "ls". If there is a file named "menu.lst", post the contents of that also. The best way to do this without all the comments and junk is:
Code:
grep -v '^#' menu.lst
 
Old 05-12-2010, 03:46 PM   #6
helpmeoutplease
Member
 
Registered: May 2010
Posts: 37

Original Poster
Rep: Reputation: 16
All i did is set the drive that has Linux installed to startup first, thats all, then my c:drive (windows7)2nd.

result :

gabe@gabe-desktop:/boot/grub$ grep -v '^#' menu.lst
grep: menu.lst: No such file or directory
gabe@gabe-desktop:/boot/grub$

Last edited by helpmeoutplease; 05-12-2010 at 03:47 PM.
 
Old 05-12-2010, 03:54 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
As I suspected, it looks like you have GRUB-2. That means that the configuration file is in /etc. Look for a directory something like "/etc/grub"

Again, I need to know if you can boot into Windows by changing the boot order in the BIOS.

AND, I need to know if you can somehow see the grub menu during startup.


I'll be off the forum for about an hour----be sure to post as much info as possible---for whoever drops by to help.
 
Old 05-12-2010, 04:01 PM   #8
helpmeoutplease
Member
 
Registered: May 2010
Posts: 37

Original Poster
Rep: Reputation: 16
Yes , when i change the boot order to start from the other drive (my C:drive) it loads Windows 7 fine.

no Grub Menu


Result

gabe@gabe-desktop:~$ /etc/grub
bash: /etc/grub: No such file or directory
gabe@gabe-desktop:~$ /etc
bash: /etc: is a directory
gabe@gabe-desktop:~$ grub
Probing devices to guess BIOS drives. This may take a long time.

[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> find/boot/grub/stage1
find/boot/grub/stage1

Last edited by helpmeoutplease; 05-12-2010 at 04:18 PM.
 
Old 05-12-2010, 04:21 PM   #9
helpmeoutplease
Member
 
Registered: May 2010
Posts: 37

Original Poster
Rep: Reputation: 16
O.K , fix the cableing issue to be correct ( will not touch again )

both O.S BOOT GOOD but still no Grub Menu

I ran this again:

gabe@gabe-desktop:~$ sudo fdisk -l
[sudo] password for gabe:

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: 0x00004b4a

Device Boot Start End Blocks Id System
/dev/sda1 * 1 58336 468581376 83 Linux
/dev/sda2 58336 60802 19803137 5 Extended
/dev/sda5 58336 60802 19803136 82 Linux swap / Solaris

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 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: 0x2f4e2f4d

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sdb2 13 14594 117115904 7 HPFS/NTFS
gabe@gabe-desktop:~$
 
Old 05-12-2010, 04:28 PM   #10
helpmeoutplease
Member
 
Registered: May 2010
Posts: 37

Original Poster
Rep: Reputation: 16
Downloaded this from the website (ubuntu and no grub, very dissapointed, maybe because its 64bit, i haven't got a clue) if anyone can aid in my support please post some suggestions. I'll keep tring to find this grub, were ever it is. (lol) Thank you

Last edited by helpmeoutplease; 05-12-2010 at 05:02 PM.
 
Old 05-12-2010, 05:18 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
sorry---downloaded what from what website?

The GOOD NEWS: We are now very close to making all this work.

In looking for /etc/grub, you went a bit off the road. to find or print a file, you have to use commands like:

ls (list files)
cat filename (print out the contents of a file)
more filename (same as cat, but one page at a time)

If you just enter "/etc/grub" the system thinks you are trying to run that file.

If you enter "/etc" it tells you (correctly) that /etc is a directory

"grub" is a legitimate command, but we don't want that right now.

To find the grub config. file, you can look in the Ubuntu documentation, or you can try this:
Code:
find /etc -name "grub*"
OR
ls -R /etc | grep grub
If you find grub, then use the "cd" command to go into the directory and look for a configuration file.


Finally, thinking back to your earlier threads, have you read up on the basic terminal commands?
 
Old 05-12-2010, 06:45 PM   #12
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
I have a Ubuntu 10.04 LTS installed on a USB drive, but I think the GRUB2 stuff is the same:

Basically, you need to create a GRUB2 stanza in your /etc/grub.d/40_custom file. Here's what I have on my USB drive:
Code:
$ ls /Ubuntu/
bin   cdrom  etc   initrd.img  lib64       media  opt   root  selinux  sys  usr  vmlinuz
boot  dev    home  lib         lost+found  mnt    proc  sbin  srv      tmp  var
$ ls /Ubuntu/etc/grub.d
00_header  05_debian_theme  10_linux  20_memtest86+  30_os-prober  40_custom  40_custom~  README
$ cat /Ubuntu/etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "Fedora (2.6.32.11-99.fc12.x86_64) (Init 3)" {
        insmod ext2
        set root='(hd1,2)'
        search --no-floppy --fs-uuid --set 5085bc30-beb9-4038-b976-5dfa486d90a3
        linux /vmlinuz-2.6.32.11-99.fc12.x86_64 root=UUID=8e1866f0-75d6-4488-8724-a62fcbc46368 quiet 3 LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rd_plytheme=charge
        initrd /initramfs-2.6.32.11-99.fc12.x86_64.img
}
Note the file /etc/grub.d/30_os-prober listed above. That GRUB2 code should locate all your Windows bootable partitions and make them available in the GRUB boot menu.
 
Old 05-12-2010, 06:47 PM   #13
spiderbatdad
Member
 
Registered: Nov 2009
Location: mote of dust suspended in a sunbeam
Distribution: Arch Linux / Ubuntu 10.10
Posts: 40

Rep: Reputation: 17
not sure what direction this thread is taking, but generally /etc/grub/grub.cfg is not to be edited. Instead /etc/default/grub or possibly /etc/grub.d/* depending what you're after. Running
Code:
$ sudo update-grub
first is your best bet...and of course again after any changes are made.
Sorry PTrenholme, was posting at the same time as you and had not seen your post.

Last edited by spiderbatdad; 05-12-2010 at 06:50 PM.
 
Old 05-12-2010, 06:50 PM   #14
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,221

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Try this:
Quote:
sudo gedit /etc/default/grub
then comment out the
Quote:
GRUB_HIDDEN_TIMEOUT=0
by putting a # at the beginning of that line, save file then run
Quote:
sudo update-grub
 
Old 05-12-2010, 06:58 PM   #15
spiderbatdad
Member
 
Registered: Nov 2009
Location: mote of dust suspended in a sunbeam
Distribution: Arch Linux / Ubuntu 10.10
Posts: 40

Rep: Reputation: 17
Quote:
Originally Posted by colorpurple21859 View Post
Try this: then comment out the by putting a # at the beginning of that line, save file then run
Yes and add:
Code:
GRUB_TIMEOUT="10"
for 10 secs. etc.
 
  


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
Ubuntu 7.10 Dual Boot with XP, ubuntu partition deleted, grub 1.5 error 22 narchy Linux - Newbie 11 02-07-2011 04:54 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 01:55 PM
Installed FC5> Wrote over Ubuntu MBR: How do i add Ubuntu Partition to Grub Loader Free_beer Ubuntu 4 10-02-2006 07:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:43 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