LinuxQuestions.org
Register a domain and help support LQ
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 01-14-2013, 07:52 AM   #1
abcde597
Member
 
Registered: Oct 2012
Location: Alabama, US
Distribution: Several Debian Based Distros
Posts: 57

Rep: Reputation: Disabled
Angry Help? I installed Ubuntu (Tobisha usb hdd) And no matter what I do I get grub errors?


I installed Ubuntu onto an external Tobisha USB harddrive (500 GB), and no matter what I do, it refuses to boot on anything but the computer it was installed on. Grub doesn't work properly, and I'm thrown to a Rescue prompt everytime I try to boot on my laptop.
Any ideas? I can give more details/screenshots if requested.
I'm lost.
 
Old 01-14-2013, 08:26 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,366
Blog Entries: 2

Rep: Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981
Always present all the details you have (error messages, screenshots, whatever). Otherwise it is very difficult for us to help you. Remember, we do not have access to your system, so we can't know what is going on if you don't tell us.
 
Old 01-14-2013, 10:00 AM   #3
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,484

Rep: Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696
Quote:
I installed Ubuntu onto an external Tobisha USB harddrive (500 GB), and no matter what I do, it refuses to boot on anything but the computer it was installed on.
You probably installed the Ubuntu Grub2 on the mbr of the drive of the computer on which you used to install Ubuntu. Post more info by going to the site below, read the instructions, download and run the bootinfoscript and either review it or post it here for help:

http://sourceforge.net/projects/bootinfoscript/
 
Old 01-14-2013, 05:21 PM   #4
abcde597
Member
 
Registered: Oct 2012
Location: Alabama, US
Distribution: Several Debian Based Distros
Posts: 57

Original Poster
Rep: Reputation: Disabled
Attached are the results of running bootinfoscript...
I'm a little lost/
______________________________
In the years I've worked with Linux, I've never had to deal with fixing Grub.
__________________________________________________________________________
What I'm working with is the 12.10.
I also have BT installed.
Attached Files
File Type: txt results.txt (23.7 KB, 30 views)

Last edited by abcde597; 01-14-2013 at 06:20 PM.
 
Old 01-14-2013, 09:53 PM   #5
celticdevildog
LQ Newbie
 
Registered: Jan 2013
Location: New Mexico
Distribution: RHEL, SuSE, CentOS, bt, LFS
Posts: 21

Rep: Reputation: Disabled
If I understand you correctly you have windows, bt on the physical machine and ubuntu on an external drive.

First question I have is

Quote:
Grub doesn't work properly, and I'm thrown to a Rescue prompt everytime I try to boot on my laptop.
Can you not start your windows/bt computer?

Grub is installed on both drives. Does the external drive need to boot by itself or is it just a drive to house Ubuntu for this computer?

This is the current partitions of your two drives

Code:
sda1:   Windows
      sda2:
      sda5: BackTrack 5 R3 - 32 Bit
      sda6:  swap
    
      sdb1: Ubuntu 12.10
      sdb2: 
      sdb5:  swap
You could try running the following command on backtrack and it should give you some output that will tell you what "bootable" OSes it found

Code:
update-grub
If it finds your Ubuntu boot information it will automatically update the main grub file for you and you shouldn't need the other grub file unless you need to start that drive as a "primary" drive on another computer.
 
Old 01-14-2013, 10:02 PM   #6
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,484

Rep: Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696
Since you have Grub2 installed to the mbr of the external drive pointing to the Ubuntu partition, you would need to select the external drive as first boot priority in the BIOS of whatever machine you attach it to and boot from, your laptop for instance. Have you done that? What do you have on the laptop for operating system and bootloader?

Quote:
core.img is at this location and looks
in partition 72 for .
??Partition 72 doesn't look right??

Last edited by yancek; 01-14-2013 at 10:05 PM.
 
Old 01-15-2013, 05:18 AM   #7
abcde597
Member
 
Registered: Oct 2012
Location: Alabama, US
Distribution: Several Debian Based Distros
Posts: 57

Original Poster
Rep: Reputation: Disabled
My external drive needs to boot itself.
It's supposed to replace a USB drive I used on a day to day basis to boot a laptop I have no harddrive for, nor do I have the money to buy one for.
And I set it as the primary device to boot from in the BIOS, and it attempts to boot, but no matter what I do, my external hdd gives me an Error and throws me onto a "grub rescue> prompt."
 
Old 01-15-2013, 06:33 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,366
Blog Entries: 2

Rep: Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981
Quote:
Originally Posted by abcde597 View Post
my external hdd gives me an Error
Would be helpful to know which error exactly you get. As I stated before, always present all the details you have, if you want to get the best help.
 
Old 01-15-2013, 07:35 PM   #9
abcde597
Member
 
Registered: Oct 2012
Location: Alabama, US
Distribution: Several Debian Based Distros
Posts: 57

