Dunno if someone already posted it, but here is a quick ToDo:
Using Java Miner under Linux with Plots on several drives
Option 1)
If you haven't done any plots yet, easiest way is using LVM for making one Drive out of several. ->
http://www.howtoforge.com/linux_lvmOption 2) (I prefer this one, as you can do plots on both drives at the same time and know which plots are made on which drive)
In this scenario we have 2 empty disks and want to use both for mining. Those are sdb and sdc
Create a new Partition on each drive, if you haven't done yet with fdisk.
If there are no partitions on it, just press "n" and enter for the next questions to use default values.
If there are already partitions on it, delete them with "d" and the number of the partition.
You can have a look at the current paritions with "p"
Format the new partitions (in the example we use ext4)
sudo mkfs.ext4 /dev/sdb1 && sudo mkfs.ext4 /dev/sdc1
This will take a bit, but keep it running.
Now it is time to mount the partitions.
Create a new folder called "plots".
And 2 subfolders for the 2 drives
sudo mkdir /plots/disk1 && sudo mkdir /plots/disk2
Mount the drives
sudo mount /dev/sdb1 /plots/disk1
sudo mount /dev/sdc1 /plots/disk2
For easier use, take the ownership of those directories, so no more sudo
Now it is time to get the Plots done.
If you don't have your numeric ID yet, use the Guide posted on the first page to get your ID.
To create the Plots, we use dcct's plot generator
cd /plots/disk1
wget https://bchain.info/plotgenerator.tgz
tar xzf plotgenerator.tgz
make
If you get an error after typing "make", you need to install make and a compiler first
sudo apt-get update && sudo apt-get install make gcc
Delete the stuff you don't need anymore
rm Makefile plot.c plotgenerator.tgz shabal.*
In the example we use 41GB Plot Files, which are generated using 3000MB Memory and 2 Threads
To create the necessary commands, you can use a PHP Script (got this one already, maybe someone wants to make a shellscript)
Create a file called "generateplots.php"
<?php
$startnonce = 0;
$maximalGB = 1000;
$yourburstid = "123456789";
# Adjust more Options
$nonces = 16800;
$staggersize = 1200;
$threads = 2;
# In this Example we have a Plot Size of 41GB. How many runs can we do?
$totalruns = floor($maximalGB / 41);
for($i=0;$i<$totalruns;$i++) {
echo "./plot ". $yourburstid ." ". $startnonce ." ". $nonces ." ". $staggersize ." ". $threads ."\n";
$startnonce = $startnonce + $nonces + 1;
}
?>
Save it and adjust maximalgb and yourburstid
If you have like 1000GB Free Space, it will generate 24 plots with 41GB each.
After you saved it, run it with
php generateplots.php > generateplots.sh
It will output the commands to the file generateplots.sh
Have a look inside the file
The file should start like this
./plot 123456789 16801 16800 1200 2
Have a look at the last line and remember the number in red (Yours is different)
./plot 123456789 [color=red]16801[/color] 16800 1200 2
Time to start plotting. :-)
screen sh generateplots.sh
If you get an error, that screen isn't installed, install it with
sudo apt-get install screen
You should get the output from the plotter, now it is save to detach it. Press and Hold "Ctrl" + "A" together and then "D"
If it worked, you get a message saying "detached from ..."
Now time to generate plots on the second drive :-)
cp plot ../disk2
cp gernerateplots.php ../disk2
cd ../disk2
Now edit the gernerateplots.php File and adjust starting nonce.
The new starting nonce is the one in red you rememberd above (16801) in this example.
Now add the 16800 (or whatever nonces you are using) to the number and add 1.
Like in this Example: 16801 + 16800 + 1
Our new Startingnonce for the second drive is 33602.
Also adjust the size you want to use and run it again
php gernerateplots.php > generateplots.sh
and start plotting
screen sh gernerateplots.sh
You should get the output of the plotmaker again.
Detach the Screen -> Press and Hold "Ctrl" + "A" together and then "D"
Depending on your system, it will take a bit. :-)
If you use dcct-Poolminer simply call it with the directories
./mine.sh /mnt/disk1/plots/ /mnt/disk2/plots
If you want to solo mine and have your pocminer installed in "~/pocminer" simply create a Symlink for the Plot Files
For easier creation use this script and save it as dosymlinks.sh
It reads the directory and creates the symlinks.
for i in $1*; do
ln -s $i $2
done
usage
sh dosymlinks.sh /mnt/disk1/plots/ ~/pocminer/plots/
sh dosymlinks.sh /mnt/disk2/plots/ ~/pocminer/plots/
Happy Plotting