LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-13-2004, 07:30 AM   #1
rosariowong
Member
 
Registered: Aug 2004
Posts: 44

Rep: Reputation: 15
How can I re-install grub from debian-sarge cd


I have winxp and debian sarge in my machine. Because I need re-install windows xp, now I have no grub.
What can I do?
How can I re-install grub from debian-sarge cd?
 
Old 12-13-2004, 10:58 AM   #2
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
I'm not exactly sure, you can however re-install grub with a knoppix CD,
type:
Quote:
1. mkdir /newboot

2. mount -t <fs type of /> /dev/<whatever your actual device is> /newboot

3. chroot /newboot /bin/bash
then either
Quote:
grub-install /dev/<whatever your actual / device is>
or
Quote:
grub-install /dev/<whatever your actual hard-disk device is>
I can't remember which it is for the grub-install command. So what I do is use both commands.
 
Old 12-13-2004, 01:31 PM   #3
hraposo
Member
 
Registered: Aug 2004
Posts: 370

Rep: Reputation: 30
thank you for your help. I've my debian again
 
Old 12-13-2004, 02:43 PM   #4
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
sure, I once messed up my MBR multiple times, so I re-installed grub like 5 times, I had to use my XP install CD to fix my MBR and then reinstall again. I'm glad I could help
 
  


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
Tired of Grub! (Debian Sarge AMD64) ssobeht Debian 4 03-31-2005 07:44 AM
Debian Sarge install Erik Thorsson Debian 3 01-23-2005 09:35 PM
re-install grub from the cd of debian sarge hraposo Debian 1 11-04-2004 08:13 AM
Debian Sarge netinst & businesscard, grub, changes drive geometry...Y? Outabux Debian 1 10-20-2004 11:57 PM
? Configuring GRUB on Debian/sarge to boot Knoppix from HDD? killerwh Debian 4 10-14-2004 10:38 AM

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

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