Categories
Linux Mastering Development

bash script that saves each line of the output from the command

I am having trouble writing a bash script that saves each line of the output from the command #mount | grep ^\/dev/ into a variable. Below is my bash script. #!/bin/bash mount | grep ^\/dev/ > tempoary input=$(cat tempoary) x=0 while IFS= read -r line do x=$((x+1)) echo "$line" > /tmp/directory/$x for file in $(echo […]

Categories
Linux Mastering Development

bash script that saves each line of the output from the command

I am having trouble writing a bash script that saves each line of the output from the command #mount | grep ^/dev/, into a variable. Below is my bash script. #!/bin/bash mount | grep ^/dev/ > tempoary input=$(cat tempoary) x=0 while IFS= read -r line do x=$((x+1)) echo "$line" > /tmp/directory/$x for file in $(echo […]

Categories
Linux Mastering Development

CentOS 8, is not auto mounting my AFPS partition

I have a USB External SSD with 4 disk partitions. The file system of partitions are AFPS ExFAT EXT4 NTFS I’m using kernel version [joseluisbz@centos ~]$ uname -r 4.18.0-193.6.3.el8_2.x86_64 [joseluisbz@centos ~]$ checking ls -al /dev/sd*… [joseluisbz@centos ~]$ ls -al /dev/sda* brw-rw—-. 1 root disk 8, 0 Jul 3 23:46 /dev/sda brw-rw—-. 1 root disk 8, […]

Categories
Mastering Development System & Network

How to treat broadcast ip address as a normal IP

I’m new to networking things. I have a sub-network with 16 IPs (ex: 1.2.3.0 to 1.2.3.15). I’m using lxc for each IP for different purposes, but currently the containers with IP 1.2.3.0 and 1.2.3.15 cannot communicate with other containers in my subnetwork although it can communicate with anything else on the internet. And other containers […]

Categories
Linux Mastering Development

Device mounted by apache not showing in shell, mtab, or proc/mounts

We’re updating our product from Centos 6 to Centos 8 and have found a strange behavior when mounting volumes via apache. A web page provides a UI front end via apache/php to mount/unmount partitions. However, devices mounted via apache/php do not show as "mounted" from the shell. For example, mounting a USB stick containing a […]

Categories
Linux Mastering Development

Device mounted by apache not showing in shell, mtab, or proc/mounts

We’re updating our product from Centos 6 to Centos 8 and have found a strange behavior when mounting volumes via apache. A web page provides a UI front end via apache/php to mount/unmount partitions. However, devices mounted via apache/php do not show as "mounted" from the shell. For example, mounting a USB stick containing a […]

Categories
Linux Mastering Development

Device mounted by apache not showing in shell, mtab, or proc/mounts

We’re updating our product from Centos 6 to Centos 8 and have found a strange behavior when mounting volumes via apache. A web page provides a UI front end via apache/php to mount/unmount partitions. However, devices mounted via apache/php do not show as "mounted" from the shell. For example, mounting a USB stick containing a […]

Categories
Linux Mastering Development

XFS space full and also inode got full too? How could this happen?

# df . -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/mapper/vgFOO-lv_bar 53136 52857 279 100% /bar # df . -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vgFOO-lv_bar 50G 50G 20K 100% /bar # find . | wc -l 52855 # lsof /bar | grep -i deleted # # findmnt /bar TARGET SOURCE FSTYPE […]

Categories
Linux Mastering Development Ubuntu

CIFS: Close unmatched open; mount windows 2008 R2 on ubuntu 20 server

I have problem with mounted windows 2008 R2 share on new ubuntu 20 server. The command is executed without error, but when I try access mounted share I can’t see any files once in 5 attempts. I get this error: CIFS: Close unmatched open Afer several attempts I can again access files, and lose again. […]

Categories
Linux Mastering Development Ubuntu

How can AD users on Ubuntu client seamlessly access files and folders on Synology DC?

I have joined a PC running Ubuntu Studio 18.04 to an AD domain managed by Synology Directory Server. I can now log into the Ubuntu PC with the credentials of a domain user, but there are still two things that don’t work the way I want them to: Logging in with domain user credentials created […]