How to Expand SD Card - Printable Version +- Forum (http://forum.xbian.org) +-- Forum: Software (/forum-6.html) +--- Forum: Installation (/forum-16.html) +--- Thread: How to Expand SD Card (/thread-3902.html) Pages: 1 2 |
How to Expand SD Card - TheDutypaid - 10th May, 2017 12:25 AM I know this has been asked before as I have found most of the posts about it. My problem is that the instructions are quite abridged or maybe out of date. My 16GB card never expanded by itself on first boot, not sure if I need to SSH in (I get Network error: Connection timed out.) with Putty or open a terminal (not sure how to do that) use Win32DiskImager or something else? I do need my hand held and guided what route I need to take. Thank you. RE: How to Expand SD Card - Nachteule - 10th May, 2017 12:41 AM (10th May, 2017 12:25 AM)TheDutypaid Wrote: My 16GB card never expanded by itself on first boot, not sure if I need to SSH in (I get Network error: Connection timed out.) with Putty or open a terminal (not sure how to do that) use Win32DiskImager or something else? Initramfs needs to be enabled for automatic resize and swap creation. So, first please check if initramfs will be used: 1) a file initramfs.gz must be in /boot folder 2) initramfs line must not be hashed in /boot/config.txt Terminal cat /boot/config.txt initramfs initramfs.gz 0x1500000 ... RE: How to Expand SD Card - Nachteule - 10th May, 2017 12:52 AM This post may help to resize root partition and create swap RE: How to Expand SD Card - TheDutypaid - 10th May, 2017 01:27 AM When I SSH in I only get this? RE: How to Expand SD Card - Nachteule - 10th May, 2017 02:00 AM You have to exit xbian-config to get command prompt RE: How to Expand SD Card - TheDutypaid - 10th May, 2017 02:23 AM OK, this is my current config.txt Do I need to add the 'initramfs initramfs.gz 0x1500000' to this? Code: # **************************************************************** RE: How to Expand SD Card - Nachteule - 10th May, 2017 02:32 AM No, your file is ok If you have file /boot/initramfs.gz and resize does not work after reboot, please show me output of 1) Terminal sudo fdisk -l /dev/mmcblk0 Disk /dev/mmcblk0: 14,7 GiB, 15720251392 bytes, 30703616 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x828520e3 Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 * 2048 141311 139264 68M b W95 FAT32 /dev/mmcblk0p2 141312 15845375 15704064 7,5G 83 Linux /dev/mmcblk0p3 15845376 16347135 501760 245M 82 Linux swap / Solaris 2) Terminal root@kmxbilr ~ # xbian-arch RPI root@kmxbilr ~ # 3) Terminal root@kmxbilr ~ # xbian-arch revision rpi root@kmxbilr ~ # RE: How to Expand SD Card - TheDutypaid - 10th May, 2017 02:48 AM Step 1 worked but step 2 returned. xbian@xbian ~ $ root@kmxbilr ~ # xbian-arch -bash: root@kmxbilr: command not found RE: How to Expand SD Card - Nachteule - 10th May, 2017 03:00 AM Oh noooooooo, aaarrrrg, just run xbian-arch and xbian-arch revision, don't include my prompt to the command RE: How to Expand SD Card - TheDutypaid - 10th May, 2017 03:59 AM OK, here is what I got. I'm not sure it is a lot. the xbian arch and revision only returned RPI Code: xbian@xbian ~ $ sudo fdisk -l /dev/mmcblk0 RE: How to Expand SD Card - Nachteule - 10th May, 2017 04:18 AM Hmmm, everything is ok. Your sd-card has already been resized (size of root partition /dev/mmcblk0p2 is 14.5G) So I can't see any problem RE: How to Expand SD Card - TheDutypaid - 10th May, 2017 05:05 AM (10th May, 2017 02:32 AM)Nachteule Wrote: So I can't see any problem It is just when I place the SD card into my windows computer it shows the card as 44.1 MB free of 67.8 MB Not the 14.4 GB it should be, was hoping to store some video and music files on said card. Not sure if that is possible? Thank you again for your help, sorry I can be hard work. RE: How to Expand SD Card - Nachteule - 10th May, 2017 05:16 AM Ah, you can't read/write root partition from windows, because XBian uses BTRFS file system and W$ can not deal with that All you see in W$ is the boot partition, because this is FAT formatted RE: How to Expand SD Card - Skywatch - 10th May, 2017 06:20 AM Hmmm... I had problem yseterday with a pi2 which despite having a 16Gb card gave an out of memory crash during an upgrade. I removed the card and put it in the PC and saw the boot partition was 68MB, Xbian partition was 2GB and there was a unused partition of 12GB that was empty. I relfashed the card and tried upgrade again. The result was not so good (lots of messages about missing lsb and start/stop from memory) so I reverted to older image again. Today I see this thread and so I tried this..... Code: sudo fdisk -l /dev/mmcblk0 Does this look OK? (Sorry to piggy back this thread, but it seemed the nature of the problem was similar.)... RE: How to Expand SD Card - Nachteule - 10th May, 2017 06:23 AM (10th May, 2017 06:20 AM)Skywatch Wrote: Does this look OK? No! Root partition not expanded and missing swap initramfs enabled? Again, root partition will resized only if initramfs is enabled. (the script is there and nowhere else) |