Computing.Net > Forums > Windows 95/98 > harddrive problem

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

harddrive problem

Reply to Message Icon

Name: John
Date: February 5, 2002 at 03:40:19 Pacific
Comment:

hi!

i just found a old harddrive (one at ~800mb)at home, and i thought hmm i may have some use for this one.
i deleted the partitions on it, but when i was going to create a new one, i run into a problem.
when it starts to create the new partition, it only goes up to 7% and than back to 0%.

my question here is, does anyone know a command-line that may take care of the problem ?


TIA



Sponsored Link
Ads by Google

Response Number 1
Name: johnjoe
Date: February 5, 2002 at 05:29:07 Pacific
Reply:

Did you format the drive after deleting the partitions?


0

Response Number 2
Name: John
Date: February 5, 2002 at 05:54:32 Pacific
Reply:

no, how would i be able to format it if there is no partition


0

Response Number 3
Name: OP
Date: February 5, 2002 at 06:55:37 Pacific
Reply:

Here is a list of UNDOCUMENTED FDISK commands. I've not been able to test all of these, so use them at your own RISK.
OP


Undocumented FDISK
.
Background
This page describes undocumented switches you can use with FDISK. With the switches you can use FDISK in non-interactive mode, e.g. in a batch file.
The switches works with the FDISK that is include with Windows 95 OSR2 (MS-DOS 7.1).

Several people has contributed to this page. If you have comments, suggestions or questions, feel free to send me an e-mail.

.
I haven't found a way to delete existing partitions with FDISK so I wrote a small utility, INSTHELP, to nuke the Partition Table. Use with care.
.
How To Do
Variables used in this document:
Partition size in Mb - FDISK rounds this number up
Harddisk number, e.g. first HD is number 1

.

/STATUS Show current partition layout
/MBR Recreate Master Boot Record on disk 1
/PRI Create primary partition
/PRIO Create primary partition with FAT16/FAT32 override
/EXT Create extended partition
/LOG Create logical drive
/LOGO Create logical drive with FAT16/FAT32 override
/FPRMT Prompt for FAT32/FAT16 in interactive mode
/Q Skip forced reboot on exit
Info provided by Mike Cowen and Paul Helsen
/X Do not use LBA partitions
Info provided by Francisco Arráez Sánchez.
/ACTOK Do not check drive integrity
Info provided by Svend Christensen.
/CMBR Recreate Master Boot Record on specified disk
Info provided by Francisco Arráez Sánchez.
Notes on /PRI, /PRIO and /LOG, /LOGO

.
/STATUS - Show current partition layout
FDISK /STATUS

.

If you have an extended partition with no logical drive defined, no information about the extended partition is shown.

.
/MBR - Recreate Master Boot Record on disk 1
This function is handy when an virus has infected the Master Boot Record. With /MBR you can wipe-out the virus.

FDISK /MBR


/PRI - Create primary partition. Partition is set to active
Create a primary partition on disk number with the size of . The partition is set to active.

FDISK /PRI:

.

If is larger than the space on the HD all space is used for the primary partition.

.
/PRIO - Create primary partition with FAT16/FAT32 override. Partition is set to active
Works as /PRI.


/EXT - Create extended partition
Create an extended partition (to hold logical drives) on disk number with the size of .

FDISK /EXT:

.

If is larger than remaining free space, all free space is used. That is, you don’t have to know the exact remaining size in order to use this switch.

.
/LOG - Create logical drive
With /LOG you create a logical drive with the size of . /LOG must be used together with /EXT.

FDISK /EXT: /LOG:

.

/LOG must be used together with /EXT and must be the same for both switches. Furthermore, must be smaller or equal to free space.

.
/LOGO - Create logical drive with FAT16/FAT32 override
Works as /LOG.

.
/FPRMT - Prompt for FAT32/FAT16 in interactive mode
With /FPRMT you won't get the FDISK startscreen where you are asked for support for large disks. Instead, you will be promted for FAT16/FAT32 each time you create a partition.

FDISK /FPRMT

Additional info provided by Jeff Richards: Note that the prompt for FAT16/FAT32 will be available for ALL partitions, so this option can be used to force FDISK to create FAT 32 partitions smaller than 540Mb. (By default, FDISK uses FAT32 for partitions greater than 540Mb only).

.
/Q - Skip forced reboot on exit
With /Q the PC will not be rebooted after modifying the Partition Tables. However, I don't recall that DOS 7.x FDISK does a reboot. Maybe it's because I always use FDISK from a boot-floppy.

FDISK /Q

.
I have not tried this switch. Mike Cowen and Paul Helsen provided the information.
.
/X - Do not use LBA partitions
With /X you won't get any LBA partitions. See Micro Firmware Technical Support for more details.

FDISK /X

.

I have not tried this switch. Francisco Arráez Sánchez provided the information.

.
/ACTOK - Do not check drive integrity
With /ACTOK the integrity of drive is not checked making FDISK faster.

FDISK /ACTOK

NOTE: It may not work everytime - please let me know your experience with /ACTOK.

.
I have not tried this switch. Svend Christensen provided the information.
.
/CMBR - Recreate Master Boot Record on specified disk
Works as /MBR with the exception that you specify the disk to have it's MBR recreated.

FDISK /CMBR

.

I have not tried this switch. Francisco Arráez Sánchez provided the information.

.
Notes on /PRI, /PRIO and /LOG, /LOGO
As far as I can tell, PRI and LOG creates FAT32 when partitions are larger than 512Mb and FAT16 when partitions are smaller than 512Mb. PRIO and LOGO creates FAT16 even if partitions are larger than 512Mb (in effect, it’s like FDISK from DOS 5/6).

.
Piping Keystrokes
You can pipe keystrokes into FDISK using a file which contains the keystrokes including . Most editors can't insert the character without so you need a hex-editor to do the job. Take a look at CREATE.TXT and ERASE.TXT (download them).
Example 1a - Create extended partition:

FDISK < CREATE.TXT

Example 1b - Create extended partition without drive-integrity checking:

FDISK /ACTOK < CREATE.TXT

Example 2 - Delete extended partition from example 1a/1b:

FDISK < ERASE.TXT



0

Response Number 4
Name: Patrik Adolfsson
Date: April 9, 2002 at 05:54:45 Pacific
Reply:

John!

I have the same problem! Did you manage to solve it?

When I try to create a primary dos it stops at 24% then goes back to 0%.

Please respond by sending me an email aswell as post here!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: harddrive problem

Laptop HArdDrive Problem I think. www.computing.net/answers/windows-95/laptop-harddrive-problem-i-think/104460.html

Harddrive problems www.computing.net/answers/windows-95/harddrive-problems/118197.html

Harddrive problems www.computing.net/answers/windows-95/harddrive-problems/140665.html