I have a Pi installed on a Syno iSCSI target using Berryboot.
I started with 15 GB partition, but I now need more space.
I resized the Syno target to 25 GB.
I resized the /dev/sda2 of the Pi to 25 GB
I am stuck when trying to resize2fs, I get
resize2fs: Device or resource busy while trying to open /dev/sda
Couldn't find valid filesystem superblock.
Some more info:
-$ sudo parted /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: SYNOLOGY iSCSI Storage (scsi)
Disk /dev/sda: 26.8GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 134MB 133MB primary lba
2 134MB 26.8GB 26.7GB primary ext4
-$ df -ah
Filesystem Size Used Avail Use% Mounted on
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
dev 411M 0 411M 0% /dev
none 15G 13G 1.5G 90% / <== I need more space here
tmpfs 422M 0 422M 0% /dev/shm
devpts 0 0 0 - /dev/pts
tmpfs 422M 32M 390M 8% /run
tmpfs 5.0M 8.0K 5.0M 1% /run/lock
tmpfs 422M 0 422M 0% /sys/fs/cgroup
cgroup 0 0 0 - /sys/fs/cgroup/systemd
cgroup 0 0 0 - /sys/fs/cgroup/cpu,cpuacct
cgroup 0 0 0 - /sys/fs/cgroup/blkio
cgroup 0 0 0 - /sys/fs/cgroup/memory
cgroup 0 0 0 - /sys/fs/cgroup/freezer
cgroup 0 0 0 - /sys/fs/cgroup/net_cls
cgroup 0 0 0 - /sys/fs/cgroup/devices
systemd-1 - - - - /proc/sys/fs/binfmt_misc
debugfs 0 0 0 - /sys/kernel/debug
sunrpc 0 0 0 - /run/rpc_pipefs
mqueue 0 0 0 - /dev/mqueue
configfs 0 0 0 - /sys/kernel/config
/dev/mmcblk0p1 3.7G 48M 3.7G 2% /boot
//xxxxxxxxxxxxxxxxxxxxx 5.7T 5.2T 469G 92% /mnt/xxxxxxxxxxx
tmpfs 85M 0 85M 0% /run/user/1000
binfmt_misc 0 0 0 - /proc/sys/fs/binfmt_misc
tracefs - - - - /sys/kernel/debug/tracing
-$ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 1.6G 1 loop
sda 8:0 0 25G 0 disk
├─sda1 8:1 0 127M 0 part
└─sda2 8:2 0 24.9G 0 part
mmcblk0 179:0 0 3.7G 0 disk
└─mmcblk0p1 179:1 0 3.7G 0 part /boot
-$ sudo resize2fs /dev/sda2
resize2fs 1.43.4 (31-Jan-2017)
resize2fs: Device or resource busy while trying to open /dev/sda2
Couldn't find valid filesystem superblock.
My / partition is at 90%, that’s the one I need more space on.
I don’t know how to put it at 25 GB – perhaps there is something else done by Berryboot ?