Yes, windoze is VERY picky about where it wants it's system files. You
can't just copy them over. The easiest way to do this, is just to let
windoze have it's way.

If you are using win9x, give this a try:

* Boot from a normal windows boot floppy (make sure it's the same version
that your windows system is, ie, windows 98, make sure it's a windows98
boot disk) and run 'fdisk /mbr' (yes, the windows fdisk program). This is
an undocumented switch that format's the master boot record, so in this
case we are effectively removing lilo's boot sector install.

* The from the same boot floppy, run 'sys a: c:' this will copy the system
files from the floppy to the hard disk 'c:' in all of the right places.

* Reboot and make sure windows works. That is all that should happen, we
shouldn't see lilo at all at this point.

* Now, boot from a Linux rescue cd or floppy.

* Once you are up, 'chroot /dev/[your root partition]'

* Check /etc/lilo.conf and make sure you are happy with it.

* 'lilo'

* Reboot and tell me how it is.... :)


cheers,
sach


On Wed, 23 Jan 2002, Erik Curiel wrote:

>
> Windoze keeps some kind of information about the system (I'm not exactly
> sure what) in hidden files at the *end* of the drive (partition) it lives
> on.  Instead of using cp -a, which may miss those files, try dd and
> specify that it copy every single block from the old partition to the new
> (checking for bad blocks as it goes, of course).
>
> E
>
>
>
> On Wed, 23 Jan 2002, John Hunter wrote:
>
> >
> >
> > Ok, gurus, this got totally ignored at comp.os.linux.misc, so I hope
> > somebody here has more information for me.
> >
> > I have a dual boot linux/win98 system and use lilo to manage the boot
> > sector.  My hard drive was going bad on me, so I bought a new one.  I
> > partitioned it with fdisk, set the win98 section to fdisk hex code
> > 'c', which is FAT32, and formatted the win98 partition with
> > 'mkfs.msdos -F32'.  I copied the windows partition from the old to the
> > new drive with 'cp -a' (tried tar too, same result).  I also moved all
> > the linux partitions over.  Once I go the new hard drive set up, I
> > booted with a floppy and ran lilo on the new drive for my dual boot
> > system.  Lilo comes up fine when I boot, and my linux side runs
> > perfectly.  However, when I try to boot into windows, it prints a
> > about a dozen whacky ASCII chars (many in the ASCII range 127-255) to
> > the screen and freezes instantly.  To my untrained eye, this looks
> > like a problem on the boot sector of the drive.
> >
> > Below I'll show the my lilo file and printout of the fdisk
> > information.
> >
> > Any ideas what is wrong and how to fix it? Is the format command right
> > for the fat32 partition.  It went really fast, this made me
> > suspicious.  The MS formatter runs for much longer.  I can see the MS
> > partition when I mount it from linux.
> >
> >
> > Thanks,
> > John Hunter
> >
> > RHL 7.1
> >
> > ---------------------- lilo.conf ----------------------------
> > boot=/dev/hda
> > map=/boot/map
> > install=/boot/boot.b
> > prompt
> > timeout=300
> > message=/boot/message
> > linear
> > default=linux249
> >
> >
> > image=/boot/bzImage-2.4.9
> >     label=linux249
> >     initrd=/boot/initrd-2.4.2-2.img
> >     read-only
> >     root=/dev/hda6
> >     append="hdd=ide-scsi"
> >
> > other=/dev/hda2
> >     optional
> >     label=dos
> >
> > ----------------------- partition info -------------------------
> >
> >    Device Boot    Start       End    Blocks   Id  System
> > /dev/hda1             1         6     48163+  83  Linux
> > /dev/hda2             7      1919  15366172+   c  Win95 FAT32 (LBA)
> > /dev/hda4          1920      4866  23671777+   5  Extended
> > /dev/hda5          1920      2047   1028128+  82  Linux swap
> > /dev/hda6          2048      2111    514048+  83  Linux
> > /dev/hda7          2112      2366   2048256   83  Linux
> > /dev/hda8          2367      3004   5124703+  83  Linux
> > /dev/hda9          3005      4866  14956483+  83  Linux
> >
> >
> >
> > _______________________________________________
> > Bits mailing list
> > [EMAIL PROTECTED]
> > http://www.sugoi.org/mailman/listinfo/bits
> >
>
>

-- 

/*
  Sach Jobb
  [EMAIL PROTECTED]
  %s/windows/linux/g
*/


i called him and he
was like oh my god and i
was like oh my god


_______________________________________________
Bits mailing list
[EMAIL PROTECTED]
http://www.sugoi.org/mailman/listinfo/bits

Reply via email to