LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-10-2009, 02:24 PM   #1
killpotts
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Rep: Reputation: 0
Exclamation Ubuntu-Grub Madness ! Arrrgh !


Hello all.

I've been trying to install to an external Hard drive for quite some time, and I finally had some success in that all the files for boot have made it to the external device. Unfortunatly, despite that fact that I went into advanced and made sure GRUB was to be installed on the external, it still failed anywayy and I get a Grub error 21 when I attempt to boot from USB ( go figure. )

So now I am back in the live CD trying to figure out how to fix grub.

This is what I tried:

Code:
ubuntu@ubuntu:~$ sudo -s
root@ubuntu:~# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3c9e3c9d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *         767        9729    71995297+   7  HPFS/NTFS
/dev/sda2               1         766     6152863+   b  W95 FAT32

Partition table entries are not in disk order

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000065c7

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         305     2449881   83  Linux
/dev/sdb2             306       19457   153838440    5  Extended
/dev/sdb5           17901       19457    12506571   82  Linux swap / Solaris
/dev/sdb6             306       17180   135548374+  83  Linux
/dev/sdb7           17181       17900     5783368+  82  Linux swap / Solaris

Partition table entries are not in disk order
root@ubuntu:~# grub-install /dev/sdb1
Probing devices to guess BIOS drives. This may take a long time.
Could not find device for /boot: Not found or not a block device.
*Sdb is my external device that I tried to install linux to.


So basically I can't install Grub to the Boot partition because it "can't find device for /boot:" ? So it recognizes that its a boot sector but at the same time thinks it is not ?

I'm stumped

Is there anything I can do to fix Grub that can be done from the Live CD ?
 
Old 03-10-2009, 04:46 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Do you get this error with your external USB set to first boot priority in the BIOS? What does your menu.lst file look like? Can you post it?
 
Old 03-10-2009, 07:10 PM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Here is the problem if your booting from a usb drive your machine must have that ability to boot directly from bios to that drive. b error 21
Quote:
21 : "Unknown boot failure"

This error is returned if the boot attempt did not succeed for reasons which are unknown.
grub looks for a folder /boot then creates a grub folder and places the system setup in there. as root type grubconfig now choose simple. and put it on /dev/sdb1 and the mbr of sdb1. the reason you are not getting it to go to the only reason I can think of it is not mounted mount /dev/sdb1 grubconfig /dev/sdb1 Place boot loader on MBR /dev/sdb make sure you can boot from an USB device.
 
Old 03-12-2009, 03:13 AM   #4
killpotts
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Original Poster
Rep: Reputation: 0
I managed to get it booting using ( Super Grub disk ). It works...problem Is grub is still somehow on the internal ( dying ) HD which just barely works. I got it working in a way that booting from main HD gets me through and good ( Grub pointing to external from the internal ) but I would really like it if there was some way so that I could boot from USB and have it work. Currently if I try to boot from USB in my bios, it gives me grub error 22.

I suspect that there simply MUST be a way, and my failure is largely due to the fact that I really didn't understand what I was doing while botting from the Super Grub Disk. If anyone has a beginner friendly guide on SGD that explains how to set this up ( or has done it themselves ), that would be great.
 
Old 03-12-2009, 04:16 AM   #5
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
To avoid problems if you're going to install on SDB and boot from SDB be sure that at the moment of install SDB is the first boot HD and install GRUB in MBR of SDB
 
Old 03-12-2009, 07:14 AM   #6
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
Can you post your menu.lst

Some info on grub.

http://users.bigpond.net.au/hermanzone/p15.htm
 
  


Reply



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
Dual Boot Grub Madness wakeboarder3780 Ubuntu 14 02-27-2007 07:47 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
True Command Line...arrrgh help hitman_et Linux - Newbie 7 10-31-2004 06:10 AM
Samba, Grub, and other Linux madness GutterBall Linux - Newbie 1 10-24-2003 10:07 AM
arrrgh, what the ? zhenwu Linux - Networking 1 08-01-2001 03:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:08 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
Open Source Consulting | Domain Registration