[Fixed] Mount NTFS drives via USB

Hi,

how do I mount an NTFS drive connected via USB to my rockstor box.
I need to move a few TB of data and this would be easy via USB instead of the network.

The disk shows in the Webui, but cannot be mounted directly from it. Mounting it using the webui says NTFS is not supported

mount /dev/sdf1 /media/usb/
mount: unknown filesystem type ‘ntfs’

What is needed to be installed and what do I break :wink: if I do so :smiley:

Any plans to get this out of the box, using the webui to mount a single drive and make it perhaps also shareable? This would be a great feature, especially I want to do backup some data to a removable harddisk connected via usb to store it away.

thanks

You will need to install ntfs-3g. Then just copy it over via CLI either ssh or at the box itself. It won’t break anything it is just like using ntfs on any other Linux Distro

Since your asking though I’m guessing your not familiar with the commands.

yum install ntfs-3g

This will show you how to identify and mount your ntfs partition:
http://www.ewikitech.com/articles/linux/how-to-mount-ntfs-partition-in-rhel-centos-7/

You won’t need to add the repo it is already added for Rockstor

Then to copy you will use the cp command.

cp -r -v /{source} /{dest}

r is recursive (subdir and files)
v is verbose
i will ask before over writing anything

3 Likes

thanks for the reply, but in my case not ntfs driver there, that is one of the reason why I asked at the beginning

yum install ntfs-3g
Loaded plugins: changelog, fastestmirror
Rockstor-Stable | 2.9 kB 00:00:00
rockstor | 2.9 kB 00:00:00
Loading mirror speeds from cached hostfile

  • base: mirror.easyname.at
  • extras: mirror.easyname.at
  • updates: mirror.easyname.at
    No package ntfs-3g available.
    Error: Nothing to do
    [root@Homeserver ~]# yum search ntfs
    Loaded plugins: changelog, fastestmirror
    Loading mirror speeds from cached hostfile
  • base: mirror.easyname.at
  • extras: mirror.easyname.at
  • updates: mirror.easyname.at
    ================================= Matched: ntfs ==================================
    libguestfs-winsupport.x86_64 : Add support for Windows guests to virt-v2v and
    : virt-p2v
    libguestfs.x86_64 : Access and modify virtual machine disk images
    [root@Homeserver ~]#

I have these repos

CentOS-Base.repo CentOS-Sources.repo Rockstor-Stable.repo
CentOS-Debuginfo.repo CentOS-Vault.repo
CentOS-fasttrack.repo Rockstor-Base.repo

thanks

Hmm that’s weird mine had EPEL enabled by default I don’t why yours doesn’t I guess maybe your on stable and it doesn’t?

Anyway try

yum install epel-release

Then install ntfs-3g

1 Like

Hi,

yes perhaps because I am on stable, but what are the implications to activate it ?
there must be a reason why it is turned off.
perhaps somebody can jump in from the dev team to tell me if this has some implications.

epel is enabled both on Stable and Testing. Not sure why you don’t have it enabled already.

I get crazy :smiley:

Here is what I tried and the outcome is not so amusing :frowning:

yum install epel-release
Loaded plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile

yum repolist
Loaded plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirror.easyname.at
  • extras: mirror.easyname.at
  • updates: mirror.easyname.at
    repo id repo name status
    Rockstor-Stable Subscription channel for stable updates 3
    base/x86_64 CentOS-7 - Base 9,003+4
    extras/x86_64 CentOS-7 - Extras 191
    rockstor Rockstor 3 - x86_64 33
    updates/x86_64 CentOS-7 - Updates 477+20
    repolist: 9,707

rpm -ivh epel-release-7-5.noarch.rpm
warning: epel-release-7-5.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Preparing… ################################# [100%]
package epel-release-7-5.noarch is already installed

yum repolist
Loaded plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirror.easyname.at
  • extras: mirror.easyname.at
  • updates: mirror.easyname.at
    repo id repo name status
    !Rockstor-Stable Subscription channel for stable updates 3
    base/x86_64 CentOS-7 - Base 9,003+4
    extras/x86_64 CentOS-7 - Extras 191
    !rockstor Rockstor 3 - x86_64 33
    updates/x86_64 CentOS-7 - Updates 477+20
    repolist: 9,707

yum install ntfs-3g
Loaded plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile

@herbert Chipping in with my findings on a 3.8-10.19 system I get:-

yum list available ntfs-3g
Loaded plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.serverspace.co.uk
 * epel: mirror.fraunhofer.de
 * extras: centos.mirroring.pulsant.co.uk
 * updates: centos.serverspace.co.uk
Available Packages
ntfs-3g.x86_64                      2:2015.3.14-2.el7                       epel

and on a fresh install of 3.8-11 pre and post enabling testing updates I get the same.

I’d check on the state of the epel yum config as something may have disabled it at one time or another.
ie:

nano /etc/yum.repos.d/epel.repo

you will probably find the enabled=0, all of my installs were =1
When I changed my 1 to 0 I got the same results as you see and then changing back to how I found it and the ntfs-3g package is again available.

See how you get on.

1 Like

now it comes :slightly_smiling:

ls
CentOS-Base.repo CentOS-Debuginfo.repo CentOS-fasttrack.repo CentOS-Sources.repo CentOS-Vault.repo Rockstor-Base.repo Rockstor-Stable.repo

there is no repo file available :slight_smile: this is weird, and I cannot remember playing around in the folder anyhow.

I just reinstalled the package and everything is fine now :slightly_smiling:

thanks