Thank you for your donation


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.
Find all posts by this user
Quote this message in a reply
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 Huh

You can do it while fs is mounted Smile

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
Find all posts by this user
Quote this message in a reply
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.
Find all posts by this user
Quote this message in a reply
10th Apr, 2016, 11:24 PM
Post: #4
RE: FS not resizing.
(10th Apr, 2016 11:10 PM)IriDium Wrote:  Unfortunately that didn't work. fdisk was throwing up errors about the disk and wouldn't let me delete the partition.

So this was the reason for resizing failed
Find all posts by this user
Quote this message in a reply
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: