LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-27-2006, 03:24 PM   #1
scroft
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Rep: Reputation: 0
reinstalling windows 98 with debian + lilo


Hi, can anyone help me?

I've got a PC which I can quite happily boot into Debian with LILO, but windows98 gives me a bunch of error messages and I bascially need to reinstall it (according to the Microsoft website, anyway).

Is there any way in which I can do this without needing to reinstall Debian (I don't have any CDs and I don't have broadband so I'm not going to be downloading it and making some images either).

Any help much appreciated!

Thanks in advance.
 
Old 12-27-2006, 03:43 PM   #2
bitva
Member
 
Registered: Dec 2002
Location: Los Angeles
Distribution: Debian
Posts: 72

Rep: Reputation: 15
Look into creating a linux boot floppy. If Windows destroys the MBR you can boot of that and then re-run lilo to get back the MBR.
 
Old 12-27-2006, 04:41 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Detail commands

While in Debian pop a floppy into the drive and type at terminal
Code:
sudo /sbin/lilo -b /dev/fd0
If you haven't got a floppy drive use the general method to restore Lilo, Task B3 of the last link in my sigature refers.

There is absolutely no need to remove/damage Debian.
 
Old 02-14-2007, 02:27 PM   #4
scroft
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Original Poster
Rep: Reputation: 0
next stage?

Thanks for the advice, it works great.

Sorry to ask another windows related question, but here goes:

I've been trying to reinstall Windows 98 (via running setup.exe in Windows), but I get the error message:

"Setup has detected that your hard drisk has a 64K-cluster FAT partition. Becasue ScanDisk does not work on disks with this cluster size, setup cannot continue.
To complete setup, you must repartition your hard disk, format the partition with a FAT file sytem that has a cluster size of 32K or less, and then restart setup"

I'm guessing that this occurs because I've got some Linux partitions on the same drive. Any ideas of how I can get around this?

Many thanks,

Ben
 
Old 02-14-2007, 04:04 PM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Just create a partition with partition Type ID 6 for Fat16.

Your Win9x is as old as me and can't recognise a Fat32 partition which you are forcing it into.

There are two types of fat partitions and older Win9x uses fat16 while the newer win9x uses fat32. I think fat16 only works in the first 4Gb of the hard disk, beyond which it will not be able to find the hard disk address.

Fat32 can go as high as 500Gb if you got one. Its limitation is 4Gb maximum for a file size.
 
Old 02-15-2007, 01:57 PM   #6
scroft
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Hmm when in windows, the C: drive claims to be FAT32 in properties, though interestingly I've never been able to see this partition in Linux. (All of my documents etc are stored on a physically separate drive which I can see in both Linux and windows)

As you can tell I'm a little confused - do I just need to create a FAT16 parition on the C: drive, and if so how would I do this?

Thanks for all the help
 
Old 02-15-2007, 04:10 PM   #7
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
You have a fat32 partition you can afford to reformat and change to fat16 filing system type , right?

You also have a working Debian too.

You claim your fat32 partition never appears in Debian. Let sort this one out first.

In Debian click terminal, and take a look at the partition you got by command
Code:
fdisk -l
A fat32 partition has ID "c" or "b". Debian will have at least one type 83 and a swap partition type 82. You need to identify which partition is type "b" or "c". Say this is hda1.

You then create a temporary partition in /mnt, mount the fat32 partition on it and check its content
Code:
sudo mkdir /mnt/temp
sudo mount -t vfat /dev/hda1 /mnt/temp
ls /mnt/temp
At this point you can go back to the desktop and click home and locate /mnt/temp and all the files should be there for you to see. Load the word documents, amend Excel spreadsheets and play MP3 if you like and if Debian has got all the necessary software.

------------------------------------------

To get a fat16 for installing your win98

Click terminal again. Run cfdisk program by command
Code:
sudo cfdisk /dev/hda
Inside cfdisk use the direction key to highlight the fat32 partition with partition ID "b" or "c" which you intend to reformat and use for a new installation of Win98.

Use the direction key to hightlight "type" and press enter.

Inside you will find the 100+ partition types supported by Linux. Type 6 to replace the partition type of fat32, thereby changing it to fat16.

Hightligh "write" to write the change to the partition table and then select "quit".

At this point do a reboot.

Go back to Debian, check the fat16 partition is there first, then go into the terminal and type
Code:
sudo mkdosfs -F16 /dev/hda1
You can then reboot and load Win98 which can be installed into the newly formatted fat16 partition.

I am using hda1 as an example for your unwanted fat32 partition. Make sure you use the correct one. If in doubt post the output of "fdisk -l" here to seek advice. Up to now you just let us to guess what you have got so we have to assume you know how to use our advice. The red command above is irreversible!
 
  


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
Reinstalling Windows XP-How to bring back LILO? Micro420 Mandriva 4 03-29-2005 06:19 AM
MBR deleted - I need to reinstall LILO without reinstalling Debian chaca1983 Linux - Software 12 03-26-2005 10:06 AM
Reinstalling Lilo after windows install n0rman- Linux - Software 3 09-19-2004 08:14 AM
Can't install lilo after reinstalling windows dllmetal Slackware 16 07-08-2004 09:52 PM
lilo windows xp debian dual boot chris3435 Linux - Newbie 1 03-18-2004 01:06 AM


All times are GMT -5. The time now is 08:31 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration