Rich Freeman via plug on 13 Jan 2021 11:31:04 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] I need help with configuring Raid on Ubuntu server 20.04


On Wed, Jan 13, 2021 at 1:59 PM H Mottaleb <h_mottaleb@yahoo.com> wrote:
>
> I’m a bit confused about the mounting part. Please see the screenshot. Am I entering the commands right?

Nope.

The email wrapped the message, but the >> /etc/fstab was on the same
line as the echo command.  It needs a sudo in front.

You can just run the echo command with the >> /etc/fstab at the end of
the line and pick up from there.

You did create the logical volume and format it.


> Also, I have some files on the Usb drive that I would have to copy to the $HOME/eth2deposit-cli/validator_keys
> according to the guide. How would I mount the usb to the server?

I'm sure Ubuntu has a fancier way to do it, but you could just do:
sudo mkdir /mnt/usbdrive
sudo mount /dev/sdb1 /mnt/usbdrive
(I guessed at the device node but that is probably where it will show up.)

Now the data will show up on /mnt/usbdrive.  Before removing the usb drive run:
sudo umount /mnt/usbdrive

This mount won't be persistent - it will go away after a reboot.  To
make a mount persistent you need to stick it in /etc/fstab, which is
what that echo command does.

Echo just takes whatever is in quotes and prints it out.  The ">>
/etc/fstab" after the echo command redirects the output of echo and
appends it as a new line to the fstab file.

-- 
Rich
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug