[clue-tech] Help Recovering from grub-install error

gthrelk at comcast.net gthrelk at comcast.net
Sat Mar 26 13:30:37 MST 2005


> gthrelk at comcast.net wrote:
> > Ok, I messed up - AGAIN!    
> > 
> > I have a dual-boot machine with Win 98se and Fedora 3 on separate disks.  I 
> was 
> > using grub for the dual boot but had a problem with Win 98se and did an 
fdisk 
> > /mbr to bypass the grub boot process.  After booting directly into Windows 
and 
> > fixing the windows problem,  I made the mistake of going to Linux and 
issuing 
> a 
> > grub-install  /dev/hda1 (first disk - first partition).  Now grub comes up 
> again 
> > but I can only boot into Fedora.
> 
> Where was grub before you started, hda or hda1?  What does "only boot to 
>   fedora mean"?  Is there a Windows option that doesn't boot or no 
> option at all?  If it doesn't boot, what does it say?
> 
> You haven't lost your data, everything about Windows is fine except the 
> boot partition.  You can copy off the data and reinstall, which might be 
> quickest, or you can understand your partition tables and MBRs well 
> enough to fix them (that's my vote, then you might learn enough not to 
> break them in the future).
> 
> I don't have time to speculate more at the moment, but send me the 
> output of these commands:
> 
> sudo dd if=/dev/hda bs=512 count=1 | xxd > hda.txt
> sudo dd if=/dev/hda1 bs=512 count=1 | xxd > hda1.txt
> 
> I'm not sure it matters, but the output of fdisk -l for each hard disk 
> might help too.
> 
> Dave
> _______________________________________________
> CLUE-tech mailing list
> CLUE-tech at clue.denver.co.us
> http://clue.denver.co.us/mailman/listinfo/clue-tech

Dave - 
Can't really tell you where grub was originally.  I would have thought that 
/dev/hda and /dev/hda1 both pointed to the same area i.e. the beginning of the 
first disk.  Looking at the results of your requested commands, I guess 
I've already learned something new since they show different results.  

I've attached the output of the fdisk -l and sudo command output.  Ignore 
the third disk, its a disk that I just hooked up that's empty.... space for me 
to copy if that's my only option.  If I must do the copy, as I can't seem to 
view the vfat files with windows, do you have a suggestion as to how best to 
copy using Linux?

Thanks for the help.

Gary

List 1 - fdisk -l
List 2 - sudo /dev/hda
List 3 - sudo /dev/hda1 



-------------- next part --------------

Disk /dev/hda: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        3738    30025453+   c  W95 FAT32 (LBA)
/dev/hda2            3739        7476    30025485    f  W95 Ext'd (LBA)
/dev/hda5            3739        7476    30025453+   b  W95 FAT32

Disk /dev/hdb: 20.5 GB, 20547841536 bytes
255 heads, 63 sectors/track, 2498 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1          13      104391   83  Linux
/dev/hdb2              14        2368    18916537+  83  Linux
/dev/hdb3            2369        2498     1044225   82  Linux swap

Disk /dev/hdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1        4943    39704616    c  W95 FAT32 (LBA)
/dev/hdc2            4944        9729    38443545    f  W95 Ext'd (LBA)
/dev/hdc5            4944        9729    38443513+   b  W95 FAT32
-------------- next part --------------
0000000: 33c0 8ed0 bc00 7cfb 5007 501f fcbe 1b7c  3.....|.P.P....|
0000010: bf1b 0650 57b9 e501 f3a4 cbbe be07 b104  ...PW...........
0000020: 382c 7c09 7515 83c6 10e2 f5cd 188b 148b  8,|.u...........
0000030: ee83 c610 4974 1638 2c74 f6be 1007 4eac  ....It.8,t....N.
0000040: 3c00 74fa bb07 00b4 0ecd 10eb f289 4625  <.t...........F%
0000050: 968a 4604 b406 3c0e 7411 b40b 3c0c 7405  ..F...<.t...<.t.
0000060: 3ac4 752b 40c6 4625 0675 24bb aa55 50b4  :.u+ at .F%.u$..UP.
0000070: 41cd 1358 7216 81fb 55aa 7510 f6c1 0174  A..Xr...U.u....t
0000080: 0b8a e088 5624 c706 a106 eb1e 8866 04bf  ....V$.......f..
0000090: 0a00 b801 028b dc33 c983 ff05 7f03 8b4e  .......3.......N
00000a0: 2503 4e02 cd13 7229 be46 0781 3efe 7d55  %.N...r).F..>.}U
00000b0: aa74 5a83 ef05 7fda 85f6 7583 be27 07eb  .tZ.......u..'..
00000c0: 8a98 9152 9903 4608 1356 0ae8 1200 5aeb  ...R..F..V....Z.
00000d0: d54f 74e4 33c0 cd13 ebb8 0000 0000 0000  .Ot.3...........
00000e0: 5633 f656 5652 5006 5351 be10 0056 8bf4  V3.VVRP.SQ...V..
00000f0: 5052 b800 428a 5624 cd13 5a58 8d64 1072  PR..B.V$..ZX.d.r
0000100: 0a40 7501 4280 c702 e2f7 f85e c3eb 7449  . at u.B......^..tI
0000110: 6e76 616c 6964 2070 6172 7469 7469 6f6e  nvalid partition
0000120: 2074 6162 6c65 0045 7272 6f72 206c 6f61   table.Error loa
0000130: 6469 6e67 206f 7065 7261 7469 6e67 2073  ding operating s
0000140: 7973 7465 6d00 4d69 7373 696e 6720 6f70  ystem.Missing op
0000150: 6572 6174 696e 6720 7379 7374 656d 0000  erating system..
0000160: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000170: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000180: 0000 008b fc1e 578b f5cb 0000 0000 0000  ......W.........
0000190: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00001a0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00001b0: 0000 0000 0000 0000 0000 0000 0000 8001  ................
00001c0: 0100 0cfe bf99 3f00 0000 db4d 9403 0000  ......?....M....
00001d0: 819a 0ffe 7f33 1a4e 9403 1a4e 9403 0000  .....3.N...N....
00001e0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00001f0: 0000 0000 0000 0000 0000 0000 0000 55aa  ..............U.
-------------- next part --------------
0000000: eb48 904d 5357 494e 342e 3100 0220 2000  .H.MSWIN4.1..  .
0000010: 0200 0000 00f8 0000 3f00 ff00 3f00 0000  ........?...?...
0000020: db4d 9403 3f39 0000 0000 0000 0200 0000  .M..?9..........
0000030: 0100 0600 f6f6 f6f6 f6f6 f6f6 f6f6 0302  ................
0000040: 8100 0080 41e4 0100 0008 fa80 ca80 ea53  ....A..........S
0000050: 7c00 0031 c08e d88e d0bc 0020 fba0 407c  |..1....... ..@|
0000060: 3cff 7402 88c2 52be 797d e834 01f6 c280  <.t...R.y}.4....
0000070: 7454 b441 bbaa 55cd 135a 5272 4981 fb55  tT.A..U..ZRrI..U
0000080: aa75 43a0 417c 84c0 7505 83e1 0174 3766  .uC.A|..u....t7f
0000090: 8b4c 10be 057c c644 ff01 668b 1e44 7cc7  .L...|.D..f..D|.
00000a0: 0410 00c7 4402 0100 6689 5c08 c744 0600  ....D...f.\..D..
00000b0: 7066 31c0 8944 0466 8944 0cb4 42cd 1372  pf1..D.f.D..B..r
00000c0: 05bb 0070 eb7d b408 cd13 730a f6c2 800f  ...p.}....s.....
00000d0: 84f0 00e9 8d00 be05 7cc6 44ff 0066 31c0  ........|.D..f1.
00000e0: 88f0 4066 8944 0431 d288 cac1 e202 88e8  .. at f.D.1........
00000f0: 88f4 4089 4408 31c0 88d0 c0e8 0266 8904  .. at .D.1......f..
0000100: 66a1 447c 6631 d266 f734 8854 0a66 31d2  f.D|f1.f.4.T.f1.
0000110: 66f7 7404 8854 0b89 440c 3b44 087d 3c8a  f.t..T..D.;D.}<.
0000120: 540d c0e2 068a 4c0a fec1 08d1 8a6c 0c5a  T.....L......l.Z
0000130: 8a74 0bbb 0070 8ec3 31db b801 02cd 1372  .t...p..1......r
0000140: 2a8c c38e 0648 7c60 1eb9 0001 8edb 31f6  *....H|`......1.
0000150: 31ff fcf3 a51f 61ff 2642 7cbe 7f7d e840  1.....a.&B|..}.@
0000160: 00eb 0ebe 847d e838 00eb 06be 8e7d e830  .....}.8.....}.0
0000170: 00be 937d e82a 00eb fe47 5255 4220 0047  ...}.*...GRUB .G
0000180: 656f 6d00 4861 7264 2044 6973 6b00 5265  eom.Hard Disk.Re
0000190: 6164 0020 4572 726f 7200 bb01 00b4 0ecd  ad. Error.......
00001a0: 10ac 3c00 75f4 c300 0000 0000 0000 0000  ..<.u...........
00001b0: 0000 0000 0000 0000 6973 6b2c 2061 6e64  ........isk, and
00001c0: 2074 6865 6e20 7072 6573 7320 616e 7920   then press any 
00001d0: 6b65 790d 0a00 0000 494f 2020 2020 2020  key.....IO      
00001e0: 5359 534d 5344 4f53 2020 2053 5953 7e01  SYSMSDOS   SYS~.
00001f0: 0057 494e 424f 4f54 2053 5953 0000 55aa  .WINBOOT SYS..U.


More information about the clue-tech mailing list