Power & Source of Big Ideas

DD copied image to eMMC on my NanoPi air no space on /root

Moderators: chensy, FATechsupport

So I can't update it will say this:

Error writing to output file - write (28: No space left on device)

It has 8GB of eMMC. Here is a df -h command to show it.

root@FriendlyARM:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 886M 886M 0 100% /
devtmpfs 168M 0 168M 0% /dev
tmpfs 248M 0 248M 0% /dev/shm
tmpfs 248M 8.6M 239M 4% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 248M 0 248M 0% /sys/fs/cgroup
/dev/mmcblk0p3 6.5G 923M 5.6G 15% /mnt/sdcard
tmpfs 50M 0 50M 0% /run/user/0
root@FriendlyARM:~#


Got a lot of space on the /dev/mmcblk0p3 so can I expand the /dev/root some how? There is no way to remove the eMMC to mount it in something else. I guess I could boot from a SD card and resize it?

-Raymond Day
I dd copied the 4GB image to the eMMC.

It boots up and shows but it's all write-protected now!

Ubuntu 15.10 FriendlyARM ttyS0

FriendlyARM login: root
Password:
root@FriendlyARM:~# cp /etc/network/interfaces /etc/network/interfaces~
cp: cannot create regular file '/etc/network/interfaces~': Read-only file system
root@FriendlyARM:~# mount -o remount, rw /
[ 140.184425] EXT4-fs error (device mmcblk0p2): ext4_remount:4398: Abort forced by user
mount: cannot remount rw read-write, is write-protected
root@FriendlyARM:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 3.6G 877M 2.7G 25% /
devtmpfs 168M 0 168M 0% /dev
tmpfs 248M 0 248M 0% /dev/shm
tmpfs 248M 8.4M 239M 4% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 248M 0 248M 0% /sys/fs/cgroup
root@FriendlyARM:~#


How can I fix this?

-Raymond Day
Raymond Day wrote:
So I can't update it will say this:

Error writing to output file - write (28: No space left on device)

It has 8GB of eMMC. Here is a df -h command to show it.

root@FriendlyARM:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 886M 886M 0 100% /
devtmpfs 168M 0 168M 0% /dev
tmpfs 248M 0 248M 0% /dev/shm
tmpfs 248M 8.6M 239M 4% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 248M 0 248M 0% /sys/fs/cgroup
/dev/mmcblk0p3 6.5G 923M 5.6G 15% /mnt/sdcard
tmpfs 50M 0 50M 0% /run/user/0
root@FriendlyARM:~#


Got a lot of space on the /dev/mmcblk0p3 so can I expand the /dev/root some how? There is no way to remove the eMMC to mount it in something else. I guess I could boot from a SD card and resize it?

-Raymond Day


Hi,
When you boot Debian/UbuntuCore for the first time with your image card your OS will automatically resize the file system and this process takes a relatively long time.After your OS is fully loaded you can check the file system's size by using the following command:
#df -h
If you boot from eMMC ,you only need to flash the OS to eMMC, after flashing you need to take off the card, then reboot your board it will boot from eMMC. And make sure your Air on the Internet that update packages:
# sudo apt-get update
I never seen it do "OS will automatically resize the file system" it don't look like it works. I can see what it does because I am using the RS-232. So it should show it doing resize the file system.

I had to use a live GParted and then I made the 3RD partition small and the 2ND one made it big and now I can DD copying it to the eMMC 8GB now.

Can see it good with a screen shot of the RS-232 and it's copying it to the eMMC card now.

resized the nanoPi air.jpg
resized the nanoPi air.jpg (123.85 KiB) Viewed 1116 times


Nice to see /dev/root is only using 15% now not 100%!

It came back with this:

dd: error writing '/dev/mmcblk1': No space left on device
746+0 records in
745+0 records out
7818182656 bytes (7.8 GB) copied, 954.859 s, 8.2 MB/s
root@FriendlyARM:~#


Turn it off, removed the SD card and now it boots and still shows only 15% used on /dev/root. Now have to get WiFi working and can have room to update it.

-Raymond Day

Who is online

In total there are 6 users online :: 0 registered, 0 hidden and 6 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 6 guests