Home / Microsoft / Microsoft DOS / 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 689 times)
MikeBAM
Topic Starter
Rookie



Posts: 13


« 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.
IP logged
Quantos
Guru



Thanked: 158
Posts: 4,041

Experience: Experienced
OS: Windows Vista


Union Proud IW 720

Iron Workers Local 720 1 1
« 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.
IP logged

"Ah the agony, ah the shame, making one man's privates - public for a game..."  Mel Brooks
patio
Moderator
Genius



Thanked: 1023
Posts: 10,558

Experience: Beginner
OS: Windows 7


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...
IP logged

   
"
All generalizations are false, including this one.  "
MikeBAM
Topic Starter
Rookie



Posts: 13


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

Diskpart will work in dos even though it's part of windows ?
IP logged
Geek-9pm
Sage



Thanked: 327
Posts: 8,049

Computer: Specs
Experience: Familiar
OS: Windows XP


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
IP logged
MikeBAM
Topic Starter
Rookie



Posts: 13


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

Diskpart maybe command line but it cannot operate outside of windows like MS-DOS
IP logged
wbrost
Intermediate



Thanked: 11
Posts: 215




« 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.
IP logged
BC_Programmer
Mastermind


Thanked: 682
Posts: 15,624

Computer: Specs
Experience: Beginner
OS: Windows 7


Pinkie Pie is best pony

BC-Programming.com 1 1
« 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.
IP logged

MikeBAM
Topic Starter
Rookie



Posts: 13


« 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.
IP logged
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / Partition Resize From Command line? « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.087 seconds with 21 queries.