LinuxQuestions.org
Register a domain and help support LQ
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 02-06-2008, 01:24 PM   #1
JoshMan132
LQ Newbie
 
Registered: May 2007
Distribution: FreeBSD 7.0
Posts: 20

Rep: Reputation: 0
GRUB error


I have searched and searched the forums and found none that were like my problem, I installed ubuntu to my external hd, which is compatible with everything, and installed the boot loader to /dev/sda3 which is the root partition on my hd which I wish to boot from, had a clean install with no errors, but now when I restart and get to the grub menu I get error 22, no such partition when I try to boot my ubuntu partition, I went into the details and such and found that it says root (hd0,1). What would I put there to get it to boot from the sda3 on which I installed the boot loader.

EDIT: I figured that out, after booting to the grub screen I went into the grub shell command line and typed, find /boot/grub/stage1 and it came up with (hd0,2). But will that pose a problem when I unplug my external hd, since lots of people have problems with that.

Last edited by JoshMan132; 02-06-2008 at 02:00 PM.
 
Old 02-06-2008, 02:12 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,474

Rep: Reputation: 189Reputation: 189
I assume you have installed ubuntu on one partition, sda3, on your usb drive and you do not have a separate /boot partition. If your / partition is on sda3, then it will be designated (hdx,2) in grub at boot time, with "x" being determined by grub usually, but not always, based on where sda is in your bios setup boot order. If you switch things around in your bios boot order or add/remove additional hard drives, that x could potentially change. It's not clear exactly what problems you anticipate from all this. Could you please expand.
 
Old 02-07-2008, 12:16 AM   #3
JoshMan132
LQ Newbie
 
Registered: May 2007
Distribution: FreeBSD 7.0
Posts: 20

Original Poster
Rep: Reputation: 0
I do not have a separate /boot partition, and I haven't changed my BIOS and probably won't, and the only thing changing about these hard drives will be the external might be unplugged. I don't really know how to expand on this besides that.
 
Old 02-07-2008, 04:40 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,474

Rep: Reputation: 189Reputation: 189
Do you have linux also installed on your internal hard drive with it's own version of grub installed to the hard drive mbr? If so, are you booting your usb install of ubuntu from this internal hard drive grub?

You said:

Quote:
But will that pose a problem when I unplug my external hd, since lots of people have problems with that.
I'm trying to understand what kind of problems you are anticipating. If you have grub installed on your internal hard drive and are booting the usb install from that grub there could be issues if you remove the usb drive. If you are booting directly off the usb drive using the usb grub only, i.e. you're not chain loading the usb grub from the hd grub, I can't see how there could possibly be a problem.
 
Old 02-08-2008, 05:08 PM   #5
JoshMan132
LQ Newbie
 
Registered: May 2007
Distribution: FreeBSD 7.0
Posts: 20

Original Poster
Rep: Reputation: 0
I don't have grub saved in the MBR, and linux is all on the external hd, it boots fine and everything but I have to change where it thinks the root is from (hd1,2) to (hd0,2) every time.
 
Old 02-08-2008, 07:10 PM   #6
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,474

Rep: Reputation: 189Reputation: 189
Have you tried editing your /boot/grub/menu.lst file? That's the configuration file for grub. You would want to make sure root is designated (hd0,2) instead of (hd1,2) in menu.lst.
 
Old 02-08-2008, 07:46 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
You confusing us all (and maybe yourself) with incomplete information.
- did you have another system installed prior to this ???
- which O/S, and which bootloader ???

If you installed to a partition you wouldn't even see a boot menu unless you chainload into it. Let's see a "fdisk -l" listing to get us going. For Ubuntu derivatives you'll need sudo; for Fedora it's /sbin/fdisk ...

Last edited by syg00; 02-08-2008 at 07:47 PM. Reason: removed redundant question
 
Old 02-09-2008, 03:33 AM   #8
JoshMan132
LQ Newbie
 
Registered: May 2007
Distribution: FreeBSD 7.0
Posts: 20

Original Poster
Rep: Reputation: 0
Windows XP was/is installed on the internal, and I didn't write any grub thing on the mbr.

/dev/sda1 9641 34703 201318516 c W95 FAT32 (LBA)
/dev/sda2 2 122 971932+ 5 Extended
/dev/sda3 * 123 9640 76453335 83 Linux
/dev/sda4 34704 59766 201318547+ c W95 FAT32 (LBA)
/dev/sda5 2 122 971901 82 Linux swap / Solaris

Partition table entries are not in disk order


By the way, the FAT32 partitions are for storage for both windows and linux.
 
  


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
Sofware RAID 1 + Fedora Core 3 + Boot Error L1 + GRUB 21 ERROR najeebsyed2 Linux - Hardware 0 10-25-2007 02:20 PM
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 11:29 AM
Error Grub stage2 loading error (using FC6) on seperate hdd Anifield Linux - Newbie 7 03-20-2007 02:14 PM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 09:33 AM


All times are GMT -5. The time now is 01:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration