Resizing SD card via command line

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Re: Resizing SD card via command line

Postby pepedog » Thu Aug 01, 2013 6:34 pm

New partitioning arrangement was asked to be this way by foundation, to fit in with noobs install
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Resizing SD card via command line

Postby ncotb » Fri Aug 30, 2013 2:47 pm

Thanks pepedog for this info, I've been searching the web like mad!

For those stumbling about this issue: In addition to the steps described by paranoidandroid, you would have to do a resize2fs on both the 2 and 5 partition...

Also, I've found that it is possible to simply change the partition size with gparted as well (from a gparted live usb stick (http://gparted.sourceforge.net/livecd.php)), rather than using fdisk, which I found easier to handle...
ncotb
 
Posts: 2
Joined: Fri Aug 30, 2013 2:40 pm

Re: Resizing SD card via command line

Postby Ecco1988 » Sun Sep 01, 2013 4:21 pm

Hello, through the new partitioning arrangement it's impossible to resize the SD Partition of the Image.

It's not possible to resize the partition with the fstab command.
Everytime I try it, my Kernel get busy, because the old partition table is in use...

Everytime I try to boot up with GParted, I getting a crash "GParted crashes with Assertion (head_size <= 63)".
This error only occured, with the fresh formated Arch-Linux SD Card.

I don't get this error, if I remove it... I allrdy tried it with different SD-Cards, but nothing helps...

Have somebody any suggestions??? I really appreciate your help guys...
I don't want switch back to raspbian, because I want a really leightweight homeserver :/.
Ecco1988
 
Posts: 2
Joined: Sun Sep 01, 2013 4:11 pm

Re: Resizing SD card via command line

Postby ncotb » Sun Sep 01, 2013 6:32 pm

Hey Ecco,

Yea, I used to get the same thing.

What I did was:

1) Follow paranoidandroid's instructions (viewtopic.php?f=31&t=3119&start=20#p33507)
2) reboot
3) # resize2fs /dev/mmcblk0p2
4) Fire up gparted, resize mmcblk0p5

Alternatively, instead of using gparted, ignore 3) and 4), and just do instead:

3) # resize2fs /dev/mmcblk0p2
4) # resize2fs /dev/mmcblk0p5

Hope this helps.
ncotb
 
Posts: 2
Joined: Fri Aug 30, 2013 2:40 pm

Re: Resizing SD card via command line

Postby Ecco1988 » Sun Sep 01, 2013 7:19 pm

Thanks =).

I allrdy found this tutorial

http://jan.alphadev.net/post/5359424165 ... -partition
Ecco1988
 
Posts: 2
Joined: Sun Sep 01, 2013 4:11 pm

Previous

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 10 guests