Solved

How should I mount this 3 TB USB Hard disk to my Linux server?

Posted on 2016-10-11
9
148 Views
Last Modified: 2016-10-12
This is using Redhat Enterprise Linux Server 6.7. There is only a pair of 300 GB SAS HDD in mirror, plus 2 NAS mapping. However, we wanted to connect a 3 TB USB Hard Disk in order to conduct  backup. The problem,  we don't know how to mount this 3 TB HDD. It looks like this external HDD was detected with correct capacity. But still, what is the next step to get it connected so that we can dump the backup into it?

Please see the attached screenshots for the results of few checking commands.

Thanks in advance.
EE---3-TB-USB-HDD-issue.docx
0
Comment
Question by:MichaelBalack
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 51

Expert Comment

by:Steve Bink
ID: 41839296
I see it alternately detected as /dev/sda2 and /dev/sdb.  Either way, mount it to a folder of your choosing using the mount utility.
0
 
LVL 44

Expert Comment

by:Darr247
ID: 41839317
I recommend mounting it to a location by GUID in the /etc/fstab (file system table) file, so every time that drive's inserted into the USB dock again RHEL will remount it to the same location for you.
0
 
LVL 40

Expert Comment

by:noci
ID: 41839507
After detecting the drive you need to partition it. if to be used as one lump use gdisk or parted
to make the partitions. To keep it flexible in handing out portions of a disk use lvm
(pvcreate, vgcreate, lvcreate) to set it up.
then format the drive (ext4, xfs, ... not zfs as that is not been declared stable yet)

Then you can mount the device.  After that you have to setup and entry in fstab to remount it on next boot.

Any questions about the specific steps?
I mentioned the tools to be used man <tool>   will use the needed info.... if you just want a plain recipe that can be done as well, but you will need to know some of the tools to be able to manage the volume in the future when a mishap occurs ...
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 44

Expert Comment

by:Darr247
ID: 41840441
Running mount -a will also try to mount everything listed in /etc/fstab (i.e. not just at boot time).

By the way, on the next install, put the admin(s) in the /etc/sudoers file, then anytime root-level access is required the admin(s) can just prefix the sudo command and enter their user password... that should allow keeping SELinux in enforcement mode and remove the need to ever have to run *as* root (nor employ/reveal the root password). On initial install, running *as* root is very-rarely (if ever) required. Once you actually switch to the root user and install a few packages, the system becomes more and more dependent on running as root, until eventually that's the only way it will run.
0
 
LVL 1

Author Comment

by:MichaelBalack
ID: 41840516
Hi Darr247,

This usb device is only needed to be mounted when needed, probably once per every 2 weeks. So, think not need to set anything on /etc/fstab.

I managed to mount it by "mount -t ext4 /dev/sdb1 /USB3T. Tried able to copy files and folder into this 3TB USB.
0
 
LVL 40

Accepted Solution

by:
noci earned 500 total points
ID: 41841063
@Darr247....
sudo will effectively run a command as root (unless sudo -u someuser  is given).
It just makes the use of a shared root password obsolete.
sudo xxxx
will run the command xxxx as root (UID 0 etc).    so logging in as root or logging in as John Doe and use sudo is equivalent..., except that sudo asks for the password of John Doe, and makes the knowledge of the root password obsolete...., unless you need single usermode during boot, then the root password IS needed).

@michaelbalack: the next time this drive might be named /dev/sdc1 or /dev/sdd1 etc.. depending on the order of plugging in simultanous USB storage devices.  So entering the GUID in /etc/fstab  to mount on /USB3T
might be a wise move, then a backup script can use " mount /USB3T " to mount this device, without knowing the Actual devicename then.
The guid can be found in /dev/disk/by_uuid
and using UUID=xxx-xxxxx-xxxx-xxxx /USB3T ext4 ... etc.
Will make writing script a lot easier.
0
 
LVL 1

Author Closing Comment

by:MichaelBalack
ID: 41841221
Thanks for expert - noci on the suggestion on set the settings in /etc/fstab, it works.
0
 
LVL 44

Expert Comment

by:Darr247
ID: 41841341
When your server gets taken over by hackers 'cause you were running it all the time as root, don't say nobody ever warned you.
0
 
LVL 1

Author Comment

by:MichaelBalack
ID: 41841351
Thanks Darr247 for your advice.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question