Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 30,274
» Latest member: creatorriseagency
» Forum threads: 16,394
» Forum posts: 117,656

Full Statistics

Latest Threads
StarPro64 Irradium (based...
Forum: Getting Started
Last Post: mara
9 hours ago
» Replies: 26
» Views: 16,275
Selling Pinebook Pro, Pin...
Forum: General
Last Post: arw
Yesterday, 03:14 PM
» Replies: 3
» Views: 2,136
Printing from Mobian
Forum: Mobian on PinePhone
Last Post: PrinterSolvedTeam
10-27-2026, 06:01 AM
» Replies: 3
» Views: 4,960
Satellite antenna
Forum: Community and Events
Last Post: biketool
10-26-2026, 02:46 PM
» Replies: 2
» Views: 673
Irradium (based on crux l...
Forum: Linux on Pinebook
Last Post: mara
10-25-2026, 04:11 AM
» Replies: 5
» Views: 14,950
Booting Issues
Forum: PineNote Software
Last Post: vlagged
10-23-2026, 12:14 PM
» Replies: 25
» Views: 26,170
Alpha One - no connectivi...
Forum: Getting Started
Last Post: Dabdarklighter
10-22-2026, 03:51 PM
» Replies: 1
» Views: 1,208
Article: The Advantages o...
Forum: General
Last Post: zetabeta
10-20-2026, 02:38 PM
» Replies: 2
» Views: 458
Star64 Irradium (based on...
Forum: Getting Started
Last Post: mara
10-19-2026, 12:27 PM
» Replies: 22
» Views: 21,510
Article: Will Linux phone...
Forum: General
Last Post: amosbatto
10-19-2026, 09:52 AM
» Replies: 11
» Views: 1,568

 
Information Guide - Raid Array (Raid 0)
Posted by: Ptheven - 10-07-2017, 09:22 AM - Forum: Rock64 Tutorials - No Replies

Preface


In this guide, I will be showing how to create a raid array, using the raid 0 configuration. This allows you to have maximize storage available, however it comes at the risk of data loss in case of hardware failure. 




[Image: DifficultBitterAndeancondor-size_restricted.gif]

It also has the benefit of having really pretty "blinkenlights" effect when the USB drives are being accessed. 



Prerequisites


ROCK64 board running Debian or Ubuntu, connected to the local network

Access to terminal, either locally or via SSH


At least 2 Flash drives (or hard drives)

Recommended: USB Hub, for ease of access. 

___________________


Make sure your software and repositories are up to date: 



Code:
sudo apt update && sudo apt upgrade


Next, we install the mdadm package, used to monitor and implement software raid in linux: 

Code:
sudo apt install mdadm


After installing it, we can get our flashdrives and plug them directly into the ROCK64 board, or onto a USB hub and plug that into the board. 

The USB drives that I used were previously erased by me, and thus, don't have any partitions. We can confirm that they've been detected by the system by issuing the "lsblk" command, showing the attached blocked devices. In my case, they are sdb, sdc, and sdd: 


[Image: fJUNTyv.png]

Since we can see the 3 (in my case) flash drives recognized by the system, we can now proceed and start to create a new raid array. 

WARNING: BE VERY CAREFUL WITH THE FOLLOWING STEPS AND DOUBLE CHECK, USING THE WRONG NAMES COULD LEAD TO DATA LOSS

Code:
sudo mdadm --create --verbose /dev/md0 --level=0 --raid-devices=3 /dev/sd{b,c,d}

"--level=0" denotes the raid level, or the type of raid. "--raid-devices" flag states the number of devices. The last argument "/dev/sd{b,c,d}" is simply an easier way of saying "/dev/sdb /dev/sdc /dev/sdd" without having to type it all out (called Brace Expansion). 

[Image: LAWNB9K.png]

After the Array is created, you can invoke the "lsblk" command, to see the status of the USB drives. Notice that all three drives (sdb,sdc,sdd) are part of the partition (md0) and that the partition size is larger than the size of the physical disk: 

[Image: RejMu5C.png]

Now, we can simply create a partition on the raid array, and mount it to a suitable location. 
I created an ext4 partition on my Raid array: 

Code:
sudo mkfs.ext4 -F /dev/md0

Then, I created a mountpoint for my new Ext4 partition, and mounted it: 

Code:
sudo mkdir -p /mnt/md0 sudo mount /dev/md0 /mnt/md0

I also used this as an opportunity to check my RAID was succesfully created by checking the /proc/mdstat file (though, it was my mistake, I should have done this step right after creating the array. 



[Image: LPIHkQk.png?1]
Now that the RAID device is mounted, we can use the chown command to assume ownership of it so that we can write to it: 
Code:
sudo chown -R rock64: /mnt/md0/

Again, this might vary depending on your username and mount location. 
Thats all there is to it! We're done! You should be able to access that device under your mountpoint. We can confirm that the RAID array is mounted using either "lsblk" or "df -h": 
[Image: 5NRL2F7.png]
[Image: nM0D8aD.png]


  Laptop build
Posted by: jhip626 - 10-07-2017, 06:21 AM - Forum: Pine A64 Projects, Ideas and Tutorials - Replies (1)

Would I be able to use a screen like this for a display?
For Samsung Galaxy Tab 3 10.1" GT-P5200 P5210 P5200 LCD Display Panel Screen Monitor Repair Replacement
http://s.aliexpress.com/3iqMV3AV
(from AliExpress Android)
I would imagine I would need some sort of converter board, idk if something like that exists, but I need an inexpensive display that's around 10". It doesn't have to be touch screen.

Sent from my BLN-L24 using Tapatalk


  Running Netflix
Posted by: marcostt - 10-07-2017, 01:44 AM - Forum: Getting Started - Replies (4)

When I try to watch Netflix in Firefox (last version) I get an error message: 1003. Looking for fixes I see I must to allow content DRM at setup options of Firefox, but I can not find that option... What can I do? Thanks in advance.


  Bluetooth CSR8510 not working with Rock64 Android 7.1
Posted by: efreeze - 10-06-2017, 01:47 PM - Forum: Android on Rock64 - Replies (14)

Hello Guys,

I have the Rock64 with the last version of Android installed on it. All is good excepted that my CSR8510 BT dongle is not working. I tried everything i can see on my rasperry pie with no issue but not on Rock64. 
Anybody has any BT working on this platform on Android ? 

Thanks 

Seb


  Need .h includes for rk3328
Posted by: gene83 - 10-06-2017, 09:31 AM - Forum: Linux on Rock64 - Replies (4)

Does anyone know where I can source them?

Thanks, gene83


  Coming back from sleep
Posted by: roberthr - 10-06-2017, 07:13 AM - Forum: Rock64 Hardware and Accessories - Replies (12)

Does anybody know why Rock64 does not come back from sleep when pressing button on remote? It does only sometimes but success rate is 1:20.


  PINE64/ROCK64 infra receiver power on
Posted by: cserem - 10-06-2017, 06:41 AM - Forum: General Discussion on PINE A64(+) - Replies (1)

Hello,

On the PINE64 board there is an infra header. With the diode installed, is it capable of turning ON the board, or just turning it OFF?
I am interested in the answer for the ROCK64 board too, which has an infra receiver installed already: can it be used to power ON the device, or only to shut it down with the remote?

Thank you


  Dual boot microsd/eMMc?
Posted by: chitenavi - 10-06-2017, 02:26 AM - Forum: General Discussion on ROCK64 - Replies (2)

Hi all, I just received my rock64 and I want to use it mainly as a small NAS with OMV installed in the eMMc. Is it possible to have Android on the microSD and using the jumper to have both systems at the same time?

Thanks, greetings

Enviado desde mi MI 5s Plus mediante Tapatalk


Question stretch-minimal with static IP and GUI RDC
Posted by: skipper - 10-06-2017, 12:44 AM - Forum: Linux on Rock64 - Replies (1)

I prefer to operate my rock64 via putty in order to use absolute minimal CPU and RAM, as I am going to run intensive dB I/O (R/W) on an external SSD via the USB3 port.
So I downloaded this and installed it:
https://github.com/ayufan-rock64/linux-b...m64.img.xz

Due to not knowing the rock64 setup in detail, I did not manage to setup a static IP addr. so I erased and installed this:
https://github.com/ayufan-rock64/linux-b...m64.img.xz
..in order to do the static IP setup via Edit connections on the IP4 tab - and then it worked.

I did try to install - on the stretch-minimal - mate-core mate-desktop-environment and xrdp and edited the startwm.sh with mate-session, then rebooted and tried windows RDC to connect - but that didn't succeed.
I then tried to connect a keyboard, mouse and monitor to the board but was not able to get a desktop with startx.

Am I wrong in thinking that the stretch-minimal version is "better" - and has a smaller CPU/RAM footprint than xenial-mate (full GUI) - even if I install a core version desktop to the stretch version?
Does this question make sense?  Undecided

If true - how do I make stretch work with static IP and accessing it via windows RDC?


Question where is static IP addr?
Posted by: skipper - 10-06-2017, 12:14 AM - Forum: Linux on Rock64 - Replies (15)

Received 2 rock64 - and tinkering with the OS (Xenial-Mate) for a few days - looks good. 
One topic I can't crack is: where does the IP address go when I use the GUI Network-Manager? (rightclick the taskbar icon top-right and edit connections)
I enter (IP4 tab) a fixed IP, netmask, gateway and add 2 nameserver IPs.
When checking (after reboot) I can see (connection information) that all IPs I entered are correct.
Then I go /etc/resolv.conf and see the info there that this file will be overwritten.
/etc/network/interfaces.d/eth0 - shows eth0 as dhcp

Where is the static IP going when I enter it on the IP4 tab?
I'm not a master linux nerd. I do know a great deal of linux - this one, though, is a bit too difficult to solve  Confused

I do most work via putty, but was not able to setup the fixed IP there.
Also - why do I see the rock64 as an internal LAN IP on my router? The fixed IP, which I setup above, is an external IP.