Uploading tracks via ftp/sftp

Suggestions/requests/ideas for RuneAudio core features and functions

Uploading tracks via ftp/sftp

Postby davidemania » 14 Dec 2014, 17:33

Is it possible to upload (and manage) tracks to an USB mass memory device via FTP or SFTP? I tried but it seems the device (in my case a 16GB USB stick) is mounted in read only, and I couldn't modify anything on it.

It would be nice to be able to manage the music library without having to open the box and physically remove the stick from the board (a raspberry Pi) and connect it to a computer. I tried to unmount the USB drive from the UI but apparently nothing happens after trying that.

I am quite new to rune audio so may be I am just missing something obvious. Any hint?

thanks
Davide
Last edited by davidemania on 15 Dec 2014, 14:28, edited 1 time in total.
davidemania
 
Posts: 22
Joined: 14 Dec 2014, 17:26

Re: Uploading tracks via fts/sftp

Postby ACX » 14 Dec 2014, 18:22

A slightly dirty but effective way to achieve that in the current state of our implementation is to create a dir inside /mnt/MPD/USB and put your media files inside there via SFTP. After you update MPD's database, the folder will be listed clicking on the "USB storage" block in the Library home screen.
User avatar
ACX
RuneAudio co-founder
 
Posts: 1693
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Uploading tracks via fts/sftp

Postby davidemania » 14 Dec 2014, 20:39

I'll try that, but where will the files go? On the USB stick? And what if I have more than one?

By the way, since there is lot of free space on the main SD card (mine actually is a 16GB one), is it possible to put it to a good use and load some music there?
davidemania
 
Posts: 22
Joined: 14 Dec 2014, 17:26

Re: Uploading tracks via fts/sftp

Postby ACX » 15 Dec 2014, 02:38

The solution I suggested you is meant for placing files on the SD, you only have to create the new dir in /mnt/MPD/USB to be able to browse it through the UI then (at least with the current implementation).
User avatar
ACX
RuneAudio co-founder
 
Posts: 1693
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Uploading tracks via fts/sftp

Postby davidemania » 15 Dec 2014, 11:15

Attachments
Schermata 2014-12-15 alle 11.11.43.png
Schermata 2014-12-15 alle 11.11.43.png (44.8 KiB) Viewed 8064 times
davidemania
 
Posts: 22
Joined: 14 Dec 2014, 17:26

Re: Uploading tracks via fts/sftp

Postby ACX » 15 Dec 2014, 13:34

Thank you for reporting the detailed steps you followed, which could be useful for future readers.
User avatar
ACX
RuneAudio co-founder
 
Posts: 1693
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Uploading tracks via ftp/sftp

Postby hondagx35 » 15 Dec 2014, 21:48

Attachments
1.jpg
1.jpg (91.13 KiB) Viewed 8049 times
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Uploading tracks via ftp/sftp

Postby davidemania » 16 Dec 2014, 13:31

cool :)
davidemania
 
Posts: 22
Joined: 14 Dec 2014, 17:26

Re: Uploading tracks via ftp/sftp

Postby davidemania » 27 Dec 2014, 14:03

davidemania
 
Posts: 22
Joined: 14 Dec 2014, 17:26

Re: Uploading tracks via ftp/sftp

Postby aj78 » 27 Dec 2014, 19:16

Another command which may be of interest to make use of unused space on the SD card is resize2fs. This resizes the filesystem, and can be used while the filesystem is online (i.e. no need to unmount it). First you have to use fdisk to resize the partition to fill the whole SD card. You can do this by doing "fdisk /dev/mmcblk0". Press "p" to show the current partitions and note down the details of the main one that RuneOS is on. Then delete it! (Press "d" and choose the relevant partition number.) Then press "n" to make a new partition, and "p" to select a primary partition. Enter the same start block that you wrote down above, and allow it to use the default end block (the last block available on the device). Now press "t" and enter the value "82" to mark it as a Linux partition. Finally press "w" to write changes and exit. You may have to reboot after this for changes to be registered. This has resized the partition, but not yet the filesystem.

Next, use the command "resize2fs /dev/mmcblk0p0" (or /dev/mmcblk0p1 if the main RuneOS partition was mmcblk0p1). This will resize the filesystem to fill the whole partition, and hey presto you have a lot more space available for stuff.
aj78
 
Posts: 51
Joined: 29 Oct 2014, 20:42

support RuneAudio Donate with PayPal

Next

Return to Feature request

Who is online

Users browsing this forum: No registered users and 1 guest