You need to resize file system, instructions are on the MATE web pagemikelo wrote:I install Ubuntu MATE on my Pi. I When I was trying install other app on it. it shows me not have enought storage, I clikc exam the disk button. It shows me that I only have 3.8 GB. Does any one know how to fix this issue?
"Re-size file system"mikelo wrote:so, should I start with build or re-size system?
What, read the web pagemikelo wrote:so, should I start with build or re-size system?
Re-size file system
There are no utilities included for automatic file system re-sizing. However, it's not hard to do manually. Once booted:
sudo fdisk /dev/mmcblk0
Delete the second partition (d, 2), then re-create it using the defaults (n, p, 2, enter, enter), then write and exit (w). Reboot the system, then:
sudo resize2fs /dev/mmcblk0p2
It sounds important, but i ignore it and go on following the next instructionThe partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
Code: Select all
sudo resize2fs /dev/mmcblk0p2what should I doublecheck?resize2fs 1.42.12 (29-Aug-2014)
Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
The filesystem on /dev/mmcblk0p2 is now 3872896 (4k) blocks long.
Code: Select all
auser@auser-desktop:~$ sudo resize2fs /dev/mmcblk0p2
[sudo] password for auser:
resize2fs 1.42.12 (29-Aug-2014)
The filesystem is already 3872896 (4k) blocks long. Nothing to do!Code: Select all
root@auser-desktop:~# sudo fdisk /dev/mmcblk0
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/mmcblk0: 14,9 GiB, 15931539456 bytes, 31116288 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: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 2048 133119 131072 64M c W95 FAT32 (LBA)
/dev/mmcblk0p2 133120 31116287 30983168 14,8G 83 Linux
Command (m for help): d
Partition number (1,2, default 2): 2
Partition 2 has been deleted.
Command (m for help): n
Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (2-4, default 2): 2
First sector (133120-31116287, default 133120):
Last sector, +sectors or +size{K,M,G,T,P} (133120-31116287, default 31116287):
Created a new partition 2 of type 'Linux' and of size 14,8 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
root@auser-desktop:~#
Code: Select all
auser@auser-desktop:~$ sudo resize2fs /dev/mmcblk0p2
[sudo] password for auser:
resize2fs 1.42.12 (29-Aug-2014)
The filesystem is already 3872896 (4k) blocks long. Nothing to do!
auser@auser-desktop:~$
No, all data is kept, as long as you follow the instructions in the link exactly.jdtech wrote:I have this problem as well, I got too excitedand forgot to run those commands
. Now I have important data on my R.Pi, does the resizing delete my data?
Thanks! Such a quick replykusti8 wrote:No, all data is kept, as long as you follow the instructions in the link exactly.jdtech wrote:I have this problem as well, I got too excitedand forgot to run those commands
. Now I have important data on my R.Pi, does the resizing delete my data?
davidmonten wrote:after the rebootSo now I'll restart all the procedure from the beginning following this http://ubuntu-mate.org/raspberry-pi/Code: Select all
auser@auser-desktop:~$ sudo resize2fs /dev/mmcblk0p2 [sudo] password for auser: resize2fs 1.42.12 (29-Aug-2014) The filesystem is already 3872896 (4k) blocks long. Nothing to do!
1. fdisk: cancel and rewrite the partition 2; write at the end.
2. reboot
3. resize2fs
I'll go straight forward. I'll keep you updated.
EDIT
1. fdisk (rewrite the table)
2. rebootCode: Select all
root@auser-desktop:~# sudo fdisk /dev/mmcblk0 Welcome to fdisk (util-linux 2.25.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/mmcblk0: 14,9 GiB, 15931539456 bytes, 31116288 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: 0x00000000 Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 * 2048 133119 131072 64M c W95 FAT32 (LBA) /dev/mmcblk0p2 133120 31116287 30983168 14,8G 83 Linux Command (m for help): d Partition number (1,2, default 2): 2 Partition 2 has been deleted. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): p Partition number (2-4, default 2): 2 First sector (133120-31116287, default 133120): Last sector, +sectors or +size{K,M,G,T,P} (133120-31116287, default 31116287): Created a new partition 2 of type 'Linux' and of size 14,8 GiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Re-reading the partition table failed.: Device or resource busy The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8). root@auser-desktop:~#
Code: Select all
jeff@RasPiBuntu:~$ sudo resize2fs /dev/mmcblk0p2
[sudo] password for jeff:
resize2fs 1.42.12 (29-Aug-2014)
Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 2
resize2fs: Permission denied to resize filesystem
parted is the Linux Tool or if require a GUI then gparted will suffice............Digital404 wrote:Hi there
I just bought a 32gb sd card and I install a fresh copy of ubuntu mate now when I did the upgrade it went complete but when I did the update ittells me that I have no space I did every method there was fdisk and resize nothing still give the same error message I posted in a lot of forums but still no answer anyone got any idea on how to split a 32gb into two 16gb so that I could use one for manly for the os and other for what ever so I can update and upgrade the os