OK this works, and looks like the perfect solution to both problems. But the bulk of SD card is not allocated to any partition (I have a small 94,4MB FAT partition, a 1,78GB one that's the main one with the OS and 13,84GB of unallocated space).
Here are the steps I had to follow in order to make the free space accessible:
1) Remove the SD and using gparted on a linux PC format the partition (I used ext2 but other formats should be fine too). I am quite sure that this could also be done with mkfs via ssh without removing the SD, but did not try that.
2) insert the SD and have a look at the partition table with fdisk -l
- Code: Select all
[root@runeaudio ~]# fdisk -l
Disk /dev/mmcblk0: 14.7 GiB, 15720251392 bytes, 30703616 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: 0x00083364
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 186367 184320 90M c W95 FAT32 (LBA)
/dev/mmcblk0p2 186368 3667967 3481600 1.7G 5 Extended
/dev/mmcblk0p3 3667968 30703615 27035648 12.9G 83 Linux
/dev/mmcblk0p5 188416 3667967 3479552 1.7G 83 Linux
Note which one is the partition you just created, here the Device Name is "/dev/mmcblk0p3"
3) Create a mountpoint for the new partition, like this
- Code: Select all
mkdir /mnt/MPD/USB/SD\ Card/
4) Modify /etc/fstab to make the new partition mount at boot
write
- Code: Select all
nano /etc/fstab
then add the following line
- Code: Select all
/dev/mmcblk0p3 /mnt/MPD/USB/SD\040Card ext2 noatime,rw 0 0
check that the name "mmcblk0p3" name matches with the one we got at step 2, to be sure we are mounting the correct partition
Note: the \040 is the octal code to use in place of "space" in files or directory names while in fstab.
exit from nano (ctrl-X, y to save) then reboot (just type "reboot") and wait. You should be able to see the new partition listed under USB STORAGE in RuneUI. Now you can upload and manage audio files over wi-fi or wired network using any SFTP/SCP client. I succesfully used Cyberduck.
Do not forget to click "Update this folder" in RuneUI after you uploaded/changed your files.
The picture shows the new folder in RuneUI, "XVI GIGA" is a USB stick. It is now possible to flawlessly use both storages. May be you could try formatting the partition using FAT in place of ext2, to be able to write to it using windows. Should work, in theory.
- Schermata 2014-12-15 alle 11.11.43.png (44.8 KiB) Viewed 7899 times