LinuxQuestions.org
Help answer threads with 0 replies.
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 08-11-2005, 09:19 PM   #1
Brnzwngs
Member
 
Registered: Jun 2005
Location: Netherlands
Distribution: Gentoo
Posts: 32

Rep: Reputation: 15
Accidental Install of Windows Second....Install GRUB?


Hello, my computer dual boots with Windows XP and Debian Linux. I recently reinstalled Windows due to some problems, but now I don't have a boot loader like GRUB so I can't get into Debian. I've tried to install GRUB using live cds such as knoppix but it says that my hd is a read only file system. Any ideas on how to reinstall GRUB? Thanks in advance!
 
Old 08-11-2005, 09:23 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 123Reputation: 123
Yeah, you just need to remout the filesystem read-write when you install grub.
  1. Boot from LiveCD
  2. Mount your root and boot partitions, read-write. (or remount if automounted)
  3. Chroot into your root partition
  4. Reinstall grub
 
Old 08-11-2005, 09:24 PM   #3
Brnzwngs
Member
 
Registered: Jun 2005
Location: Netherlands
Distribution: Gentoo
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks, but is there any way that you could give the exact commands? Thanks for your help!

hda1 is Windows
hda2 is Debian
 
Old 08-11-2005, 09:40 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 123Reputation: 123
Assuming the only data partition for Debian is hda2, it's something like this (after booting from the LiveCD):
Code:
# mkdir /mnt/debian
# umount /dev/hda2 2>/dev/null
# mount -o rw /dev/hda2 /mnt/debian
# chroot /mnt/debian /bin/bash
Then install grub in the normal fashion (admittedly, I use LILO)
 
Old 08-12-2005, 06:31 AM   #5
Brnzwngs
Member
 
Registered: Jun 2005
Location: Netherlands
Distribution: Gentoo
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks

Thank you it worked perfectly
 
Old 08-12-2005, 10:16 AM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 123Reputation: 123
I'm glad you were able to get it up and running again. Welcome back to Linux.
 
Old 08-12-2005, 01:10 PM   #7
Netizen
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Slackware and Ubuntu
Posts: 355

Rep: Reputation: 30
I am curious...how does one "accidently" install windows?
 
  


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
add windows install to GRUB menu sall Linux - Hardware 4 07-29-2005 05:41 PM
GRUB problem after Windows re-install kilroy155 Linux - Newbie 2 10-25-2004 09:44 PM
GRUB + Windows Install =What!? It's not Overwritten? ellakano Linux - Software 7 09-12-2004 05:57 PM
How to install GRUB from within Windows XP dubl59zy Linux - General 1 08-13-2004 11:10 PM
Windows XP corrupted after RH-Linux9 Grub install sajkumar Linux - Software 4 08-29-2003 01:30 PM


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