FS not resizing.
|
10th Apr, 2016, 08:36 PM
Post: #1
|
|||
|
|||
FS not resizing.
NOTE: This is from a very early release - XBMC13.2 Dec 2014.
The system was backup up using xbian-config to an image. Due to an error, the backup was restored to the SD card and the system booted. However, the FS does not resize and thinks it is only 2G whereas the card is 4G. Is there anyway to force the resize or can I do it on a live BTRFS system? Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
10th Apr, 2016, 10:00 PM
Post: #2
|
|||
|
|||
RE: FS not resizing.
(10th Apr, 2016 08:36 PM)IriDium Wrote: Is there anyway to force the resize or can I do it on a live BTRFS system?Forcing resize: don't know You can do it while fs is mounted 1) check partition size sudo fdisk -l /dev/mmcblk0 if size is already max then continue with step 5 2) remove swap part if exists (should be partition 3) sudo swapoff -a and then run sudo fdisk /dev/mmcblk0 and remove swap part don't exit fdisk 3) enlarge root partition (should be partition 2) and add new swap partition start fdisk if not already running The trick is removing the existing one and create a new one with exactly the same start block and max size minus 250M for swap part Add swap partition, use rest of disk for this save changes to disk and exit (command w) 4) reload partition table into kernel run sudo partprobe if partprobe complains anything, you have to reboot before step 5 step 5) resize root fs and add swap resize root fs sudo btrfs filesystem resize max / sudo swapoff -a sudo mkswap /dev/mmcblk0p3 sudo swapon -a |
|||
10th Apr, 2016, 11:10 PM
Post: #3
|
|||
|
|||
RE: FS not resizing.
Unfortunately that didn't work. fdisk was throwing up errors about the disk and wouldn't let me delete the partition.
Trying an alternative image back and see if that is any better Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
10th Apr, 2016, 11:24 PM
Post: #4
|
|||
|
|||
RE: FS not resizing. | |||
11th Apr, 2016, 12:54 AM
Post: #5
|
|||
|
|||
RE: FS not resizing.
More than likely - a later backup image worked as expected.
Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
14th May, 2019, 07:46 AM
Post: #6
|
|||
|
|||
FS not resizing.
I moved my SD-card to the USB stick on a RPI 2b device. This works fine. However, the root partiion doesn't want to resize to the size of the USB stick. xbian-config doesn't support the resize, since it is supposed to resize by itself.
How can I make it resize? (I checked some old forum topics, and I checked my /boot/config.txt The following lines look different than in those forums: Code: # see /etc/default/xbian-initramfs |
|||
14th May, 2019, 10:47 PM
(This post was last modified: 14th May, 2019 10:53 PM by Nachteule.)
Post: #7
|
|||
|
|||
RE: FS not resizing.
(14th May, 2019 07:46 AM)jakenl Wrote: I moved my SD-card to the USB stick on a RPI 2b device. This works fine. However, the root partiion doesn't want to resize to the size of the USB stick. xbian-config doesn't support the resize, since it is supposed to resize by itself. You have to enable initramfs in Kodi's XBian-config gui, category System, remove swap partition manually (if exist, see above) and reboot. |
|||
15th May, 2019, 04:03 AM
Post: #8
|
|||
|
|||
RE: FS not resizing.
(14th May, 2019 10:47 PM)Nachteule Wrote:(14th May, 2019 07:46 AM)jakenl Wrote: I moved my SD-card to the USB stick on a RPI 2b device. This works fine. However, the root partiion doesn't want to resize to the size of the USB stick. xbian-config doesn't support the resize, since it is supposed to resize by itself. With the fdisk command I checked the USB-stick that holds my OS: Code: @xbian ~ $ sudo fdisk -l /dev/sda Then I checked the Xbian GUI: Xbian - System - (sub topic System) - 'Use of initramfs' = required I put it on 'always' and rebooted. This doesn't do the trick. |
|||
15th May, 2019, 04:22 AM
(This post was last modified: 15th May, 2019 04:25 AM by Nachteule.)
Post: #9
|
|||
|
|||
RE: FS not resizing.
(15th May, 2019 04:03 AM)jakenl Wrote: With the fdisk command I checked the USB-stick that holds my OS: Hmmm, but it should There are cmdline parameters to disable resize partition and creating of swap, but I don't believe that you have set them Have you checked if initramfs is enabled in /boot/config.txt now? |
|||
15th May, 2019, 06:25 AM
Post: #10
|
|||
|
|||
FS not resizing.
Yes I checked, the hash sign is still in front of it. The text is the same as described 2 posts back
|
|||
15th May, 2019, 07:22 AM
(This post was last modified: 15th May, 2019 07:23 AM by Nachteule.)
Post: #11
|
|||
|
|||
RE: FS not resizing.
(15th May, 2019 06:25 AM)jakenl Wrote: Yes I checked, the hash sign is still in front of it. The text is the same as described 2 posts back Ah, that's what I assumed Did you save the setting you changed? It's not enough to change setting, you have to go to next/previous setting in XBian-config GUI before you'll be asked if you want to save setting or not. Another question: Are you booting without sd-card? If not, maybe wrong /boot partition is mounted |
|||
16th May, 2019, 04:12 AM
Post: #12
|
|||
|
|||
RE: FS not resizing.
(15th May, 2019 07:22 AM)Nachteule Wrote:I forgot the next/previous thing and after a reboot, the # sign was gone indeed. However, the partition was not resized.(15th May, 2019 06:25 AM)jakenl Wrote: Yes I checked, the hash sign is still in front of it. The text is the same as described 2 posts back Code: # see /etc/default/xbian-initramfs It is a RPI 2b, therefore it needs a SD-card to boot from. Extract from the fdisk command: fdisk -l: Code: Disk /dev/mmcblk0: 1.9 GiB, 2013265920 bytes, 3932160 sectors Code: xbian@xbian ~ $ df -h |