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 05-02-2005, 04:48 PM   #1
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Protecting the bootloader from a windows reformat


I'm using win 2k and FC3 at moment,

a time will come when win2k needs formatting but that will overwrite the MBR so GRUB won't be accessible.

I need something that allows me to boot back into Linux so i can reinstall grub, or just a different way of setting it up/booting the system so it doesn;t get overwritten with a reformat

Making a floppy from within fedora isn;t really an option either as my floppy drive ain't working properly.

thanks
 
Old 05-02-2005, 04:58 PM   #2
0perat0r
Member
 
Registered: Jul 2004
Location: New Jersey, US
Distribution: Red Hat Linux WS version 3
Posts: 126

Rep: Reputation: 15
I've had a similar set of questions about GRUB of late, as I have been having problems and will probably end up restoring Windows MBR and booting Linux off of floppies. Anyway, this link http://linuxplanet.com/linuxplanet/tutorials/5361/4/ offers some insight, but it implies that you can get to a grub> prompt in the first place, like by using a Knoppix CD, for example. You also may want to consult the GRUB manual at http://www.gnu.org/software/grub/manual/grub.html.
 
Old 05-02-2005, 05:04 PM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Yep, knoppix or a small linux live CD (DamnSmallLinux maybe?) is the way to go. That will let you boot to a live linux CD, then you can mount your own / partition somewhere, chroot to that directory and run grub-install /dev/hda to put grub back on the mbr (follow actual instructions though, that's just what I remember from one time I used grub...I use Lilo on my own machine)
 
Old 05-02-2005, 05:37 PM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Original Poster
Rep: Reputation: 45
Thanks for a swift reply guys, i'll check out those links and sort something out, it's jus ta right nightmare, finally got fedora doing everything i want it to and didn;t want to have to go through it all again.

Sometimes when i've installed bootloader i've had the option of installing it somewhere besides /mbr would this help the problem?
 
Old 05-02-2005, 05:54 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
A nice feature of the grub shell is auto-completion. If you can access the /boot parition, you can load your systems "menu.lst" file and use that to boot your system.
 
Old 05-02-2005, 06:08 PM   #6
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Solus
Posts: 2,254

Rep: Reputation: 47
It's always a good idea to make yourself aa boot disk for emergencies.
 
Old 05-02-2005, 06:46 PM   #7
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Original Poster
Rep: Reputation: 45
Ok i checked out the links, but i'm a bit confused,

i think my best choice would be to download knoppix and if formatting windows then i should boot into the live cd and run the grub setup part.

however trying the command

grub at the moment gives me

bash: grub: command not found

so i wonder if it would work.

i think i want to make a floppy disk that i stick in each time the computer boots with grub on (i could do this on a seperate machine?) but the guide confused me a bit with which device etc....
 
Old 05-02-2005, 07:50 PM   #8
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
What about rescue mode on the CD's? You can't use an install cd to boot FC anymore? I haven't used FC for a while but you used to be able to boot the system by install cd 1.
 
Old 05-02-2005, 10:33 PM   #9
Intimidator
Member
 
Registered: Mar 2005
Distribution: FC4
Posts: 83

Rep: Reputation: 15
hey

I thing u r cdrom is working

Boot with u r first CD and then boot prompt

boot: linux rescue

$ chroot /mnt/sysimage
$ grub-install /dev/hda

the above grub-install fail sometimes so u have to

$ grub
grub> find /boot/grub/stage1
or

grub> find /grub/stage1

It will return something like

(hd0,8)

grub> root (hd0,8)
grub> setup (hd0,8)
grub> quit
 
Old 05-03-2005, 03:39 AM   #10
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Original Poster
Rep: Reputation: 45
Thanks alot, i was trying to boot from CD last night and after several options i got nowhere

However i am unable to run the grub command from inside fedora still

Last edited by ethics; 05-03-2005 at 04:09 AM.
 
Old 05-03-2005, 09:26 AM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
With the 2.6 kernel a boot floppy will simply contain the bootstrap loader for grub or lilo. An alternative is to run the mkbootdisk command to produce a CD ISO image file.
mkbootdisk --iso

If you don't have this command perhaps you have: mkrescue --iso.
 
Old 05-03-2005, 01:31 PM   #12
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
You know that grub-install has to be run as root? And does fedora definitely use grub, or does it use lilo?
 
Old 05-04-2005, 04:49 PM   #13
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Original Poster
Rep: Reputation: 45
I'm using Grub
 
  


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
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 10:55 PM
uninstall mandrkae 9.2 & bootloader & reformat partitions jkibbe Linux - Newbie 3 08-24-2004 09:36 PM
reinstall Windows bootloader extrasolar Slackware 7 02-06-2004 04:21 PM
reformat for Windows Kees Linux - Software 2 07-04-2002 07:26 PM
reformat from Linux to NT or Windows donsung Linux - General 5 11-04-2001 11:14 PM


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