Original Poster
Rep: Reputation: Disabled
I don't have the exact error message, but it was something along the lines of
Quote:
(hd0,msdos1)/ Error: Trying to read or write outside of disk.
Then I get:
grub rescue>
I just tried hooking it up to my other box (A tower, not my laptop)
And it works just fine...
I'm extremely confused now.
 
Old 01-15-2013, 08:05 PM   #10
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,484

Rep: Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696
Quote:
(hd0,msdos1)/ Error: Trying to read or write outside of disk.
The next time you try to boot it on your laptop, make a note of the above error. Your grub.cfg file for Ubuntu on sdb1 shows (hd1, msdos1). You might also run blkid and see if the uuid in the sdb1 grub.cfg file is correct.
 
Old 01-16-2013, 07:39 AM   #11
abcde597
Member
 
Registered: Oct 2012
Location: Alabama, US
Distribution: Several Debian Based Distros
Posts: 57

Original Poster
Rep: Reputation: Disabled
The exact error message is
Quote:
error: attempt to read or write outside of disk 'hd0'.
 
Old 01-16-2013, 09:16 AM   #12
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,484

Rep: Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696
If you don't have any other hard drive on the laptop (just using the external with Ubuntu) it is probably seeing the drive as (hd0). You could try booting Backtrack with your external attached, mount the Ubuntu partition and change the entry for Ubuntu to (hd0) rather than (hd1) in the grub.cfg file set root= line.
 
Old 01-16-2013, 12:06 PM   #13
celticdevildog
LQ Newbie
 
Registered: Jan 2013
Location: New Mexico
Distribution: RHEL, SuSE, CentOS, bt, LFS
Posts: 21

Rep: Reputation: Disabled
Quote:
Originally Posted by abcde597 View Post
The exact error message is
Quote:
error: attempt to read or write outside of disk 'hd0'.
So here is the part of the grub that is causing that error

Code:
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-453415c6-c117-4867-8106-bd9f9e5d134a' {
recordfail
	gfxmode $linux_gfx_mode
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  453415c6-c117-4867-8106-bd9f9e5d134a
	else
	  search --no-floppy --fs-uuid --set=root 453415c6-c117-4867-8106-bd9f9e5d134a
	fi
	linux	/boot/vmlinuz-3.5.0-21-generic root=UUID=453415c6-c117-4867-8106-bd9f9e5d134a ro   quiet splash $vt_handoff
	initrd	/boot/initrd.img-3.5.0-21-generic
}
The grub.conf file on the Ubuntu disk is looking for root on hd1. When it is the ONLY drive in your system it is most like to be at position hd0 hence your error. So the line above should read:
Code:
set root='hd0,msdos1'
You can try yancek's suggestion and boot into your BT machine, mount this drive and edit the grub.conf file to match the root location.
 
Old 01-18-2013, 12:24 PM   #14
abcde597
Member
 
Registered: Oct 2012
Location: Alabama, US
Distribution: Several Debian Based Distros
Posts: 57

Original Poster
Rep: Reputation: Disabled
I tried your suggestion, and it fixed nothing. I can't even get the Grub 2 Boot menu.
 
Old 01-18-2013, 04:36 PM   #15
celticdevildog
LQ Newbie
 
Registered: Jan 2013
Location: New Mexico
Distribution: RHEL, SuSE, CentOS, bt, LFS
Posts: 21

Rep: Reputation: Disabled
Quote:
Originally Posted by abcde597 View Post
I tried your suggestion, and it fixed nothing. I can't even get the Grub 2 Boot menu.
Is it still erroring at the same spot? And are you getting to the grub rescue prompt?
Quote:
error: attempt to read or write outside of disk 'hd0'.
It would be nice to get some of the line before this error too. That may point to something else we can try.

If you can get to your grub rescue prompt try the following and let us know what it says:
Code:
ls
ls /boot/grub
ls (hd0,1) *note if (hd0,1) doesn't work try (hd0,msdos1)
ls (hd0,1)/boot

ls (hd0,5)
You're looking for grub.cfg, vmlinuz, and linux-x.x.x and other such required boot files. Let us know what the output of those commands are.
 
  


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
(Advanced) Booting Ubuntu installed on HDD from encrypted USB stick or similar i00 Ubuntu 2 03-27-2011 09:18 AM
I installed ubuntu 9.04 to my Maxtor external hdd. I have no internal hdd. I can boot dont33 Linux - Newbie 1 08-13-2009 04:13 PM
Installed SUSE 10.2 onto WD MyBook USB External, GRUB Error 17, and other errors asaharyev Linux - General 9 02-24-2007 11:42 PM
Does it matter what part of the disk grub is installed to if it is chainloaded to? dr_zayus69 Linux - Software 1 03-05-2005 07:07 AM
Newly installed HDD boot problems using GRUB felixmvg Linux - Laptop and Netbook 1 02-25-2005 06:51 PM


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