LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 04-04-2003, 08:46 AM   #1
Creep
LQ Newbie
 
Registered: Dec 2002
Distribution: Gentoo & Debian
Posts: 25

Rep: Reputation: 15
Bootloader/MBR-problem


Hi, I'm all new to FreeBSD, and to *BSD's in general, and it's working fine for me so far. I'm dualbooting with Windows XP, which is on the first partition on the drive. When i installed FreeBSD 5.0 it corrupted my WinXP-partition somehow, so after a few days of BSD-experimenting, i wanted to install WinXP again. I made a fresh install and everything, but now my bootloader is missing. I don't have a diskdrive because mine is broken right now, so i can't access FreeBSD. I've tried using the CD to install the bootloader again, which i used to be able to do with various Linux-dists, but it hasn't worked so far.

My question is, how do i get to a shell of some sorts in FreeBSD so i can install the bootloader again, and how do i install it again? Lilo was very effective on this, and GRUB too, but i have zero knowledge of the FreeBSD-bootloader.

Thanks in advance
 
Old 04-06-2003, 05:03 AM   #2
Creep
LQ Newbie
 
Registered: Dec 2002
Distribution: Gentoo & Debian
Posts: 25

Original Poster
Rep: Reputation: 15
23 views, but no answer what so ever? Someone must have at least one tip to share. I would be surprised if something like this hasn't ever happened to any of you
 
Old 04-06-2003, 05:27 AM   #3
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
I'm not familiar with BSD's bootloader either, so all i can offer is, if you desperately need to get into windows, grab a windows bootdisk, boot into DOS and type: fdisk /mbr and that will place windows bootloader in the MBR.
 
Old 04-06-2003, 05:49 AM   #4
Creep
LQ Newbie
 
Registered: Dec 2002
Distribution: Gentoo & Debian
Posts: 25

Original Poster
Rep: Reputation: 15
I AM in windows. My problem is that i can't get into FreeBSD. I have a windows bootloader in the MBR, and i want to know how i replace that with a BSD-bootloader without formatting my BSD-drive and risking that my windows-partition gets corrupted again.
 
Old 04-06-2003, 05:58 AM   #5
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
I'm not sure if LILO can boot BSD, I don't see why it wouldn't.

What problems do you have of not being able to install LILO? Just grab a slackware CD, boot off the CD, and install LILO into the MBR...
 
Old 04-06-2003, 06:10 AM   #6
Creep
LQ Newbie
 
Registered: Dec 2002
Distribution: Gentoo & Debian
Posts: 25

Original Poster
Rep: Reputation: 15
Hmm... I'm thinking about it. Thanks
 
Old 04-06-2003, 07:37 AM   #7
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
Just to reassure you, LILO boots FreeBSD no problem. I think FreeBSD has its own multiboot capable bootloder, but I could never find out how to use it, and like GrimReaper says, it's really easy just to get a Slackware CD or somesuch and install LILO in your MBR, so long as you know the syntax of the config file.

Alex
 
Old 04-06-2003, 08:35 AM   #8
Creep
LQ Newbie
 
Registered: Dec 2002
Distribution: Gentoo & Debian
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks alot for the help, but will FreeBSD be able to run the lilo-executable so i can configure it all?
 
Old 04-06-2003, 10:24 AM   #9
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
No, LILO only runs in Linux. But if you happen to have a bootable Linux CD hanging around, it's the easiest choice. You don't need to actually install Linux to use LILO.

Alex
 
Old 04-09-2003, 10:48 AM   #10
kenulla
LQ Newbie
 
Registered: Apr 2003
Posts: 13

Rep: Reputation: 0
Download a copy of linux that fits on a floppy and is bootable.
Tom's boot disk is nice. (search at google)
Boot the floppy. During the boot process note the partitions discovered by the kernel.
determine which device file in the /dev directory represents
your BSD root partition. try mounting/viewing all of them if necessary.
once you find your BSD root partition, create a directory and mount it using this directory as a mount point.
now you should have access to your BSD boot loader.
Don't forget to chroot, or you won't be able to do anything
 
Old 04-09-2003, 11:19 AM   #11
Creep
LQ Newbie
 
Registered: Dec 2002
Distribution: Gentoo & Debian
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by kenulla
Download a copy of linux that fits on a floppy and is bootable.
Tom's boot disk is nice. (search at google)
Boot the floppy. During the boot process note the partitions discovered by the kernel.
determine which device file in the /dev directory represents
your BSD root partition. try mounting/viewing all of them if necessary.
once you find your BSD root partition, create a directory and mount it using this directory as a mount point.
now you should have access to your BSD boot loader.
Don't forget to chroot, or you won't be able to do anything
As i said:

Quote:
Originally posted by Creep
I don't have a diskdrive because mine is broken right now
but thanks for the help anyway
 
  


Reply



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
Bootloader (MBR) erased by XP (different ISSUE) Cr7pt0r Linux - Newbie 3 05-25-2005 08:48 PM
Install So Bootloader is On Floppy/CDROM No Change to MBR fortezza Fedora - Installation 7 02-08-2005 06:56 PM
Change bootloader - not in MBR Andy@DP Red Hat 2 04-09-2004 04:10 AM
How to install Grub bootloader to MBR from command line sleddog Linux - Software 2 04-08-2004 02:17 PM
SuSE 9.0 Pro: Reinstalling the bootloader on MBR ihsus Linux - Newbie 10 03-25-2004 09:50 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

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