LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices


Reply
  Search this Thread
Old 07-16-2004, 11:04 AM   #1
Alterscape
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
FC2 MBR Fix issues -- strange sfdisk output


I started with a working WinXP box with the following configuration:

c: 30gb WD physical disk (/dev/hda) - FAT32 partition
d: 80gb Maxtor physical disk (/dev/hdb) - NTFS boot partition

I read the advisory regarding FC2/Windows dualboot issues, so loaded up FC2 rescue and used fdisk -l /dev/hda to get the following info: 3739 cyl, 255 heads, 63 sectors.

I then started the FC2 install with the command >linux hda=3739,255,63 as per the advisory.

using FC2 installer, I deleted the FAT32 partition on c: and created a 1024 mb swap and filled the rest of the space with an ext2 linux partition. Install reported a problem with hdd geometry but I went ahead anyway, thinking my initial command had things covered. FC2 install finished alright, booted. I had to edit rc.sysinit to get my 3c905A NIC working, but that shouldn't matter. I rebooted, chose "other" at the GRUB prompt, and got the infamous error.

Next, I tried the sfdisk fix as documented in the advisory. Here's the output from my first stage. There were no warnings, so this is unedited:
Code:
# partition table of /dev/hda
unit: sectors

/dev/hda1 : start=       63, size= 57962457, Id=83, bootable
/dev/hda2 : start= 57962520, size=  2104515, Id=82
/dev/hda3 : start=        0, size=        0, Id= 0
/dev/hda4 : start=        0, size=        0, Id= 0
and this is what happened at the second step:
Code:
cat MyPartitionTable.txt | sfdisk --no-reread -H255 /dev/hdaWarning: HDIO_GETGEO says that there are 16 heads
 
Disk /dev/hda: 59598 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
 
   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/hda1   *      0+   3607    3608-  28981228+  83  Linux
/dev/hda2       3608    3738     131    1052257+  82  Linux swap
/dev/hda3          0       -       0          0    0  Empty
/dev/hda4          0       -       0          0    0  Empty
New situation:
Units = sectors of 512 bytes, counting from 0
 
   Device Boot    Start       End   #sectors  Id  System
/dev/hda1   *        63  57962519   57962457  83  Linux
/dev/hda2      57962520  60067034    2104515  82  Linux swap
/dev/hda3             0         -          0   0  Empty
/dev/hda4             0         -          0   0  Empty
Successfully wrote the new partition table
 
Re-reading the partition table ...
BLKRRPART: Device or resource busy
The command to re-read the partition table failed
Reboot your system now, before using mkfs
 
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
What strikes me as odd is the fact that its trying to re-read the partition table despite --no-reread being specified at the commandline.

Anybody have any thoughts?
 
  


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
Using Linux's fdisk to erase or fix a MBR? Comatose51 Linux - Software 29 03-24-2014 05:31 PM
by tring to fix the MBR i damage the MBR that was help... AKAKAK Fedora 4 03-21-2005 08:18 AM
How to fix MBR? snakeo2 Linux - Newbie 1 03-20-2005 04:59 PM
Fix corrupted MBR on dualboot Machine Jingle Linux - Software 12 07-10-2004 03:13 PM
Can anyone help me to fix my mbr? Thug21 Mandriva 19 05-10-2004 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation

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