Help deciphering this fdisk output

I was given a Dell Poweredge server by a friend. I installed an SSD and on that, installed Ubuntu Server 18.04 LTS. The server also has (3) Cheetah SAS drives installed, all of which have data. I’m trying to more or less scrub these drives, then create a single EXT4 partition on each of them which I’ll use as HTPC media storage. As a semi-newbie to Linux, I’m trying to find whichever way I need to first visualize these three drives so I can figure out where to go from there. I’ve issued “fdisk -l” and the following is the output:

Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 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: 0xd8ea6a9e  Device     Boot Start       End   Sectors   Size Id Type /dev/sda1  *     2048 234440703 234438656 111.8G 83 Linux  Disk /dev/sdb: 557.8 GiB, 598879502336 bytes, 1169686528 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: 0x00000080  Device     Boot      Start        End    Sectors   Size Id Type /dev/sdb1               63       2047       1985 992.5K 42 SFS /dev/sdb2  *          2048     206847     204800   100M 42 SFS /dev/sdb3           206848 1169682431 1169475584 557.7G 42 SFS /dev/sdb4       1169682432 1169684479       2048     1M 42 SFS 

I would say I recognize /dev/sda as my 120GB SSD which runs the OS, but then I see /dev/sda1, and after that, in the list of /dev/sdb’s, I just don’t recognize three separate 600GB storage drives.

Can you help me break down the output of this command, or give me a better command which might output a cleaner presentation?

Thanks!

Complicated Integral output with Unfamiliar Regularized Hypergeometric Function

I need the solution for following integral and it has output in MATHEMATICA as:

FullSimplify[  Integrate[x^(m - 1) Exp[-a x] Gamma[m, b/x], {x, 0, \[Infinity]},    Assumptions -> m > 1/2 && a > 0 && b > 0]] 

enter image description here

I really do not know the definition of the last Regularized Hypergeometric Function which has some numbers as superscripts.

Further, does anyone know how we can prove this analytically? Because there is very less integral formulas related to Regularized Hypergeometric Function.

Further, I found this output somehow numerically unstable for some large $ m$ .

journalctl json output breaking python’s json parser

ubuntu 19.04 python 3.7

Create a json file:

journalctl -ojson -r > a.json 

Now read it in :

with open('a.json') as infile :    data = json.load(infile)  Traceback (most recent call last):   File "journalctl.json.py", line 4, in <module> data = json.load(infile)   File "/usr/lib/python3.7/json/__init__.py", line 296, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)   File "/usr/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s)   File "/usr/lib/python3.7/json/decoder.py", line 340, in decode raise JSONDecodeError("Extra data", s, end) json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 985) 

And here’s line #2

{"_HOSTNAME":"vaio","_CAP_EFFECTIVE":"3fffffffff","_SELINUX_CONTEXT":"unconfined\n","_COMM":"anacron","_SYSTEMD_UNIT":"anacron.service","MESSAGE":"Normal exit (0 jobs run)","_SOURCE_REALTIME_TIMESTAMP":"1570415470605362","SYSLOG_FACILITY":"9","_BOOT_ID":"06344b4eb91344bf8c1ce7c49f77ee5d","_UID":"0","PRIORITY":"5","__CURSOR":"s=2b70948bafe3422ca5fa14213e18cda1;i=3c78c;b=06344b4eb91344bf8c1ce7c49f77ee5d;m=83ae2587;t=59448d8467447;x=24f85cc398f54cab","_PID":"22196","SYSLOG_IDENTIFIER":"anacron","_SYSTEMD_INVOCATION_ID":"3cc36dc0214b4f98a311fc110648019e","__MONOTONIC_TIMESTAMP":"2209228167","_CMDLINE":"/usr/sbin/anacron -d -q -s","_SYSTEMD_CGROUP":"/system.slice/anacron.service","_MACHINE_ID":"dc7bf55ee6014b7db63fba929237b2c9","_TRANSPORT":"syslog","_GID":"0","SYSLOG_TIMESTAMP":"Oct  6 19:31:10 ","__REALTIME_TIMESTAMP":"1570415470605383","_EXE":"/usr/sbin/anacron","SYSLOG_PID":"22196","_SYSTEMD_SLICE":"system.slice"} 

Given an array of probabilities, can AnyDice output the number of specific die type (d6) combinations to best fit?

Given an array of probabilities:

 5   5   4   2   1 12  12  10   6   4 42  41  38  23  11 53  51  45  21   9 87  86  80  54  31 

Can AnyDice generate a list combinations using only Nd6 ± Y that would fit? Thanks in advance, this article got me started in the right direction but I’m stuck now.

How to redirect a command’s output to file, when the command is via a wrapper’s system call?

I want to redirect both output and stderr to a log file. Easy enough, right?

python3 /home/user/Utilities/gpu.py L1.py &> log_L1.py.txt & 

However, when instead of calling the command directly I use a system call, I do not get the output and the stderr in the files, but rather they are returned to my screen, and the output files are not created.

staggered_runner.py:

import time import os  scripts=['L1.py','L2.py','L3.py','L4.py','L3_2D.py','L4_2D.py']  waiting=1200  for s in scripts:     command='python3 /home/user/Utilities/gpu.py '+s+' &> log_'+s+'.txt &'     print (command)     os.system (command)     time.sleep(waiting) 

Then I run

python3 staggered_runner.py 

I expected to receive only the direct outputs of staggered_runner.py, that is, those of each run of print (command), and have the rest directed to the to appropriate files.

How can I do this, while still using the wrapper?

Bash, output from file between 2 patterns, but with variables and asterisks

Issue

I need select all between 2 patterns in file, but with variables and with * as wildcards.

Example (something like that).

myscript var1 var2 var3 

Script.

#!/bin/bash cat $  1 | sed -n "/*$  2*$  3/,/## end of string ##/p" 

It is not working as I expect, because * is not get as anything. * should be anything between variables. Example of file ($ 1)is for example this.

## First line, first variable is var2, and second variable is var3. Information text. Some text to display. ## end of string ## 

Am I clear? Thanks.

System

Linux local 5.0.0-29-lowlatency #31-Ubuntu SMP PREEMPT Thu Sep 12 14:13:01 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux