Need help to resize partitions - Raspberry Pi Q&A, Help & Troubleshooting

Hi,
I got an Rasbian image on my 8GB SD card and the image expanded to full 8 GB on first boot.
Now I found this nice bootloader which I want to use:
http://www.berryterminal.com/doku.php/berryboot
The second image I want to use is the Raspbmc media center which uses like 100 mb.
Berryboot supports installing OS from image files but only if both images fit on the SD card probably
So the question is how can I resize the Raspbian image by 100 MB so I can install Raspbmc too?
Thanks in advance
Matt

MadMatt89 said:
Hi,
I got an Rasbian image on my 8GB SD card and the image expanded to full 8 GB on first boot.
Now I found this nice bootloader which I want to use:
http://www.berryterminal.com/doku.php/berryboot
The second image I want to use is the Raspbmc media center which uses like 100 mb.
Berryboot supports installing OS from image files but only if both images fit on the SD card probably
So the question is how can I resize the Raspbian image by 100 MB so I can install Raspbmc too?
Thanks in advance
Matt
Click to expand...
Click to collapse
I'd imagine you could adjust the partitions with fdisk or parted, but I have *NOT* tried this.

You'll definitely be able to use parted for the data partition on the same card. I tried resizing it using gparted and it worked fine

FBis251 said:
You'll definitely be able to use parted for the data partition on the same card. I tried resizing it using gparted and it worked fine
Click to expand...
Click to collapse
how to do that?
Isn't it easier to boot a live gparted system on my laptop and resize it with that with a gui?

MadMatt89 said:
how to do that?
Isn't it easier to boot a live gparted system on my laptop and resize it with that with a gui?
Click to expand...
Click to collapse
It doesn't make a difference it's a matter of personal preference. If your more comfortable using the live gparted CD with the GUI go for it.
Sent from my SCH-I535 using xda premium

Alright, gonna try it later. Thanks.

Related

Resize sd partition - a little question

Hello,
If i need to resize the sd partition (swap and app, ie to expand swap fro 32 to 64mb) the only wai is to re-format the sd or i can use gparted?
If i change the swap size i must change the value in some files or rom do this in automatic way?
I've found some info about resize sd, but i haven't understand very well...
Tnx to xda!
Idk
idkidk said:
Hello,
If i need to resize the sd partition (swap and app, ie to expand swap fro 32 to 64mb) the only wai is to re-format the sd or i can use gparted?
If i change the swap size i must change the value in some files or rom do this in automatic way?
I've found some info about resize sd, but i haven't understand very well...
Tnx to xda!
Idk
Click to expand...
Click to collapse
Of course you can use Gparted! In my opinion it's the best/easiest way. It will also let you resize your ext if you need too, but don't make it more than 1GB. The ROM will automatically adjust to the swap size, nothing needs to be altered after changing the swap size.
I am not sure if I am remembering this correctly as it was some time ago, but Gparted would not resize an ext4 partition for me... If you are using ext3 then it should resize just fine...
If I am wrong, someone please correct me...
Vermithrax said:
I am not sure if I am remembering this correctly as it was some time ago, but Gparted would not resize an ext4 partition for me... If you are using ext3 then it should resize just fine...
If I am wrong, someone please correct me...
Click to expand...
Click to collapse
To be honest it doesn't really matter. Just boot in to Ubuntu or any other linux distro (assuming the gparted live CD doesn't have a file manager) and copy over the app, app-private, and and configuration files on your ext to a place on your hard drive. Then delete the partition, resize fat/swap as you wish then add a new ext4 partition, mount it and copy your stuff back. Only do that when the card is mounted in recovery, not when the phone has booted in to the ROM.
resize partition
You can try to resize partition with Partition Manager.
This is the best choice to resize partition.
And it is free for use.
I used it, worked well.
So, I tell you this; hope you can solve this problem efficiently.
extend-partition.com/help/how-to-resize-partition.html
Go and see it, you can get useful information.

Running android from sd card

hello guys,
i want to share how to running android from sdcard, last time before i lose my X1 it's already running well on my X1.
here's the step :
requirement :
1. linux (mine ubuntu 9.10)
2. for ubuntu do "sudo apt-get install squashfs-tools" for getting unsquashfs (for extract system.sqsh)
prepared equipment :
1. 8gb SDCard (for good starting but you can also using 2 gb or 4gb)
2. partition your sdcard like this (8gb configuration) you can using gparted :
1. 5.5 gb format using fat32 this called : mmcblk0p1
2. 1 gb format using ext2/ext3 for /system this called : mmcblk0p2
3. 1 gb format using ext2/ext3 for /data this called : mmcblk0p3
4. 512 mb format using linuxswap for /swap this called : mmcblk0p4
installation :
1. do execute on terminal : unsquashfs <your system.sqsh directory> after extraction you will see directory called "squashfs-root"
2. copy all files from "squashfs-root" directory into your SD Card /system partition or mmcblk0p2.
3. copy startup.txt, haret.exe, modules<build>.gz, zImage from vdelf build onto your root SDCARD fat32 or mmcblk0p1
4. download and copy/replace rootfs.img from here into your root SDCARD fat32 or mmcblk0p1.
5. execute haret.exe and then wait and pray.
@vdelf :
man...your the best, with this configuration you can easly changes or edit an android modules.
cheers,
fatsal
man u are the 1
so is it only possible to set this up with linux, windows won't work?
CowMix said:
so is it only possible to set this up with linux, windows won't work?
Click to expand...
Click to collapse
same question?
But after all, why ask those questions every time? Get yourself DamnSmallLinux and qemu emulator.. It will be about 60 Mb download total and you'll never have problems with ext2 filesystem and permissions
sp3dev thanx for the hint i was looking for small distro ...
Thanks fatsal, almost there.
But one thing u missed in your first post, was to copy initrd.gz in step 3 (copy it to the fat32 partition)
Otherwise HARET says "/Storage Card/initrd.gz" not found.
But i get stuck in the boot screen (the android loading image with the X).
It just sits there forever. It shows a bit of the animation, then stalls for a second then skips back to the start of the animation...
Not sure whats wrong.
Mic159 said:
Thanks fatsal, almost there.
But one thing u missed in your first post, was to copy initrd.gz in step 3 (copy it to the fat32 partition)
Otherwise HARET says "/Storage Card/initrd.gz" not found.
But i get stuck in the boot screen (the android loading image with the X).
It just sits there forever. It shows a bit of the animation, then stalls for a second then skips back to the start of the animation...
Not sure whats wrong.
Click to expand...
Click to collapse
Yes, i have that problem too!
any help is appriciated!
i've definately done it all correct because when i insert the sd card the /data partition is filled with android files!
but the x just loops, freezes then continues to do that! :S
I have and 8GB SDHC card class 6, but i only ever have 7.42GB available, even when the card is empty. Is this normal?
Also i have tried to use Gparted to partition my SD card following the instructions aove, but i get an error message, can anyone tell me what im doing wrong. See attached for details.
Thanks in advance.
yes the 7.42 gb is normal, i cannot help you with the error though
but until we can get to fully boot up theres no point anyway!
Mic159 said:
But i get stuck in the boot screen (the android loading image with the X).
It just sits there forever. It shows a bit of the animation, then stalls for a second then skips back to the start of the animation...
Click to expand...
Click to collapse
I never managed to get past that. I got the same effect when i modified the system.sqsh. I ASSUME, that a file link is broken or some file permissions are not correct. I am sure, it is something trivial, but no idea how to find out.
fatsal said:
hello guys,
Click to expand...
Click to collapse
Nice to see you around, again!
CowMix said:
so is it only possible to set this up with linux, windows won't work?
Click to expand...
Click to collapse
It is MUCH EASYer to set this up with linux. It is possible using windows, but you have to use some black magic. Windows will not allow you to create more than one partition on an sdcard or usb-drive. Maybe some 3rd-party-partition-program can, but i dont know of one. It is possible to fool windows to think that the sdcard is a fixed disk. Then you can create more partitions.
The next problem is to create the ext2-filesystem in windows. There are drivers to read/modify ext2, but creating it? Maybe that 3rd-party-partition-program can...
we need fatsal's help! :|
vdelf said:
I never managed to get past that. I got the same effect when i modified the system.sqsh
Click to expand...
Click to collapse
Any progress on it?
What are the permissions supposed to be like?
Is there any way to debug the boot process when it wont boot?
can we put something in the eclare config to output the logs to a file?
Mic159 said:
Any progress on it?
What are the permissions supposed to be like?
Is there any way to debug the boot process when it wont boot?
can we put something in the eclare config to output the logs to a file?
Click to expand...
Click to collapse
unfortunately no, and i don't think there will be until an android SD xpert comes along or fatsal himself decides to chek xda
vdelf said:
It is MUCH EASYer to set this up with linux. It is possible using windows, but you have to use some black magic. Windows will not allow you to create more than one partition on an sdcard or usb-drive. Maybe some 3rd-party-partition-program can, but i dont know of one. It is possible to fool windows to think that the sdcard is a fixed disk. Then you can create more partitions.
The next problem is to create the ext2-filesystem in windows. There are drivers to read/modify ext2, but creating it? Maybe that 3rd-party-partition-program can...
Click to expand...
Click to collapse
Ask and ye shall receive
This is the Hitachi fixed-disk filter driver - if you put your device id in the inf file, you can partition your SD card like a normal fixed disk.
NOTE: I take NO responsibility if this driver eats your first-born child, or opens a trans-dimensional portal and sucks you into oblivion. You are on your own for support. If you are unsure what you are doing, DON'T USE THIS - get a live CD linux distro and boot that instead.
If you want to read-write ext2 partitions under windows, use something like http://www.fs-driver.org/ - again if it turns your computer into a smouldering pile of vomit, it's YOUR responsibility!
But have fun anyway!
sp3dev said:
But after all, why ask those questions every time? Get yourself DamnSmallLinux and qemu emulator.. It will be about 60 Mb download total and you'll never have problems with ext2 filesystem and permissions
Click to expand...
Click to collapse
i got damn small linux
how to make partition to my SD card by using the dsl?
thank u in advance
Most linux distributions have cfdisk. Look at the linux log to find the device name for your sd-card. It should be something like /dev/sdb. Run cfdisk /dev/sdb as root, and you can manage partitions on that device. Be carefull not to edit the wrong disc
For partitioning i mostly use gparted. Bigger download, but very comfortable and powerful partitioning system.

