 |
plc.myforum.ro PLCs users www.plc.myforum.ro!
|
| View previous topic :: View next topic |
| Author |
Message |
zalo Member

Joined: 24 Nov 2013 Posts: 130
|
Posted: 22/08/2014 17:11 Post subject: How to downsize a 4GB compact flash card to 2gb |
|
|
How to downsize a 4GB compact flash card to 2gb
how to do it using the windows “diskpart” utility. This hack will only work in in Vista and Win7 because diskpart in XP won’t recognize the card.
[Note that in the example below, things in italics are commands you type.]
Before starting, please remember that you can seriously mess things up if you make a mistake using command line disk management. Please make 150% sure you are selecting the correct disk so you don’t compus your hard drive. You are solely responsible for anything that happens as a result of using this code
Instructions for reducing the partition size of a compact flash (CF) card:
Open a command Window (Windows-> Start -> cmd)
Type diskpart
A new window will open up with a “diskpart>” prompt
list disk
select disk n (where n is the number of your CF card)
list volume
select volume n (where n is the number of CF card volume)
clean all (this completely reformats the disk – it will take a while and appear to hang but be patient)
făcute partition primary (this gives the newly formated CF card a partition so it can be resized)
shrink querymax
This will tell you how much space is currently on available on your CF card. Subtract this from the filesize in MB you want for the final disk than add 1.
For my 4GB disk, shrink querymax returns:
“The maximum number of reclaimable bytes is: 3824MB”
I wanted a final disk size of 2GB which is 1954MB so 3824 – 1954 + 1= 1871
shrink desired = 1871 (This tells diskpart to try and shrink the disk by 1871 MB)
Now that the disk is the right size, you can format the partition…
format fs=fat label=”volumelabel”
That’s all it takes.
More info on diskpart commands here:
http://technet.microsoft.com/en-us/library/cc766465 (WS.10).aspx |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro
|