LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-16-2004, 07:55 AM   #1
rharvey@cox
Member
 
Registered: Aug 2003
Location: Victoria, Texas
Distribution: Gentoo
Posts: 63

Rep: Reputation: 15
fdisk /mbr


I know I shouldn't have forgotten this, but I have. I'm trying to install grub on the mbr where Windoze is residing. I've installed gentoo on another partition and can reach it with grub boot disks, no problem. I've somehow screwed up the mbr and

grub> setup (hd0)

is not writing to the mbr.

I have my old dos disks but the command fdisk /mbr isn't working.

What is the correct syntax for using fdisk from the floppy to fix the mbr of the first SCSI disk on the system?

Thanks.
 
Old 02-16-2004, 10:29 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Tell it where to look for its stage{1,2} files first. Grub counts from zero so all numbers are one less than you're used to. For example, if you root is on /dev/hda5 change the Xin this for a 4
Code:
grub
grub> root (hd0,X)
grub> setup (hd0)
 
Old 02-16-2004, 12:19 PM   #3
rharvey@cox
Member
 
Registered: Aug 2003
Location: Victoria, Texas
Distribution: Gentoo
Posts: 63

Original Poster
Rep: Reputation: 15
I"ve done that. I'm actually working with disk copy (dd) of a working disk with a functional grub setup on the mbr, so I'm quite sure it's a corruption of the mbr and not my setting up grub on the mbr.
 
  


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
Fdisk /MBR Eugney Slackware 39 08-23-2011 09:30 AM
fdisk /mbr in Linux? wayneinmpls Linux - Newbie 6 12-20-2005 11:27 AM
Grub - fdisk /MBR lucho707 Linux - Software 1 11-30-2005 11:07 PM
why won't my mbr fdisk /mbr? jamessp007 Mandriva 13 01-03-2004 01:41 AM
Life after fdisk /mbr amijinx Linux - Hardware 3 10-01-2003 06:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:25 AM.

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