[Q] EXT2/3/4 Internal SD Card ?

Hi, im using Modaco's gr5 rom and HP RC9 Kernel, and i want to be able to format my internal SD card in Ext2, Ext3 or Ext4 because i need to be able to handle symlinks, can this be done? what would be the procedure?
Thanks in advance.
It should be done but you will no longer able to use your sdcard on windows
Sent from my LG-P990 using Tapatalk
Should be easy to make a .zip that converts it in recovery, but you'd need to do some mount point tweeking before you could use it.
Just used either a Linux computer and its Gparted software, or if you have a windows computer, search for Gparted Live CD.
Yes, i know how to convert it, i have Debian, Ubuntu and Mint installed along with Win7 on my laptop so the convert process is no problem, but, what should i do to make the phone recognise it? where do i make the mount point? /etc/fstab is not present, i don't know how to do it the Android way =/
You'll have to modify /etc/vold.fstab.
You can inspire yourself of the different mods that change sdcard mounting, see in dev or app section.
Striatum_bdr said:
You'll have to modify /etc/vold.fstab.
Click to expand...
Click to collapse
Thanks! i'll try that

[Q] hard drive fusion of partition problem

hi, i was wondering if you know how to extend the c drive if there is extra space on that hard drive (i tried disk management)
here are my numbers :
recovery = 11.90 / 25.00gb
OS(C = 174.82 / 293.03 gb
blank unallocated space =380.60 gb
the disk manager in the administrator programs wont let me make OS partition bigger by adding the unallocated to it.
can you help?
(win7 x64 bit )
the options are all greyed out except the ones shown in my pic
i need the extra space
thank you for helping
Convert your partitions from "Basic" to "Dynamic", then you should be able. Or get Hiren's BootCD and use one of the partition tools. Or clone your hard drive to something else, format it, and make whatever partitions you want, then go back to Ghost, and clone back. Or just go for a fresh windows install, and format during the installation.
Also next time, use should try using this new website I found not too long ago. It's called http://google.com
jaszek said:
Convert your partitions from "Basic" to "Dynamic", then you should be able. Or get Hiren's BootCD and use one of the partition tools. Or clone your hard drive to something else, format it, and make whatever partitions you want, then go back to Ghost, and clone back. Or just go for a fresh windows install, and format during the installation.
Also next time, use should try using this new website I found not too long ago. It's called http://google.com
Click to expand...
Click to collapse
too easy bro
6th result
https://www.google.com/#hl=en&safe=...ee8ecbff93de3cb&biw=1537&bih=815&pf=p&pdl=300
ianwardell said:
hi, i was wondering if you know how to extend the c drive if there is extra space on that hard drive (i tried disk management)
here are my numbers :
recovery = 11.90 / 25.00gb
OS(C = 174.82 / 293.03 gb
blank unallocated space =380.60 gb
the disk manager in the administrator programs wont let me make OS partition bigger by adding the unallocated to it.
can you help?
(win7 x64 bit )
the options are all greyed out except the ones shown in my pic
i need the extra space
thank you for helping
Click to expand...
Click to collapse
that partiton isn't free, green indicates an active file system. Right click on the free space and click delete volume. Then reboot and try to extend. If that doesn't work download paragon partition manager home edition (its free) and use that. Its WAY more powerful but the ui is similar to windows so you'll be fine. No need to use custom boot cd's or linux, which may actual obfuscate the problem
OK I had a problem. 1 it wouldn't let me extend it b/c the c partition was in use..which it was. The only way to get it to not be in use is to use a HD (external)! With Linux ....and this won't delete the info on the existing partition
Sent from my MB860 using Tapatalk
I've extended primary partition before, without problems, but try paragon
if that doesn't work use ubuntu and boot into live cd and use gparted to delete partition and extend c
icenight89 said:
I've extended primary partition before, without problems, but try paragon
if that doesn't work use ubuntu and boot into live cd and use gparted to delete partition and extend c
Click to expand...
Click to collapse
The files weren't deleted?
Sent from my Transformer Prime TF201 using Tapatalk
nope. .
icenight89 said:
nope. .
Click to expand...
Click to collapse
Awesome!! :thumbup: ill have to do that
Sent from my MB860 using Tapatalk
icenight89 said:
that partiton isn't free, green indicates an active file system. Right click on the free space and click delete volume. Then reboot and try to extend. If that doesn't work download paragon partition manager home edition (its free) and use that. Its WAY more powerful but the ui is similar to windows so you'll be fine. No need to use custom boot cd's or linux, which may actual obfuscate the problem
Click to expand...
Click to collapse
Yeah it is check out the pic bottom center is a key to the colors
Sent from my MB860 using Tapatalk
OMG.. this is a slightly frustrating problem... i hope i never need to do this at work.
EASEUS Partition Master 9 Home Edition is what you need.
Its free and it will let you do anything you want to your hard drives regardless of partition types.
Can you not just shrink the secondary partition and then expand the primary one?
Archer said:
Can you not just shrink the secondary partition and then expand the primary one?
Click to expand...
Click to collapse
Won't let me touch the partition if its in use so id have to live cd boot Linux
Sent from my Transformer Prime TF201 using Tapatalk
Or Hiren's BootCD
jaszek said:
Or Hiren's BootCD
Click to expand...
Click to collapse
It'd probably be easier to run DSL off thumbdrive and use gparted
- this sig is just so I don't have to write 10char when on my phone -
boborone said:
It'd probably be easier to run DSL off thumbdrive and use gparted
- this sig is just so I don't have to write 10char when on my phone -
Click to expand...
Click to collapse
Hirens can get confusing if first time using it.
- this sig is just so I don't have to write 10char when on my phone -
boborone said:
Hirens can get confusing if first time using it.
- this sig is just so I don't have to write 10char when on my phone -
Click to expand...
Click to collapse
Well do we know a good one for Linux as I think I'm going to have to live boot it
** Crap I just realized what it was....crap...links?
Sent from my Transformer Prime TF201 using Tapatalk
ianwardell said:
Well do we know a good one for Linux as I think I'm going to have to live boot it
Sent from my Transformer Prime TF201 using Tapatalk
Click to expand...
Click to collapse
boborone said:
It'd probably be easier to run DSL off thumbdrive and use gparted
- this sig is just so I don't have to write 10char when on my phone -
Click to expand...
Click to collapse
10charrrrrrrrrrrr
OK I booted Linux and g parted ...it still won't let me extend the " os" partition I ran it off a live cd
Sent from my Transformer Prime TF201 using Tapatalk

[Q] ? how can I overcome the 4gb file system limitation

I would like to repurpose my N1 as a little WiFi capable storage device. I have been combing the internet for solutions and tried a few things. I can't seem to get a combination of android OS partition scheme and file system to accomplish this. Can somebody point me in the right direction. I am not picky about any of the details but it would be nice to be readable from windows. I am currently messing around with ext4 and using ext2fsd but I am not really getting anywhere.
Thanks if u can help me out
dasbooter said:
I would like to repurpose my N1 as a little WiFi capable storage device. I have been combing the internet for solutions and tried a few things. I can't seem to get a combination of android OS partition scheme and file system to accomplish this. Can somebody point me in the right direction. I am not picky about any of the details but it would be nice to be readable from windows. I am currently messing around with ext4 and using ext2fsd but I am not really getting anywhere.
Thanks if u can help me out
Click to expand...
Click to collapse
You can flash a custom ROM (I recommend Evervolv KitKat) and use a2sd. Then you'll have up to 32 G on the external sdcard (which becomes a virtual "internal" sdcard.
Sent from my Nexus One
PhilipTD said:
You can flash a custom ROM (I recommend Evervolv KitKat) and use a2sd. Then you'll have up to 32 G on the external sdcard (which becomes a virtual "internal" sdcard.
Sent from my Nexus One
Click to expand...
Click to collapse
Hey thanks I already had a custom rom going with jelly bean and have a ext4 partition with a2sd install but it to make it visible even to linux seems to be a challenge and I dont know why. I also seem to get errors when downloading files bigger than 4gb which makes no sense. I dunno maybe i should get an otg card reader and put the old 4gb back in the phone and put the 32 gb in the card reader and use paragon software. Any body think this might work or have another suggestion.
dasbooter said:
Hey thanks I already had a custom rom going with jelly bean and have a ext4 partition with a2sd install but it to make it visible even to linux seems to be a challenge and I dont know why. I also seem to get errors when downloading files bigger than 4gb which makes no sense. I dunno maybe i should get an otg card reader and put the old 4gb back in the phone and put the 32 gb in the card reader and use paragon software. Any body think this might work or have another suggestion.
Click to expand...
Click to collapse
How about partitions sizes?
Sent from my Nexus 5
PhilipTD said:
How about partitions sizes?
Sent from my Nexus 5
Click to expand...
Click to collapse
Thnks again, The fat 32 partition is aprox 6gb and the ext4 partition is aprox 22gb so ya the ext4 is much bigger than the fat32 but that is what would make it practically useful. Right now I seem to be getting i/o errors around the 4 gb size area of a torrent? for a vmware image of a linux distro.

Categories

Resources