Announcement

Collapse
No announcement yet.

shrink and create new partition

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • shrink and create new partition

    Hi,
    could somebody help...
    in Windows 7 with one full disk size partition I need:
    1. shrink C: partition to 20GB less
    2. create a new one from free space with drive letter D:

    no other drives attached... one HD inside.
    Thanks.
    "When you hit a wrong note it's the next note that makes it good or bad". Miles Davis

  • #2
    Sorry, I don't have a canned solution, but you can do it with DiskPart
    Script examples: https://technet.microsoft.com/en-us/...(v=ws.11).aspx
    Shrinking: https://technet.microsoft.com/en-us/...(v=ws.11).aspx
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Hi Ossian, don't be sorry for not having a canned solution
      you helped not once and I appreciate...

      this what I did...

      created batch Partit.bat with the commands:

      pushd %~dp0
      diskpart /s resize.txt

      and placed along with it my resize.txt

      select volume 1
      shrink desired=20000
      select disk 0
      create partition primary
      select partition 3
      format fs=ntfs quick
      assign letter=d
      exit

      Perfectly works! I added first line in the batch "pushd %~dp0" because diskpart suddenly started to give an error...
      I have pretty complex scenario where I am copying some structure from the server to workstations... Brief it started behave...
      I don't entered deep to the question but found a solid fix on web by using this line.










      "When you hit a wrong note it's the next note that makes it good or bad". Miles Davis

      Comment

      Working...
      X