> [posted and mailed]
> > I have a Win95+Linux Slackware2.0 system configured with two main
> > partitions (msdos and ext2s) using LILO at boot.
> > I somehow messed up the Win95 partition (it now works only in safe mode,
> > while 'freezing' after a minute or so in normal mode)>.
> > Since I couldn't find out exactly what's wrong, I'd like to re-install
> > win95.
> > How should I procede?
> > (It seems I can't access the Win95 CD from safe mode, and, also, I'm not
> > sure if a new installation will destroy the LILO setup)
> Installing Win95 will overwrite the MBR, which will almost certainly
> overwrite your LILO setup. So, create a boot disk so that you can boot up
> Linux afterwards. I think you can do this from Slackware's setup program.
> If your computer came with Windows 95 preinstalled, it should also have
> come with a floppy disk with a DOS CD-ROM driver with which you can boot
> into DOS and run the Win95 installation from the CD. If the computer is
> older (came with DOS/Windows 3.1) then you should still have a DOS boot
> floppy and DOS CD-ROM drivers somewhere. If it's a custom-build computer,
> hopefully you've got the necessary files somewhere! In any case, find some
> way into DOS with CD-ROM drivers loaded and reinstall Win95.
> Now use that Linux boot disk to boot up Linux again, and run /sbin/lilo to
> put LILO back into the MBR.
Thanks a lot for your advice! for some reasons I decided for a 'clean'
install. This is what I did:
1) delete the dos partition
2) make a new primary dos partition with same size of the previous one
(1 and 2 with MSDOS fdisk)
3) format the partition (with MSDOS format)
4) install windows (with floppy-with-cddrive + Win95CD)
5) boot with a boot/root linux floppy and mount my linux file system (at
this point I didn't succeed in running lilo, probably because the file
system was now mounted at /mnt )
Hence, I did the following:
6) run linux fdisk to toggle the 'bootable flag' ('off' for dos
partition and 'on' for linux partition)
7) reboot
this was enough to have my lilo (and whole system) back again.
Is this in contrast with the fact that Win95 overwrites the MBR?
The only problem is that verifying my partition table I get:
Device Boot Begin Start End Blocks Id System
/dev/hda1 1 1 507 1022080+ 6 DOS 16-bit
Quote:>=32M
/dev/hda2 508 508 540 66528 82 Linux swap
/dev/hda3 * 541 541 1023 973728 83 Linux native
Partition 3 has different physical/logical endings:
phys=(1021, 63, 63) logical=(1022, 63, 63)
Partition 3: previous sectors 4124735 disagrees with total 4120703
62 unallocated sectors
This last message worries me. How can I fix this?
Thanks!
Claudio