Format C: Bad Command

The machines we love to hate

Moderator: Wiz Feinberg

User avatar
Tom Mortensen
Posts: 401
Joined: 12 Dec 1999 1:01 am
Location: Nashville TN

Format C: Bad Command

Post by Tom Mortensen »

I re- partitioned the hard drive on my Compaq Laptop.
It now has 1 partition instead of 2 and no Operating System installed.
I have Windows 98 CD and Boot Disk.
Problem: Formatting C:
When I enter <font color="red">A:\>format C:</font> I get <font color="red">Bad command or file name.</font>
When I go back and check the partition from the DOS menu everything checks out good.
Any suggestions?<FONT SIZE=1 COLOR="#8e236b"><p align=CENTER>[This message was edited by Tom Mortensen on 27 June 2003 at 07:27 AM.]</p></FONT>
User avatar
Jim Smith
Posts: 7949
Joined: 4 Aug 1998 11:00 pm
Location: Midlothian, TX, USA

Post by Jim Smith »

"Bad command or file name" normally means the OS can't find the executable, in this case format.com. If indeed it isn't on the floppy, copy it from another Windows 98 PC. Another option if your BIOS can be set to boot from a CD, is to boot from your Windows 98 CD and allow the installation to format your drive. (I think that was an option for 98.)
User avatar
Tom Mortensen
Posts: 401
Joined: 12 Dec 1999 1:01 am
Location: Nashville TN

Post by Tom Mortensen »

Thanks Jim,
I tried formating from the 98 CD and it stopped because of an Error.
I have tried extracting the format.com file from ebd.cab but it gives a Write protect error writing drive A.
I am following instructions from several online sources and nothing works so far.
User avatar
Jim Smith
Posts: 7949
Joined: 4 Aug 1998 11:00 pm
Location: Midlothian, TX, USA

Post by Jim Smith »

A write protect error usually means the little write protect tab on the floppy is open. It must be closed in order to write to it.

If the CD gives an error formatting, that sounds like the partition you created has a problem. Double check that you made it a primary partition and marked it active so you can boot from it. It might be easier to delete the partition completely and let Windows partition and format the drive itself.

If none of that works, you may have a bad drive or possibly a loose drive or power cable.
User avatar
Tom Mortensen
Posts: 401
Joined: 12 Dec 1999 1:01 am
Location: Nashville TN

Post by Tom Mortensen »

Write protect tap is set properly.

I went back and deleted partion 1 and let Windows 98 CD set it up.
Still get an error when it tries to format.

Is there a conflict with the BIOS...wanting to see two partitions on this Compaq Computer?

Jim, I appreciate your ideas and help.
User avatar
Jim Smith
Posts: 7949
Joined: 4 Aug 1998 11:00 pm
Location: Midlothian, TX, USA

Post by Jim Smith »

Compaq's are and have always been weird, in my opinion. I'm not familiar with laptops, but I can't think of any reason why the BIOS would insist on seeing two partitions.

It does seem that something in the laptop is preventing you from writing and/or formatting. That could possibly be a security setting in the BIOS, to keep unauthorized people from copying data or reformatting your hard drive.

That's about all I can suggest, but what error are you getting when you try to format the drive?
User avatar
Tom Mortensen
Posts: 401
Joined: 12 Dec 1999 1:01 am
Location: Nashville TN

Post by Tom Mortensen »

Error:
Setup cannot install Windows 98 on your computer.

An error was detected while formatting your primary hard disk partition.
User avatar
Tom Mortensen
Posts: 401
Joined: 12 Dec 1999 1:01 am
Location: Nashville TN

Post by Tom Mortensen »

The solution:
I found a Compaq customer support chat site,the tech was helpful.
I first had to enter the DIR Command,
Then entered Format C:
Holy Cow it works!!<FONT SIZE=1 COLOR="#8e236b"><p align=CENTER>[This message was edited by Tom Mortensen on 27 June 2003 at 11:23 AM.]</p></FONT>
Everett Cox
Posts: 497
Joined: 13 Jul 1999 12:01 am
Location: Marengo, OH, USA (deceased)

Post by Everett Cox »

Tom--Presuming you were using the boot disk created by Win98 (Control Panel/Start Up Disk):::

Booting with that disk will create a VIRTUAL (RAM) disk in memory. It then copies/extracts the utilities to THAT 'drive' and executes from there. The letter assigned to the RAM drive is dependant upon the machine's other existing drives. You SHOULD have gotten a message telling you the RAM drive was setup OK and the drive letter.

So, that's why you got the error mentioned in your original post. You should have logged on to the RAM drive to run Format.

When you attempted to extract Format from EBD.CAB to the floppy (A Image, perhaps there was not enough space????

Once you got a good Format.com, I don't know why you get an error trying to format drive C:.

Hope this is helpful --Everett