Banana Pro&Pi User Manual


Add to my manuals
98 Pages

advertisement

Banana Pro&Pi User Manual | Manualzz

6 Applications

6.1 Using Banana Pro to build NAS home server

I have an old computer not to be used that just have the computer case, hard drive and a power supply. If you don’t use those devices they will be wasted. So I use the surplus equipment and Banana Pro (Using Banana Pi can achieve the same effect) set up my NAS home server.

6.1.1 The main function of the NAS home server

(1) File server: Use samba to realize the file sharing.

(2) Download machine: Use aria2c to realize the automatic download.

(3) Streaming media server: DLNA realize the use of computer or mobile phone playing the media files that were placed in the sharing directory.

The steps are as follows.

6.1.2 Preparation work

(1)Write the OS image file Raspbian for BananaPro to MicroSD card

Banana Pro&Pi User Manual - 68 -

Copyright © 2015 LeMaker. All Rights Reserved.

(2) The preparation of hardware

1) Use the power supply to supply power for the hard drive

2) Connect the hard drive to the SATA port on the B-Pro

3) Plug in an RJ-45 Ethernet

4) Plugging in the mains adapter power on the Banana Pro.

(3)Format the hard drive to create a new partition and mount the root directory to the hard drive

1)Format the hard drive to create a new partition

Run the sudo fdisk /dev/sda command. Use the o command to delete all partition of hard drive and use the n command to add one new partition. Use the w command to save change.

Run the sudo mkfs.ext4 /dev/sda1 command to format the new created partition of hard drive as ext4.

2) Mount the root directory to your hard drive

When we mount the root directory to the hard drive, the file system will start in the hard drive. This setting is a good way to protect our MicroSD card, when we need a long time to use the system .Specific methods are as follows.

Create a temporary directory in the root directory mkdir temp sudo fdisk –l

Mount the /dev/mmcblk0p2 to the temp directory sudo mount /dev/mmcblk0p2 /temp

Copy the file system to the hard drive partition sudo mount /dev/sda1 /mnt cp –aP /temp /mnt

Edit the /boot/uEnv.txt, sudo nano uEnv.txt

Banana Pro&Pi User Manual - 69 -

Copyright © 2015 LeMaker. All Rights Reserved.

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement

Table of contents