partitioning hard drive with DOS fdisk

partitioning hard drive with DOS fdisk

Post by Neil Zanell » Sun, 26 Apr 1998 04:00:00



Hi,

I am looking for a brief tutorial or even a complete manual on
the MSDOS fdisk program that goes step by step into the partitioning
procedure. Any help or redirection to links is greatly appreciated.
BTW, is there a "man fdisk" equivalent for MSODS?
Thanks,

Neil

 
 
 

partitioning hard drive with DOS fdisk

Post by Matthew Vanece » Sun, 26 Apr 1998 04:00:00



> Hi,

> I am looking for a brief tutorial or even a complete manual on
> the MSDOS fdisk program that goes step by step into the partitioning
> procedure. Any help or redirection to links is greatly appreciated.
> BTW, is there a "man fdisk" equivalent for MSODS?
> Thanks,

> Neil

Just read your MS-DOS manual.  Try "help fdisk" and see what that brings
up.
--
Matthew Vanecek


send me mail.  I appreciate your effort! :-)

Studies in Business Computers at the University of North Texas
http://www.unt.edu/bcis
*****************************************************************
Visit my Website at http://people.unt.edu/~mev0003
*****************************************************************
For 93 million miles, there is nothing between the sun and my shadow
except me. I'm always getting in the way of something...

 
 
 

partitioning hard drive with DOS fdisk

Post by Urban Domei » Tue, 28 Apr 1998 04:00:00


OK

Here's a brief tutorial:

FDISK can do some very basic things with a hard drive,
it is menu-driven, and each screen explains itself.

First, it can display the partitions of any drive it can find in
your computer.

Partitions in the DOS world are of two kinds, the Primary
partition, from which you can boot the machine if it is on
the first drive, and the Secondary partition, which will be
the rest of the drive, outside the Primary partition.

Inside the Secondary partition, you can have several
logical drives. These are partitions, but in DOS they
are called logical drives in the secondary partition.

So your first primary partition on the first drive is drive C:
Your next logical drive will be D: whether it is a logical
drive on your secondary partition or the primary partition
of your second drive. The second drive's primary partition
takes precedence over secondary partitions to this letter,
hence, if you have no second hard drive, the D: may be
a logical drive on your first hard drive, but if you install
a secondary drive, all logical drives of the first hard drive
will be moved one step down the alphabet. The primary
of the first drive remains C:

Only one partition may be bootable in a DOS system.

When you have two hard drives, the first in some FDISK
versions will be called first disk and the second will be called
second disk ..  other versions call the first hard drive 0 (zero)
and the second drive is hard drive 1 (one). You will see which
of these options that is valid for your FDISK when you use it.

With a new hard disk, which is not already partitioned, the first
thing you may wish to do is partition it. I'd recommend that you
always invoke the 'display partition information' option when you
first start FDISK. Then remember that FDISK always uses the
first disk as the default disk to work on, hence the first thing to do
when you add another disk to the system is to 'change drive' when
you are in FDISK, to see the new drive instead of the old one.

Menu choices are usually entered as a digit, some options
require only Enter or a number if you wish to change the
default value that is displayed. Sizes may be entered either
as megabytes or percentages. Remember that the secondary
partition shall be all the rest of the drive unless you will use
another partitioning program for a non-DOS partition.

MS-DOS FDISK can only make two 'partitions', if you
want several logical drives, the rest of the logical drives
are made inside the secondary partition. I.e. if you have
a 2G drive and want four 512M partitions, you make one
primary partition of 25% and a secondary of the rest ...
Then in the secondary, you make three logical drives,
each 512M.

From there on it's pretty straightforward, you have very few
choices for every screen that FDISK displays. Take it easy
and don't change anything unless you know what you do.
Mostly after making a choice, you back out with Esc. After
changing partition information on a drive, the system must
reboot to recognize the changes you made. FDISK makes
a reboot after repartitioning a drive.

When you delete partitions, you must first delete any
logical drives in secondary partitions before you can
delete the secondary partition. Deleting partitions is
necessary if you wish to change the partitions.

Also, to delete a partition that has a volume label,
you are asked to enter the volume label to proceed.
There are a number of built-in safeguards to make
sure that you do what you mean to do.

After partitioning, you will have to FORMAT the
partitions in order to put files on them. I recommend
always setting a volume label on any hard drive, to
identify the drive, and to make it a bit safer, in case
you should forget to switch drives when you want
to remove a partition.

Partitioning makes the disk available to the system
and prepares it to receive a file system. Formatting
sets up a file system, which can be mounted when
you start the system.

There is one more possibility to use FDISK, which is
not covered by the documentation, and that is replacing
the master boot record of the first hard drive. This is
done with FDISK /MBR and doesn't give any output.
The MBR option effectively removes any boot sector
virus, but it can be disastrous if you have an unusual
boot sector as from some boot manager programs.
(then it may effectively wipe out all your data)

FDISK /MBR doesn't work with all versions of DOS,
and it may render the disk unbootable if it's done from
the wrong version. Data can be read however if the
disk was formerly FDISK-ed with any DOS FDISK.

So ... using the wrong version may force you to do
it once again with the right version ...

For FDISK in W95 and additional information,
see http://log.on.ca/users/rhwatson/dos7/u-fdisk.html

Good luck,

Urban


> Hi,

> I am looking for a brief tutorial or even a complete manual on
> the MSDOS fdisk program that goes step by step into the partitioning
> procedure. Any help or redirection to links is greatly appreciated.
> BTW, is there a "man fdisk" equivalent for MSODS?
> Thanks,

> Neil

 
 
 

partitioning hard drive with DOS fdisk

Post by Jason Mine » Wed, 29 Apr 1998 04:00:00


If you're willing to spend few extra dollars, you may want to purchase
PartitionMagic.  Although FDisk will initially meet all of your
partitioning needs, PartitionMagic is much more flexible and easier to
understand.  For more information about PartitionMagic, see
www.powerquest.com.

Take Care -- Jason M.


> Hi,

> I am looking for a brief tutorial or even a complete manual on
> the MSDOS fdisk program that goes step by step into the partitioning
> procedure. Any help or redirection to links is greatly appreciated.
> BTW, is there a "man fdisk" equivalent for MSODS?
> Thanks,

> Neil

 
 
 

partitioning hard drive with DOS fdisk

Post by S. Widla » Thu, 30 Apr 1998 04:00:00




>If you're willing to spend few extra dollars, you may want to purchase
>PartitionMagic.  Although FDisk will initially meet all of your
>partitioning needs, PartitionMagic is much more flexible and easier to
>understand.  [snipperty]

>Take Care -- Jason M.

Which does nothing to answer the poster's question and is only likely
to confuse him further. Anyway if you want to advertise your products
around here you, you can expect a few comments...

First of all, PowerQuest's PartitionMagic isn't particularly bad...

... the trouble is that it's not that good either. There are a lot of
things that it absolutely won't do and a number of other things where
it gets stuff wrong and if that's MBR or DBR stuff - the stuff it is
actually messing with - and you don't have backups... it is bye, bye,
time to all of your data.

