ODROID C2 ::: Resizing the microSD card issue

ODROID related support

ODROID C2 ::: Resizing the microSD card issue

Postby dunghnguyen » 13 Aug 2016, 13:40

Hi Frank @hondagx35 ! Sorry to disturb but it seems we have only you who could help. I followed the instruction from Rune audio web to resize the microSD 16GB card on C2 but it seems failed although the indication below ssh is fine. Your support is highly appreciated. Thanks.
Code: Select all
root@runeaudio(ro):~# set_rw
root@runeaudio(rw):~# resize2fs /dev/mmcblk0p1
resize2fs 1.42.13 (17-May-2015)
The filesystem is already 524288 (4k) blocks long.  Nothing to do!

root@runeaudio(rw):~# fdisk /dev/mmcblk0

Welcome to fdisk (util-linux 2.27.1).
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.4 GiB, 15489564672 bytes, 30253056 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: 0x000b0000

Device         Boot   Start      End  Sectors  Size Id Type
/dev/mmcblk0p1         2048  4196351  4194304    2G 83 Linux
/dev/mmcblk0p2      4196352 30253055 26056704 12.4G 83 Linux

Command (m for help): q

root@runeaudio(rw):~# df -h
Filesystem      Size  Used Avail Use% Mounted on
dev             736M     0  736M   0% /dev
run             860M   17M  843M   2% /run
/dev/mmcblk0p1  2.0G  1.9G     0 100% /
tmpfs           860M     0  860M   0% /dev/shm
tmpfs           860M     0  860M   0% /sys/fs/cgroup
tmpfs           860M  4.0K  860M   1% /tmp
tmpfs           860M  4.5M  855M   1% /aufs/rw
none            860M  4.5M  855M   1% /var
none            860M  4.5M  855M   1% /home
none            860M  4.5M  855M   1% /etc
none            860M  4.5M  855M   1% /mnt
logs            5.0M   40K  5.0M   1% /var/log
rune-logs       5.0M   96K  5.0M   2% /var/log/runeaudio
/dev/sda1        58G   38G   21G  65% /mnt/MPD/USB/Dung64GB
root@runeaudio(rw):~#
dunghnguyen
 
Posts: 228
Joined: 08 Mar 2016, 07:48

Re: ODROID C2 ::: Resizing the microSD card issue

Postby dunghnguyen » 13 Aug 2016, 13:52

I did to be 1 partition but it was failed as well
Code: Select all
===============  RuneOS distribution  ===============
  ____                      _             _ _
 |  _ \ _   _ _ __   ___   / \  _   _  __| (_) ___
 | |_) | | | | '_ \ / _ \ / _ \| | | |/ _` | |/ _ \
 |  _ <| |_| | | | |  __// ___ \ |_| | (_| | | (_) |
 |_| \_\\__,_|_| |_|\___/_/   \_\__,_|\__,_|_|\___/

================  www.runeaudio.com  ================
RuneOs: 0.4-alpha (build 20160516)
RuneUI: 1.3-alpha
Hw-env: ODROID-C2

root@runeaudio(ro):~# set_rw
root@runeaudio(rw):~# sudo resize2fs /dev/mmcblk0p1
resize2fs 1.42.13 (17-May-2015)
Filesystem at /dev/mmcblk0p1 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
The filesystem on /dev/mmcblk0p1 is now 3781376 (4k) blocks long.

root@runeaudio(rw):~# fd -h
-bash: fd: command not found
root@runeaudio(rw):~# df -h
Filesystem      Size  Used Avail Use% Mounted on
dev             736M     0  736M   0% /dev
run             860M   17M  843M   2% /run
/dev/mmcblk0p1   15G  1.9G   12G  14% /
tmpfs           860M     0  860M   0% /dev/shm
tmpfs           860M     0  860M   0% /sys/fs/cgroup
tmpfs           860M  3.2M  857M   1% /aufs/rw
tmpfs           860M  4.0K  860M   1% /tmp
none            860M  3.2M  857M   1% /var
none            860M  3.2M  857M   1% /home
none            860M  3.2M  857M   1% /etc
none            860M  3.2M  857M   1% /mnt
logs            5.0M   40K  5.0M   1% /var/log
rune-logs       5.0M   96K  5.0M   2% /var/log/runeaudio
/dev/sda1        58G   38G   21G  65% /mnt/MPD/USB/Dung64GB
root@runeaudio(rw):~# fdisk /dev/mmcblk0

Welcome to fdisk (util-linux 2.27.1).
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.4 GiB, 15489564672 bytes, 30253056 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: 0x000b0000

Device         Boot Start      End  Sectors  Size Id Type
/dev/mmcblk0p1       2048 30253055 30251008 14.4G 83 Linux

Command (m for help):

dunghnguyen
 
Posts: 228
Joined: 08 Mar 2016, 07:48

Re: ODROID C2 ::: Resizing the microSD card issue

Postby hondagx35 » 13 Aug 2016, 16:47

Hi dunghnguyen,

the partitioning on the ODROIDs is different as on the other systems.
It has only one partition.
The resizing procedure is the same.
- use fdisk to change the partition
Code: Select all
fdisk /dev/mmcblk0

