Grub Loader entry overwritten


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Grub Loader entry overwritten
# 1  
Old 12-20-2004
Grub Loader entry overwritten

Hello,

One of my frend had a problem.
He had Windows XP installed on his system. Then he installed Red Hat Linux 8.0 in one of the partitions. After some time his XP got corrupt and then he reinstalled Windows XP. This over wrote the Grub loader entry, and due to this the grub loader is not displayed during the boot sequence althought the Linux installation is still intact.

One solution which i thought is that if he could get a boot disk, and boot through it and then make changes in the grub.conf file, though i have never tried this before. The problem is that here noone has a Red Lunx 8.0 boot disk.

Can anybody give a solution??

Thanks,
Rahul.
# 2  
Old 12-20-2004
You dont need a Redhat Bootdisk, but if you would like one, you might be able to find the correct imgs for creating one, on Planetmirror.
You can use any LiveCD OS, such as SLAX, RescueCD. To recover your system. Boot the LiveCD, then once running,
cd /
mkdir TEST


Now mount the root Redhat (partition) system under Test, create any additional directories or mount the other necessary partitions underneath, example:
mount /dev/hda1 /TEST

Then change the current ROOT directory to the newly mounted dir.
chroot TEST

Since your now running on the RedHat system you should be able to navigate to where you need to go to reinstall the bootloader, run whatever it is to force a rewrite of the boot record.
# 3  
Old 12-21-2004
If you still have the RH 8.0 media just insert CD1. When you get the 'boot' prompt type 'linux rescue'. Follow the prompts and it should locate your RH image. You will have to figure out what your boot device is at that point (like hd0, hd1, etc) and run 'grub-install'. Do a quick lookup on google and you will find plenty of info on grub-install.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to recover x86 Solaris 10 u10 boot record/grub menu overwritten by Debian 9?

I installed x86 Solaris 10 update 10 after Windows XP, later I removed xp and installed Debian 9 stretch on the same partition but, Debian couldn't find any other os so it deleted Solaris 10 grub or did something like that I couldn't got. I thought I would be able to recover the lost record by... (0 Replies)
Discussion started by: vectrum
0 Replies

2. How to Post in the The UNIX and Linux Forums

Help me, write a bash script to delete parent entry with all their child entry in LDAP UNIX server

Hi All, Please help me and guide me to write a bash/shell script on Linux box to delete parent entry with all their child entries. example: Parent is : ---------- dn: email=yogesh.kumar@wipro.com, o=wipro, o=in child is: ---------- dn: cn: yogesh kumar, email=yogesh.kumar@wipro.com,... (1 Reply)
Discussion started by: Chand
1 Replies

3. Red Hat

Can we specify which grub.conf to use in grub-install.

Hi, Can we specify which grub.conf to use while installing grub on RHEL. We are working on application which requires different grub configurations needed, depending on certain criteria we need to update grub with correct grub.conf. Can we use grub-install for this purpose? (4 Replies)
Discussion started by: successlin
4 Replies

4. Shell Programming and Scripting

file is getting overwritten

Hello All, I am writing a bash script on Solaris O/S. I looping through an array. For each iteration, i connect to the datatabase and use select statement. Output of which is redirected to .CSV file. here is the code for it. output="loop.csv" elements=${#currency_pair} ... (3 Replies)
Discussion started by: arundhati_s
3 Replies

5. Solaris

GRUB does not load Ms Winows loader

Hi to everyone ;) Yesterday I had to reinstall my dual boot because my bank smart card reader does not work with Solaris so I reinstalled Solaris after I installed Windows 7. When I turn on PC I get grub stage 2 and Solaris has made an entry in menu.lst but does not boot windows . Each OS... (4 Replies)
Discussion started by: solaris_user
4 Replies

6. Ubuntu

grub loader

i was dual booting vista and ubuntu but i have now taken off vista. however the microsoft bootloader is still in the list. how do i get rid of it and automatically boot into ubuntu? (13 Replies)
Discussion started by: bcbotha
13 Replies

7. Programming

variables overwritten

Hi, i have some problems with the following code: char *tab_path; char *sep=" \t\n"; char line; char *p; FILE * file; int i = 0; if(fgets(line,MAXLINE,file)!=NULL){ if((p=strtok(line,sep))!=NULL)tab_path=p; while((p=strtok(NULL,sep))!=NULL){ i++; ... (4 Replies)
Discussion started by: littleboyblu
4 Replies

8. Solaris

overwritten rootdisk?

Hi, The dump device on my system was set to /dev/dsk/c0t0d0s7. I have done a savecore -Lv on the system which worked fine. I'm wondering have I overwritten the rootdisk here by mistake? The system is still up but will need to be rebooted due to an error on it. Will it come back up? ... (8 Replies)
Discussion started by: gwhelan
8 Replies

9. UNIX for Dummies Questions & Answers

Grub and longhorn loader

I currently have Gutsy, Fedora Core 7, and Vista running on the same hard disk and want to add XP to it. XP will of course kill my grub which I can get back with supergrub easily. I have no worries that my two Linux Distros will come back when I do this because Grub only points from the mbr to... (2 Replies)
Discussion started by: dancingfool
2 Replies

10. UNIX for Dummies Questions & Answers

grub problem- keeps rebooting as soon as it tries to do grub

Hi, I installed solaris 10 a few weeks ago. It was working fine during the past two weeks. However, now when I start to load to the drive, I get this problem: The BIOS screen comes up like normal, then screen goes blank and a message "Grub loading stage 2" flashes real quick then the computer... (1 Reply)
Discussion started by: moesays
1 Replies
Login or Register to Ask a Question