I've also seen the manual... It has mistakes, ommisions and technical
inaccuracies on virtually every page. It isn't difficult to spot these
and doesn't inspire much confidance. I'm surprised it doesn't go more
horribly wrong more often. I once had a case a fully function system
running Nice Try 4 - PartitionMagic was run on it - course it created
non-standard partitions on it. Not only did Nice Try fall over ( not
that much of a surprise NT ;-) it wouldn't even re-install ! Wild ?!?
One really unhappy bunny :-(((

FDisk the system PROPERLY and at least Nice Try completed the install.    

PartitionMagic encourages people to mess about with stuff that *they*
can't fix without first taking any backups. It's just plain dangerous.

Hi Jason ;-)

All IMHO,

S.;-)

a "few extra dollars" - Ha ! How many ?

"easier to understand" - Ha ! That's a joke !


>> Hi,

>> I am looking for a brief tutorial or even a complete manual on
>> the MSDOS fdisk program that goes step by step into the partitioning
>> procedure. Any help or redirection to links is greatly appreciated.
>> BTW, is there a "man fdisk" equivalent for MSODS?
>> Thanks,

>> Neil

RTFM

S.

-- -
.sig II Found and Restored...

 
 
 

partitioning hard drive with DOS fdisk

Post by Mark Hartiga » Thu, 30 Apr 1998 04:00:00


I second that. Additionally, Partition Magic lets you move partitions around
on the disk. This is extremely useful if  you need to keep boot partitions
under cylinder 1024. It also comes with a nifty dual boot utility which I'm
using to dual boot the machine between Linux and Windows 95.


>If you're willing to spend few extra dollars, you may want to purchase
>PartitionMagic.  Although FDisk will initially meet all of your
>partitioning needs, PartitionMagic is much more flexible and easier to
>understand.  For more information about PartitionMagic, see
>www.powerquest.com.

>Take Care -- Jason M.


>> Hi,

>> I am looking for a brief tutorial or even a complete manual on
>> the MSDOS fdisk program that goes step by step into the partitioning
>> procedure. Any help or redirection to links is greatly appreciated.
>> BTW, is there a "man fdisk" equivalent for MSODS?
>> Thanks,

>> Neil

 
 
 

partitioning hard drive with DOS fdisk

Post by Urban Domei » Thu, 30 Apr 1998 04:00:00



> There is one more possibility to use FDISK, which is
> not covered by the documentation, and that is replacing
> the master boot record of the first hard drive. This is
> done with FDISK /MBR and doesn't give any output.
> The MBR option effectively removes any boot sector
> virus, but it can be disastrous if you have an unusual
> boot sector as from some boot manager programs.
> (then it may effectively wipe out all your data)

Before S Widlake stomps on my fingers I'll also say,
that if a boot sector virus has stored your allocation
tables at some offset that is unreachable from a clean
boot, then your data goes to the bit-bucket if you use
FDISK /MBR ... maybe it is a better idea to use a
good anti-virus program for removing viruses ...

Urban

 
 
 

partitioning hard drive with DOS fdisk

Post by S. Widla » Fri, 01 May 1998 04:00:00





>> There is one more possibility to use FDISK, which is
>> not covered by the documentation, and that is replacing
>> the master boot record of the first hard drive. This is
>> done with FDISK /MBR and doesn't give any output.

This command is DELIBERATELY undocumented. You can all
draw your own conclusions on that !

What this command actually does is rewrite the mbr CODE
without affecting the Partition Table ENTRIES... Unless
the mbr Boot Signature is missing... IF this signature
IS missing, it rewrites the mbr code and WIPES OUT the
Partition Table entries ! This is rather useful if you
want to quickly refresh a used HHD for reuse but "a bit
of a *" when used on any system where this was not
the intention and the Boot Signature had been modified.

[ This is unlikely as most modern PC CMOS's will check
  for this Boot Signature and won't boot from the hard
  drive if it isn't intact. However, some PC's do not
  perform this check AND there are always 'smartarses'
  around with boot diskettes and their 'smart' ideas. ]

Quote:>> The MBR option effectively removes any boot sector
>> virus, but it can be disastrous if you have an unusual
>> boot sector as from some boot manager programs.

You are right to a certain extent... see again above.

Quote:>> (then it may effectively wipe out all your data)

I think that needs to be EMPHASISED: ALL YOUR DATA !  

Quote:>Before S Widlake stomps on my fingers

Hey there, what's with the 'preemptive strike' ? ;-)

Quote:>I'll also say, that if a boot sector virus has stored
>your allocation tables at some offset that is unreachable
>from a clean boot,

You mean: if an HDD-MBR/FDD-DBR infecting virus has
relocated and/or encrypted and/or modified the MBR's
Partition Table entries in ANY way such that the hard
drive's Partition Volumes are not ALL accessable from
a clean boot,    

Quote:>then your data goes to the bit-bucket if you use
>FDISK /MBR

You can expect some - sometimes TOTAL - data loss !

Apart from the details/terms used, We agree on this.

Quote:>... maybe it is a better idea to use a good anti-virus
>program for removing viruses ...

Up to about a year ago I would have strongly agreed
with this... BUT then I had little problem... Using
even the 'BEST' anti-virus software to remove some
viruses resulted in DATA LOSS !!! Using FDISK /MBR
removed these viruses resulting in NO data loss :-)

The AV-SW companies - Dr Solomon's Software, Frisk
International, MakeAfee, etc, etc - KNOW that ALL of
their software is this fundamentally flawed though
they have NOT, and are NOT likely to remedy this !

So which would 'you' use to disinfect MBR viruses ?

   FDISK /MBR  or  'good' anti-virus software ?

'In one hand you have a gun with four blank and two
 live bullets in it and in your other hand you have
 a gun with two blank and four live bullets in it !'

So... ...  LEFT or RIGHT ?!? Choose one !

Actually, it depends almost entirely on the virus !

Anyone want to make such a deffinative virus list ?

I'll start it off with:

RIPPER - You have already been shot and it hurts...

Quote:>Urban

Neat ending to a terrible thread.

S.;-)

-- -
.sig II Found and Restored...

 
 
 

partitioning hard drive with DOS fdisk

Post by Franc Zabk » Sun, 03 May 1998 04:00:00


On Thu, 30 Apr 1998 12:00:21, S. Widlake put finger to keyboard and
composed:

Quote:>So which would 'you' use to disinfect MBR viruses ?

>   FDISK /MBR  or  'good' anti-virus software ?

I saw a post which cautioned against using FDISK /MBR to recover from
one particular virus infection (Monkey, I think). The reason was that
this virus corrupted the MBR boot signature. And, as you have already
pointed out, FDISK /MBR destroys the partition table entries in this
case.

- Franc Zabkar