Resizing Sd card partitions on windows.


12 posts
by charlie » Sun Jul 08, 2012 4:36 pm
I'm using a Windows system so Gparted won't work on it. Is there a Windows program that will allow me to resize the partitions?
Posts: 10
Joined: Sun Jul 08, 2012 8:41 am
by geezbeez » Sun Jul 08, 2012 5:57 pm
I dont know of any that are free,
I'd just burn a gparted boot CD , boot your PC from the gparted CD, put in the SD card and resize the partitions on the SD card. Shut down and remove the CD when finished. This wont alter anything on your PC. Only thing is if you don't have the CD/DVD drive in your boot sequence but you should be able to find info on the net on how to do that if you dont already know. Its quite easy.
Posts: 28
Joined: Mon Jul 02, 2012 9:19 pm
by texy » Sun Jul 08, 2012 6:45 pm
Use the Debian wheezy image and you don't need to reimage before pluging into the pi.
Wheezy has a configuration script at first boot, one if the options is to resize the partitions.
T.
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555
Forum Moderator
Forum Moderator
Posts: 4959
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by BobAGI » Sun Jul 08, 2012 6:53 pm
Does this mean that my Wheezy image, which was just 2 GB will now have expanded to use all available space on my 4GB SD-Card?
How can I check if this is the case? I don't have a monitor so I am running headless by connecting with SSH through PuTTY via the network.
What I mean is how can I find out how much space is available on the drive in Linux (command line)??
Posts: 17
Joined: Tue Jul 03, 2012 1:06 pm
by texy » Sun Jul 08, 2012 7:14 pm
Someone with more Linux experience can tell you about how much space is free. Note the first (boot) image will remain at ~70mb, its the other main partition that gets expanded. Once ur in the X GUI the file system tells you how much space is left.
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555
Forum Moderator
Forum Moderator
Posts: 4959
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by BobAGI » Sun Jul 08, 2012 7:20 pm
I have no GUI access, just SSH via PuTTY....
So I need a commandline command to find out.
Posts: 17
Joined: Tue Jul 03, 2012 1:06 pm
by itimpi » Sun Jul 08, 2012 7:22 pm
You can use the df command to get details of mounted file systems.
Posts: 1062
Joined: Sun Sep 25, 2011 11:44 am
Location: Potters Bar, United Kingdom
by texy » Sun Jul 08, 2012 7:32 pm
You can still get GUI access without having a monitor fitted. Search for tightvncserver.
T.
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555
Forum Moderator
Forum Moderator
Posts: 4959
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England
by charlie » Mon Jul 16, 2012 4:26 pm
charlie wrote:I'm using a Windows system so Gparted won't work on it. Is there a Windows program that will allow me to resize the partitions?

By the way, there is a way to resize the partitions on the pi itself, sorry but I cant find the link to the topic that showed it.
Posts: 10
Joined: Sun Jul 08, 2012 8:41 am
by andrewmk » Tue Jul 17, 2012 10:41 am
As itimpi said, the "df" command will show you filesystems mounted on your Pi and how much space is left on each. At the command line (logged in via SSH in your case) type:

Code: Select all
df -h


and you'll get something like this:
Code: Select all
Filesystem            Size  Used Avail Use% Mounted on
    tmpfs                  94M     0   94M   0% /lib/init/rw
    udev                   10M  136K  9.9M   2% /dev
    tmpfs                  94M     0   94M   0% /dev/shm
    rootfs                1.6G  1.6G     0 100% /
    /dev/mmcblk0p1         75M   28M   47M  38% /boot

BY the way, the -h flag means 'show the sizes in something that a human can understand'.

Andrew
Posts: 6
Joined: Fri Jun 01, 2012 1:46 pm
by chessman2212 » Tue Jul 17, 2012 6:42 pm
hello, if using debian on your raspi you can read that : http://elinux.org/RPi_Resize_Flash_Partitions
Posts: 2
Joined: Tue Jul 17, 2012 6:35 pm
by Ocean20 » Wed Jul 18, 2012 3:33 am
There is a free Windows partition manager called Easus partition manager. Try that.
Posts: 38
Joined: Wed Jul 18, 2012 2:36 am
Location: Australia