|
You can use --fake or -f to get mount to test your fstab.
What you put in /etc/fstab depends on what your raid is like. If you're using a hardware raid controller, then the RAID cluster is probably presented to the OS as /dev/sdx, but if you're using software raid, the I think the cluster is presented as /dev/mdn.
After creating your RAID, you'll need to partition and format, just like a normal Hard drive. Once you've done that, you can use blkid to get the UUID of the partition for fstab.
Keep Calm and Carry On
|
|
|
|
|
I have used blkid and added
/dev/md42: PTUUID="eb1b7eaf-b2ce-4ae6-9dbc-b77f58c1d75c" PTTYPE="gpt"
to fstab.
I am not sure why I am getting "PT" , but here is something I found in another forum
PTUUID is the UUID of the partition table itself, a unique identifier for the entire disk assigned at the time the disk was partitioned. It is the equivalent of the disk signature on MBR-partitioned disks but with more bits and a standardized procedure for its generation.
Now when I read blkid I am getting this - it identifies both /dev/md42 and the partition itself as /dev/md42p1
/dev/md42: PTUUID="eb1b7eaf-b2ce-4ae6-9dbc-b77f58c1d75c" PTTYPE="gpt"
/dev/md42p1: LABEL="MD42_RAID_LABEL" UUID="b4f937f3-8d8d-4d1b-a9e6-4eaffb72a077" TYPE="ext4" PARTLABEL="MD42_RAID_NAME" PARTUUID="49fce049-084f-48e8-aa79-f6e22d809879"
I do not get the mixing of UUID and PTUUID.
Should all this be added to fstab ?
|
|
|
|
|
You've got several options. Lets assume that you wan to mount the ext4 partition on /data
You can use the physical partition device path, the UUID, LABEL, PARTLABEL or PARTUUID in fstab
The following are all equivalent. Use only ONE.
# by device path:
/dev/md42p1 /data ext4 defaults 1 2
# by UUID:
UUID=b4f937f3-8d8d-4d1b-a9e6-4eaffb72a077 /data ext4 defaults 1 2
# by LABEL
LABEL=MD42_RAID_LABEL /data ext4 defaults 1 2
# by PARTLABEL
PARTLABEL=MD42_RAID_NAME /data ext4 defaults 1 2
# by PARTUUID
PARTUUID=49fce049-084f-48e8-aa79-f6e22d809879 /data ext4 defaults 1 2
depending on your requirements, you may want to change the defaults , to add perhaps noatime , for example.
Note that we mount the partition not the RAID drive.
Keep Calm and Carry On
|
|
|
|
|
Great, that explains a lot.
It looks as the RAID tutorials are missing few instructions AFTER mdadm creates the "md" device.
Especially how to implement mount point.
I found that "Disks" "generate" such mount point.
Sure would be nice to have single app to go from "mdadm" to implementing "automount on boot ".
Many thanks for your help, it is much appreciated.
|
|
|
|
|
so, i was doing some programming with eclipse and stuff. But then i noticed that all of my .JAR files suddenly looked like a pinguin with some painting stuff on his hands. i need help, cause im not sure what is going on!! I use windows.
[SOLVED] I had to right click a JAR file, and "press open in application" then select Java JDK. For some reason i had two of those...
modified 1-Sep-20 4:02am.
|
|
|
|
|
O M G.
For someone who doesn't want spam, you sure made it really easy for spammers to pick up your email address by posting it in public forums.
YES, they have crawlers that will scan public forums (like these) for an email addresses.
So, if you want to minimize the spam you get, NEVER post your email address in a public forum.
So you don't want spam, but yet you spammed the forums here yourself?!?! Go back and delete your other posts, except for the one in the Java forum.
|
|
|
|
|
So, you are smart enough to guess that the ".JAR files" look something like a Linux, but you want people to connect with you on email threads; won't work man.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
We already have Crystal Reports built for Asp.net. We are studying the possibility to move the Crystal Reports coded in Asp.net to LInux through Mono, does anyone has experience of this?
|
|
|
|
|
.NET Framework on Linux works through Mono; even the updated .NET Core uses a lot of components and structures from the Mono project.
Quote: move the Crystal Reports coded in Asp.net to LInux through Mono It should build just fine as long as you have Mono SDK setup. There might be some minor changes (such as file system, permissions, etc.) other elements would be okay.
.NET Source Code Integration | Mono
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Facts:
0) I'm writing a .Net Core 3.1 command line app (using C#) to read text files on some Raspberry Pi machines on the network. This app will be able to run on either Windows or Linux.
1) The files in question are in the /etc , /proc and /sys folders.
2) I don't want to create shares of these folders.
3) I'd prefer not to have to install/configure anything on the remote boxes (if at all possible).
4) I know the user ids and passwords for the remote boxes, and am aware that I have to somehow use these credentials in order to "connect" to the remote boxes).
5) I don't want to use another language. I mean, doNet Core is supposed to be cross-platform, right?
Problem:
How do I go about reading a file on a remote linux box? I've tried a number of ways to do this, but I keep getting the following exception:
"The network name cannot be found. : '\\\\192.168.1.10\\sys\\class\\thermal\\thermal_zone0\\temp'"
(BTW, when running in Windows, the exception is presented with backslashes. I'm actually using forward slashes.)
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
|
They don't mention anything about .Net Core...
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
It supports .NET Standard 1.3 and 2.0, so it should just work in Core.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
I added SshNet with Nuget, and it workds great.
using SshNet;
using (var client = new SshClient("192.168.1.10", "userid", "password"))
{
client.Connect();
string data = string.Empty;
using (SshCommand cmd = client.CreateCommand("cat /proc/cpuinfo"))
{
data = cmd.Execute();
}
}
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Hi John, it supports private keys to - I use it in one of my net core apps to communicate with a remote database using port forwarding
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
FTP?
FTP Examples for .NET Core C#
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
FTP would require both installation and configuration on the Linux machines. SSH service is installed by default but not enabled.
|
|
|
|
|
Is not FTP installed by default on all Linux machines nowadays?
I honestly would have taken that for granted. FTP was developed in the days when you measured program size in kilobytes. The protocol is so simple that a student could implement it as homework assignment #3. I can't see any reason for taking it out.
|
|
|
|
|
Member 7989122 wrote: Is not FTP installed by default on all Linux machines nowadays?
No, not anymore. There are better replacements such as SFTP or SCP. Curl or wget can be used as FTP clients if absolutely necessary.
Member 7989122 wrote: FTP was developed in the days when you measured program size in kilobytes.
Those days nobody could imagine the need for network security. FTP transmits everything, including user credentials, in cleartext. The protocol design makes it difficult to pass through firewalls without causing additional security risks. In general, it's just too dangerous and should not be used.
|
|
|
|
|
Quote: If you are connecting to an FTP server that requires credentials and supports Secure Sockets Layer (SSL), you should set EnableSsl to true.
And there's one's own encryption / decryption, staging directories, etc. Keep the baby.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Do you want to force linux to do the windows thing, or windows to do the linux thing?
For the former run samba on the linux box and create shares you can access from windows. This will probably suck, the degree to which it sucks will depend on the file system you are using on the linux side.
For the latter you can run an ftp server on the linux side or setup ssh and use scp. These will suck less.
|
|
|
|
|
I found a solution - use the SshNet library and I don't have to do anything on the other pi's on the network.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Quote: Facts:
0) I'm writing a .Net Core 3.1 command line app (using C#) to read text files on some [...] machines on the network.[...]
[...]
2) I don't want to create shares of these folders.
If those files aren't shared, how do you expect to read them? after all, if those remote files were on Windows, you'd still need to share them for a remote computer to read them.
You appear to be under the impression that, on Linux, all files are shared by default. I can assure you that this is not the case.
[...]
How do I go about reading a file on a remote linux box?
Same way you would on a Windows box: you'd create a share.
A second option is to install some sort of file server on the Pis(ftp, http, ssh/scp, etc) and use that to copy the files across.
|
|
|
|
|
You really should read the whole thread. The solution has been found.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|