From owner-freebsd-questions@FreeBSD.ORG Sun Oct 1 16:14:57 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E05B16A416 for ; Sun, 1 Oct 2006 16:14:57 +0000 (UTC) (envelope-from rambiusparkisanius@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7ACEA43D5D for ; Sun, 1 Oct 2006 16:14:55 +0000 (GMT) (envelope-from rambiusparkisanius@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so2032242pye for ; Sun, 01 Oct 2006 09:14:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VmhUKKYqxYMltoE5kH4IrnBqvecBSux/oSgic9OIiU5X5qhzwjioDsKAZo/LX7qq2SPXRCg5KihYA1lcZpwM+eRR3ZWdEXAMQLRu6jLbHFwSSKr7zg+S06WNW7dN4yRGXcCpr9jD48wJaVNUugn5Tc8sqNTiUYKjxWvzletrsVQ= Received: by 10.65.176.7 with SMTP id d7mr5788404qbp; Sun, 01 Oct 2006 09:14:54 -0700 (PDT) Received: by 10.65.115.2 with HTTP; Sun, 1 Oct 2006 09:14:54 -0700 (PDT) Message-ID: <89ce7f740610010914g152e0d60r792443e9d0acfe02@mail.gmail.com> Date: Sun, 1 Oct 2006 19:14:54 +0300 From: "Ivan \"Rambius\" Ivanov" To: freebsd-questions@freebsd.org In-Reply-To: <20060930214149.43208.qmail@web83110.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <89ce7f740609301355q6da91573r34d2f266c52119b9@mail.gmail.com> <20060930214149.43208.qmail@web83110.mail.mud.yahoo.com> Subject: Re: Restoring FreeBSD grub loader X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Oct 2006 16:14:57 -0000 Hello, Thank you for your response. On 10/1/06, backyard wrote: > > > --- "Ivan \"Rambius\" Ivanov" > wrote: > > > Hello, > > > > I installed FreeBSD 6.1 on one machine with grub > > boot loader. In the > > beginning there was only one entry in grub - namely > > FreeBSD. Later, I > > had to install Windows XP on the machine and of > > course, it destroyed > > grub and now I cannot boot FreeBSD. > > > > I tried with booting from the FreeBSD installation > > disk choosing Fixit > > option, but I could not use successfully > > grub-install command. > > > > My question is: how can I restore the FreeBSD grub > > loader? Could you > > please give me any hints or advance. Thank you very > > much in advance. > > > > Regards > > Ivan > > > > -- > > I would suggest you make a grub booting floppy disk > then you can escape to command mode once the disk > loades and install grub with > > root (hd0,0,a) # or wherever it is > setup (hd0 # again wherever it is > > assuming you have already placed the grub bootfiles on > your hard drive and configured menu.lst you should be > all set. I have only encountered one computer this > method failed. In fact, I am using a laptop that does not have a floppy drive, so I could not use booting floppy disks. > > you could alternatively flip the kernel tunable that > allows raw writes to the boot sectors of the disks. I > don't recall what it is but I think the grub docs talk > about it in the man or info pages. > > I'm supprised XP messed it up, 2000 seemed to respect > existing bootloaders... I fixed the problem in the following way: I have another FreeBSD laptop, so I copied its boot sector using the command # dd if=/dev/ad0s1a of=/mnt/bootsect.bsd bs=512 count=1 Then I used bootsect.bsd to to boot in FreeBSD via the NT loader (I found this link useful: http://www.unixguide.net/freebsd/faq/09.10.shtml). After I boot to FreeBSD I installed the grub loader. Regards Ivan -- Tangra Mega Rock: http://www.radiotangra.com