Computer Hope

Computer Hope Forum Welcome, Guest. Please login or register.
November 22, 2009, 09:38:25 AM
Home Help Staff Chat Login Register
News: Need help with posting a question?

Computer Hope Forums  >>  Microsoft  >>  Microsoft DOS (Moderator: Computer Hope Admin)  >>  Topic: Partition Resize From Command line? 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Partition Resize From Command line?  (Read 239 times)
MikeBAM
Topic Starter
Rookie
*
Posts: 12

Thanked: 0
OS: Unknown
Experience: Beginner




« on: November 05, 2009, 12:29:46 PM »

Is there a program that I can run in DOS on the command line that I can shrink an NTFS volume? I'd like to make it so I can put it on a CD and it will automatically run after making a batch script so there wont be any user intervention.  (This is for large hard drives with little data on them so data loss shouldn't be a problem)

I want to shrink the volume so i can put a small FAT32 partition at the end of the disk.
Logged
Quantos
Egghead
*
Posts: 2841

Thanked: 109
OS: Windows Vista
Experience: Guru
Certifications: List



Union Proud IW 720


« Reply #1 on: November 05, 2009, 12:35:50 PM »

I've never heard of a way to resize a partition from the command line.
Just make sure that you back up anything critical if you do go with a Windows solution though.
Logged

Paranoia, it's what happens when you have all of the facts.
patio
Moderator
Mastermind
*
Posts: 15263

Thanked: 424
OS: Windows Vista
Computer: Specs
Experience: Guru



Maud' Dib


« Reply #2 on: November 05, 2009, 01:27:27 PM »

DiskPart  will do it but it's pretty dangerous utility in the hands of those unfamiliar with it...
Logged

   

 Last year I went fishing with Salvador Dali. He was using a dotted line. He caught every other fish.

 
MikeBAM
Topic Starter
Rookie
*
Posts: 12

Thanked: 0
OS: Unknown
Experience: Beginner




« Reply #3 on: November 05, 2009, 07:58:34 PM »

Diskpart will work in dos even though it's part of windows ?
Logged
Geek-9pm
Expert
*
Posts: 2378

Thanked: 66
OS: Windows Vista
Computer: Specs
Experience: Experienced



Geek After Dark


« Reply #4 on: November 05, 2009, 08:09:31 PM »

Diskpart will work in dos even though it's part of windows ?
Read the link Patio posted.
Or this one:
"DiskPart Command-Line Options"
http://technet.microsoft.com/en-us/library/cc766465(WS.10).aspx
Logged
MikeBAM
Topic Starter
Rookie
*
Posts: 12

Thanked: 0
OS: Unknown
Experience: Beginner




« Reply #5 on: November 05, 2009, 08:45:54 PM »

Diskpart maybe command line but it cannot operate outside of windows like MS-DOS
Logged
wbrost
Intermediate
*
Posts: 154

Thanked: 8
OS: Windows XP
Experience: Expert
Certifications: List




« Reply #6 on: November 06, 2009, 06:27:25 AM »

if you can get you hands on a Linux boot CD there a utilities that will do what you are looking for.

A different option would be to get your hands on a ERD Commander from systools. some very good tools and utilities in a windows like environment that hooks into the reg of the host computer. The ERD is put on a boot CD or USB so it runs outside of windows.
Logged
BC_Programmer
Sage
*
Posts: 8841

Thanked: 257
OS: Windows XP
Computer: Specs
Experience: Experienced




« Reply #7 on: November 06, 2009, 11:20:12 AM »

pure DOS cannot access hard drives larger then... well, I forget the exact value, but I don't think it exceeds around 64 GB.

Also it does not recognize NTFS partitions.


There is no pure DOS command line utility you can use for resizing partitions. The closest you can get is probably fdisk, excluding the good number of tools available for this purpose (I believe there are tools for resizing partitions that will run on DOS... but they wil lbe too old to recognize NTFS, I think.

However as suggested there are a number of already existing boot CD solutions that posess this ability.
Logged

If this is real life, where the heck is the decimal?
MikeBAM
Topic Starter
Rookie
*
Posts: 12

Thanked: 0
OS: Unknown
Experience: Beginner




« Reply #8 on: November 08, 2009, 09:47:07 PM »

Thanks for your suggestions guys. I already do have a ubuntu bootable disk and an EDR commander. They are great utilities. I know they can resize partitions by hand, but how can i automate the task? Because that's really the goal here.
Logged
Pages: [1] - (Top) Print 
Computer Hope Forums  >>  Microsoft  >>  Microsoft DOS (Moderator: Computer Hope Admin)  >>  Topic: Partition Resize From Command line? « previous next »
Jump to:  


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright 1998-2008 by Computer Hope (tm). All rights reserved
Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC
Page created in 0.08 seconds with 19 queries.