Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. partition hard disk

partition hard disk

Scheduled Pinned Locked Moved System Admin
helpquestion
2 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    i want to partition hard disk using a GUI (like partition magic s/w) for windows operating system(98,me,NT,2000)without data loss.i also want to marge two or more than two partition into a single partition. my approch was read the partition table information and overwrite this. but i don't known for microsoft windows operaing system how it will be done? please help me.

    J 1 Reply Last reply
    0
    • L Lost User

      i want to partition hard disk using a GUI (like partition magic s/w) for windows operating system(98,me,NT,2000)without data loss.i also want to marge two or more than two partition into a single partition. my approch was read the partition table information and overwrite this. but i don't known for microsoft windows operaing system how it will be done? please help me.

      J Offline
      J Offline
      Jason Hihn
      wrote on last edited by
      #2

      I think your approach is a Bad Thing(tm). You totally neglect the fact that parition types can be different (FAT32, NTFS). You also neglect the fact that different partition types have a different formatted format. Also neglected is the need to update the FAT for a FAT partition if you are adding files. You'd still need to update the FAT even if they are both FAT to begin with. See at the beginning of each partition there is a File Allocation Table (FAT). Turning two consecutive partitions to the same requires that 1) partition info is changed, 2) the new block of the grown parition needs to be formatted and linked up to the existing format of the 1st partition, 3) then the files and data need to be moved over and the FAT updated to reflect the addition of new files. Now, simular stuff happens on the 2nd partition. The FAT has to be moved to the new beginning of the parition. Any files occuping that segment of disk need to be moved (if any). As a result, that FAT has to then be updated. If your free space on your first parition is > used space on 2nd parition, then you can do this operation once. Otherwize, you'll have to repeat it and use the copy an amount of data over equal to the amount of free space on your 2nd parition. Steps: 1) Defrag both paritions (not needed but recommended, your software might do this automatically) 2) Shrink 2nd partition (remove free space) 3) Grow 1st parition (add free space) 4) Copy Data 5) Go to 2 until all files are moved over and partition 2 has size of 0, or is deleted. If you want a free product rather than paying for one, you can use FIPS 2.0 (Used by the Linux community) but that's not GUI based. You'll probably learn something though by using it.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups