<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>BananaPi on Arshad Siddiqui</title><link>https://arshadhs.github.io/tags/bananapi/</link><description>Recent content in BananaPi on Arshad Siddiqui</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 30 Mar 2020 12:29:34 +0100</lastBuildDate><atom:link href="https://arshadhs.github.io/tags/bananapi/index.xml" rel="self" type="application/rss+xml"/><item><title>Home Cloud</title><link>https://arshadhs.github.io/docs/technology/bananapi/</link><pubDate>Mon, 30 Mar 2020 12:29:34 +0100</pubDate><guid>https://arshadhs.github.io/docs/technology/bananapi/</guid><description>&lt;h1 id="banana-pi---home-cloud-part---2">
 Banana Pi - Home Cloud (Part - 2)
 
 &lt;a class="anchor" href="#banana-pi---home-cloud-part---2">#&lt;/a>
 
&lt;/h1>
&lt;hr>
&lt;h1 id="refresh-minidlna">
 Refresh MiniDLNA
 
 &lt;a class="anchor" href="#refresh-minidlna">#&lt;/a>
 
&lt;/h1>
&lt;p>MiniDLNA couldn&amp;rsquo;t find any new files in my media_dir even though I was adding new files. I think the problem was that my media_dir was set to an external hard drive.&lt;/p>
&lt;p>(media_dir=v,/media/ExtHD/x/x). I got it working, here are the steps I used to fix.&lt;/p>

&lt;blockquote class='book-hint '>
 &lt;p>sudo service minidlna stop
sudo rm -rf /var/cache/minidlna/*
sudo nano /etc/minidlna.conf&lt;/p></description></item><item><title>Home Cloud</title><link>https://arshadhs.github.io/docs/technology/homecloudbananapi/</link><pubDate>Sat, 05 Mar 2016 22:51:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/technology/homecloudbananapi/</guid><description>&lt;h1 id="banana-pi---home-cloud">
 Banana Pi - Home Cloud
 
 &lt;a class="anchor" href="#banana-pi---home-cloud">#&lt;/a>
 
&lt;/h1>
&lt;hr>
&lt;h3 id="ssh">
 SSH
 
 &lt;a class="anchor" href="#ssh">#&lt;/a>
 
&lt;/h3>
&lt;p>(Enable SSH)&lt;/p>
&lt;pre tabindex="0">&lt;code>$ sudo apt-get install openssh-server

$ sudo nano /etc/rc.local
/etc/init.d ssh
exit 0
&lt;/code>&lt;/pre>&lt;h3 id="resize">
 Resize
 
 &lt;a class="anchor" href="#resize">#&lt;/a>
 
&lt;/h3>
&lt;p>(Card on a ubuntu box)&lt;/p>
&lt;pre tabindex="0">&lt;code>$ sudo fdisk -l
Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 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: 0x59d0bd13

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 2048 104447 51200 83 Linux
/dev/mmcblk0p2 104448 15523839 7709696 83 Linux

Disk /dev/sda: 7.5 GiB, 7998537728 bytes, 15622144 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: 0x59d0bd13

Device Boot Start End Blocks Id System
/dev/sda1 2048 104447 51200 83 Linux
/dev/sda2 104448 7167999 3531776 83 Linux

umount /dev/sda2

[bananapi@lemaker ~]$ sudo fdisk /dev/sda
Welcome to fdisk (util-linux 2.24.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
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
Select (default p): p
Partition number (2-4, default 2): 2
First sector (104448-15622143, default 104448): 335872
Last sector, +sectors or +size{K,M,G,T,P} (104448-15622143, default 15622143): 

Created a new partition 2 of type &amp;#39;Linux&amp;#39; and of size 7.4 GiB.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

pi@bananapi:~$ sudo resize2fs /dev/mmcblk0p2
&lt;/code>&lt;/pre>&lt;h2 id="samba">
 SAMBA
 
 &lt;a class="anchor" href="#samba">#&lt;/a>
 
&lt;/h2>
&lt;p>(For accessing SSD from Windows PC inside home network on DLNA)&lt;/p></description></item></channel></rss>