MSFN Forum: Partitions: Primary vs Logical? - MSFN Forum

Jump to content



Hard Drive and Removable Media issues Rules

If you have questions about Seagate 7200.11, do read the READ_ME_FIRST, then read the FGA. If your questions remain unanswered after reading those two stickies, then post. For all other Hard Drive and Removable Media issues, you may post right away.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Partitions: Primary vs Logical? Rate Topic: -----

#7 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 9,086
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 11 December 2004 - 11:58 AM

Actually, from a purely statistical point of view, logical partitions (logical volumes inside Extended partition) are safer.

In the MBR (Master Boot Record) of each DRIVE there is space for just FOUR partition ENTRIES.

Of those entries, only one can be relative to an Extended LOGICAL VOLUME.

The other 3 entries can be primary.

A few Operating Systems, including DOS, complained about multiple Primary Partitions FORMATTED WITH A KNOWN FILESYSTEM.

It is perfectly safe to have a partition table like this:
1) Primary Active FAT16 (with DOS)
2) Primary NTFS (dos cannot read it)
3) Primary FAT32 (dos cannot read it)
4) Extended

As said before, the entry for the Extended one does not point to an actual partition, but to a LOGICAL CONTAINER, inside which you can make as many logical partitions you need.

To make it more clear, the difference in the entries is this:
1) the entry relative to Primary partition is the actual start address of the partition
2) the entry relative to Extended partition is the start address of the logical container; at the said address are stored the start addresses of the logical partitions within the Extended partition

So the actual partition tables of logical partitions are NOT stored on track 0 of the HD.

If you get a "dumb" virus, it will probably try to wipe the first "n" sectors of your HD, you will lose info on WHERE the logical volume starts, but NOT the info on the LOGICAL PARTITIONS.

There are tens of freeware tools that can let you find the info that was wiped, whilst finding the actual partition info is a bit more difficult.

The same thing applies if you make a mistake editing directly the MBR.

And even from a statistical point of view, track 0 of the HD has numberless more accesses in a HD lifetime that track "nn" (where logical volume starts) so it is highly probable that a misreading can happen more likely on track 0 that on any other track.

I hope that the above is clear enough, sometimes trying to explain things I make it worse.

jaclaz

This post has been edited by jaclaz: 05 January 2012 - 04:22 AM



#8 User is offline   f0rbez 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 12-November 04

Posted 11 December 2004 - 10:46 PM

So given my situation: I want to format the entire drive as one partition and store only data with no operating systems or programs running from it.

Would I want to partition that entire drive as an extended partition and then create another logical partition inside (also taking up the entire extended partition)?

You said that a virus could wipe the first track 0 which would not harm the data but would kind of "hide" the partition, right? But if I was using a primary partition and track 0 was wiped, I would lose actual data instead of just the partition info?

Norton PartitionMagic seems to suggest using logical partitions for data and other uses, and primary for just operating systems. I wasn't sure the basis behind that so I figured it may be more protected.

#9 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 9,086
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 12 December 2004 - 11:50 AM

Quote

You said that a virus could wipe the first track 0 which would not harm the data but would kind of "hide" the partition, right?
If a virus (or whatever else) overwrites track 0 it will delete:
Master Boot Record, which contains:
1) Boot Record
2) Partition Table
In the case I was describing, the actual Partition Table of an Extended volume is NOT there, so that it cannot be wiped and it is easy to recover.

Quote

But if I was using a primary partition and track 0 was wiped, I would lose actual data instead of just the partition info?


No you would lose just the partition info.

All the discussion above applies to a drive that holds MULTIPLE PARTITIONS, if you want to make just one partition on the drive it DOES NOT matter whether it is logical or not.

Should havoc happen (Track 0 overwritten) you would just need a Partition Editor like Ranish's one:
www.ranish.com/part
and manually write a new partition table starting at Cyl 0 Side 1 Sect 1 and ending at Cyl (last Cylinder) Side (last side) Sector (last sector).

jaclaz

#10 User is offline   Computer Commando 

  • Newbie
  • Group: Members
  • Posts: 47
  • Joined: 17-June 03

Posted 16 December 2004 - 06:43 PM

f0rbez, on Dec 12 2004, 12:46 AM, said:

...Norton PartitionMagic seems to suggest using logical partitions for data and other uses, and primary for just operating systems....

Bootable partitions MUST be primary. Non-bootable are logical.

#11 User is offline   iemand14 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 29-August 03

Posted 17 December 2004 - 05:03 AM

If you want compleet safe data storage you can beter you an other hard disk then where your os is running on.
If you want completle safe you can use a raid 0 setup, with two hard disks.

But as say already mostly OS are installed on a primary partition and if you want to have more than 4 partitions (to sepparate your data or to have less fragmentation of your hard disk) you must use logical partitions in an extentend partion.

Good luck

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy