Link to home
Start Free TrialLog in
Avatar of MichaelBalack
MichaelBalackFlag for Singapore

asked on

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

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
Avatar of Steve Bink
Steve Bink
Flag of United States of America image

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.
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.
Avatar of noci
noci

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 ...
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.
Avatar of MichaelBalack

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of noci
noci

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for expert - noci on the suggestion on set the settings in /etc/fstab, it works.
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.
Thanks Darr247 for your advice.