- del partion one
- create new partition with max size
- reboot
- use resize2fs
Code: Select all
resize2fs /dev/mmcblk0p1

complete.

/dev/mmcblk0p1 15G 1.9G 12G 14% /

For me this looks like it didn't fail.

Frank
User avatar
hondagx35
 
Posts: 3016
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: ODROID C2 ::: Resizing the microSD card issue

Postby dunghnguyen » 14 Aug 2016, 01:11

Yes Frank, thanks for your advice and confirmation. As what I learnt from that the commands seems ok but when copying files to it, I just copied up to 3 flac album then it notified full, could not copy more. Let me try again. Again tks and have a nice day there !
dunghnguyen
 
Posts: 228
Joined: 08 Mar 2016, 07:48

Re: ODROID C2 ::: Resizing the microSD card issue

Postby dunghnguyen » 19 Aug 2016, 08:35

Tried again but failed to copy files into the extended card. I just copied 2-3 album it meant about less 2GB then WinSCP dropped connection when files copying. No idea why?

For Pi2, I could copy files upto 14.6GB for the microsd card 16GB.
dunghnguyen
 
Posts: 228
Joined: 08 Mar 2016, 07:48

Re: ODROID C2 ::: Resizing the microSD card issue

Postby hondagx35 » 19 Aug 2016, 08:53

Hi,

please post your output from "df -h" after you get the error.

Frank

edit:

Wait, you ask this for the ODROID-C2.
This image is read-only as you may know.
Modifications will be kept in memory until you reboot or shutdown.
ODROID-C2 has 2GB memory and this is the limit.

Solution:

1. make the image read-write

2. - do not extend the sc card partition, but make a second one.
- mount this partition read/write
- symlink this partition to /mnt/MPD/LocalStorage


Frank
User avatar
hondagx35
 
Posts: 3016
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: ODROID C2 ::: Resizing the microSD card issue

Postby dunghnguyen » 22 Aug 2016, 07:30

hondagx35 wrote:Hi,

please post your output from "df -h" after you get the error.

Frank

edit:

Wait, you ask this for the ODROID-C2.
This image is read-only as you may know.
Modifications will be kept in memory until you reboot or shutdown.
ODROID-C2 has 2GB memory and this is the limit.

Solution:

1. make the image read-write

2. - do not extend the sc card partition, but make a second one.
- mount this partition read/write
- symlink this partition to /mnt/MPD/LocalStorage


Frank


If I am not wrong I shared above I did the same as your advice already.
Thanks to advise me how to do for the red highlighted line in your comments.

I quoted again the commands that I did.

Code: Select all
root@runeaudio(ro):~# set_rw
root@runeaudio(rw):~# resize2fs /dev/mmcblk0p1
resize2fs 1.42.13 (17-May-2015)
The filesystem is already 524288 (4k) blocks long.  Nothing to do!

root@runeaudio(rw):~# fdisk /dev/mmcblk0

Welcome to fdisk (util-linux 2.27.1).
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.4 GiB, 15489564672 bytes, 30253056 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: 0x000b0000

Device         Boot   Start      End  Sectors  Size Id Type
/dev/mmcblk0p1         2048  4196351  4194304    2G 83 Linux
/dev/mmcblk0p2      4196352 30253055 26056704 12.4G 83 Linux

Command (m for help): q

root@runeaudio(rw):~# df -h
Filesystem      Size  Used Avail Use% Mounted on
dev             736M     0  736M   0% /dev
run             860M   17M  843M   2% /run
/dev/mmcblk0p1  2.0G  1.9G     0 100% /
tmpfs           860M     0  860M   0% /dev/shm
tmpfs           860M     0  860M   0% /sys/fs/cgroup
tmpfs           860M  4.0K  860M   1% /tmp
tmpfs           860M  4.5M  855M   1% /aufs/rw
none            860M  4.5M  855M   1% /var
none            860M  4.5M  855M   1% /home
none            860M  4.5M  855M   1% /etc
none            860M  4.5M  855M   1% /mnt
logs            5.0M   40K  5.0M   1% /var/log
rune-logs       5.0M   96K  5.0M   2% /var/log/runeaudio
/dev/sda1        58G   38G   21G  65% /mnt/MPD/USB/Dung64GB
root@runeaudio(rw):~#
dunghnguyen
 
Posts: 228
Joined: 08 Mar 2016, 07:48

Re: ODROID C2 ::: Resizing the microSD card issue

Postby hondagx35 » 22 Aug 2016, 23:12

Hi dunghnguyen,

Thanks to advise me how to do for the red highlighted line in your comments.

Modify /etc/fstab to make the new partition mount at boot
Code: Select all
nano /etc/fstab

then add the following line
Code: Select all
/dev/mmcblk0p2  /mnt/MPD/LocalStorage ext2       noatime,rw          0       0

reboot

Frank
User avatar
hondagx35
 
Posts: 3016
Joined: 11 Sep 2014, 22:06
Location: Germany

support RuneAudio Donate with PayPal


Return to ODROID

Who is online

Users browsing this forum: No registered users and 1 guest