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 03-19-2007, 07:16 PM   #1
cypherzero
LQ Newbie
 
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
Question Change GRUB config location


One external USB disk, partitioned as:
1. NTFS: General data
2. Linux Swap
3. EXT3: Ubuntu installed

One internal hard disk (NTFS)
1. NTFS: Windows XP installed.

My problem is thus:
When the computer starts it boots GRUB from the internal disk, unfortunately GRUB looks for it's config files on my external USB Disk and refuses to start without this disk displaying 'Error 21'.

This means I can't even boot Windows without having my second disk always attached.

Is it possible to change the location of the GRUB config files to my internal, NTFS Windows disk?

Last edited by cypherzero; 03-19-2007 at 07:18 PM.
 
Old 03-19-2007, 07:29 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Install GRUB for Windows/DOS; https://sourceforge.net/projects/grub4dos

Last edited by Lenard; 03-19-2007 at 07:31 PM.
 
Old 03-19-2007, 09:30 PM   #3
cypherzero
LQ Newbie
 
Registered: Mar 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Unhappy Ahh poo

Edit: grub4dos corrupted my boot sector and gave me a screen with GRUB GRUB GRUB GRUB, etc on it. I've managed to reinstall the original grub but I'm no further in solving my original problem

Last edited by cypherzero; 03-19-2007 at 09:39 PM.
 
Old 03-19-2007, 10:46 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
I have never tried this, but how about making a small ext3 partition on the internal drive?

Don't forget that grub must be installed based on where the config file is. It gets "hard-coded" to point to that location.

When I have 2 disks, I prefer putting all the OSes on one, and the data partitions on the other. This may be too big a change to deal with your issue.
 
Old 03-19-2007, 10:54 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,428

Rep: Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055
I used grub4dos early in its public life - seemed to work fine.
Options:
- create a boot partition on the internal disk as mentioned (gparted should handle this).
- Use the 'doze loader. Instal grub to a partition on the external, and copy the boot sector record to your 'doze system partition. Plenty of howtos here on LQ and on the wider net.
 
Old 03-20-2007, 12:03 AM   #6
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
... or just use another boot loader. GAG will do the job, it installs to the first sectors of your HDD, no boot partition needed, no need to worry about it's files.
 
Old 03-20-2007, 12:16 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,428

Rep: Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055
Yep, keep forgetting that handy little attribute.
 
Old 04-09-2007, 04:10 PM   #8
amphtechnology
LQ Newbie
 
Registered: Apr 2007
Posts: 1

Rep: Reputation: 0
Unhappy I installed ubantu on a flashdrive now error 21

i installed ubantu on a flash drive which then installed grub when the grub menu came up it had linux and xp i highlighed over linux and pressed enter the all this text came up and at the bottom it said kernel error so i waited 10 mins and nothing happed so i restarted an to booted up xp then i wiped the flash disk and then restarted the computer and now says grub error 21 i would really would be great if someone could fix this for me because i have inprortant data in the computer thanks Amph Technology

Last edited by amphtechnology; 09-29-2007 at 02:10 AM.
 
Old 04-09-2007, 05:51 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,428

Rep: Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055
Boot your XP CD ad hit <r> to get into Recovery Console when told.
Run fixmbr
Reboot.
 
  


Reply

Tags
boot, corrupted, disc, disk, ext3, grub, grub4dos, ntfs, partition, ubuntu, usb, windows


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] Can't change Suse 9.3 Grub location enrico_dvchp Linux - Hardware 2 05-20-2006 09:52 AM
Location iptables config file freakin'me Linux - Software 10 08-14-2005 09:01 AM
php config location in mandrake 10.1 CrazyPilot Mandriva 2 03-05-2005 08:38 PM
Config file organization/location Dark_Helmet Linux - General 2 05-24-2004 11:41 AM
location of iptables config file munisp Linux - Networking 1 12-13-2001 07:37 PM


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