Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mounting a USB drive

Featured Replies

Is there a way to plug in a USB hard drive to an unraid and mount it manually?  I just replaced four drives and I can either copy them over the network, or plug them into the server directly via USB.  I can get the USB devices to show up under /proc/scsi/usb-storage-1, but I can't figure out how to mount the damn thing.

 

You need to know what scsi device identifier linux decided to assign to your hard drive.  If you type this:

 

cat /proc/partitions

 

You will see a list of all the hard drives in the system.  Here's a sample output:

 

   9     1  245117344 md1
   9     2  316336072 md2
   9     3  292970128 md3
   9     4  244198552 md4
   9     5  245117344 md5
   9     6  245117344 md6
   9     7  245117344 md7
   9     8  312571192 md8
   9     9  316336072 md9
   9    10  293036152 md10
   9    11  390711352 md11
   8     0     500736 sda
   8     1     500592 sda1
  57     0  245117376 hdk
  57     1  245117344 hdk1
  57    64  245117376 hdl
  57    65  245117344 hdl1
  56     0  244198584 hdi
  56     1  244198552 hdi1
  56    64  245117376 hdj
  56    65  245117344 hdj1
  34     0  293036184 hdg
  34     1  293036152 hdg1
  34    64  390711384 hdh
  34    65  390711352 hdh1
  33     0  312571224 hde
  33     1  312571192 hde1
  33    64  316336104 hdf
  33    65  316336072 hdf1
  22     0  316336104 hdc
  22     1  316336072 hdc1
  22    64  292970160 hdd
  22    65  292970128 hdd1
   3     0  488386584 hda
   3     1  488386552 hda1
   3    64  245117376 hdb
   3    65  245117344 hdb1

 

The first 2 numbers represent the device "major" and "minor" numbers.  For "major":

9 = unRAID'ed disk ("minor" is the disk number)

8 = SCSI/SATA/USB-STORAGE ("minor" is the partition number)

3,22,33,34,56,57 = IDE storage

 

What you're interested in is the ones starting with 8.

 

There will always be an 8,0 and 8,1 - corresponding to 'sda' and 'sda1' - this is the Flash.

 

Any more 'sd' entries will either be SATA devices or USB Storage devices.  You can usually tell by the device size reported in the third column.

 

Let's say you have a all-IDE unRAID and you plug in a USB hard drive.  Probably this is going to show up as 'sdb'.  If it's formatted, you'll also see 'sdb1', 'sdb2', etc, one for each partition.  Let's say you have a 'sdb1'.

 

To mount it, first you need to create a mount point.  Easy way to do this is:

 

mkdir /x

 

Next mount the device onto the mount point:

 

mount /dev/sdb1 /x

 

Now you can see your files on the device:

 

ls /x

 

Hope this helps.

  • Author

That worked.

 

Now for the next question:  I have approximately 1TB worth of data to copy off of these external drives - what's the most efficient way to do that?  Right now I aborted the parity check and I'm copying the data over, but that's spinning the parity drive.  If I stop the array and mount the drives manually, would that be better?

 

If you don't care about parity, then go to the Devices page and change the device assignment for parity to unassigned.

  • 9 months later...

Tom,

 

Does the above method work for mounting an ntfs drive via usb in the current version 4.0?  I recently read a post that explains a method for mounting a drive internally which mentions that ntfs drive support seems to be missing.

 

Thanks

Tom,

 

When I checked recently "ntfs" file-system support did not exist when I checked /proc/filesystems.

 

Perhaps you can put ntfs back in as read-only, or, include the read/write version that uses fuser file system.

at http://www.linux-ntfs.org/  There has been a strong beta version for about a year now.

 

From what I've  read, it  has made advances to where it is a potential for inclusion.

It would sure help many in their file transfers to the unRaid server.

 

Joe L.

  • 1 month later...

Tom,

 

When I checked recently "ntfs" file-system support did not exist when I checked /proc/filesystems.

 

Perhaps you can put ntfs back in as read-only, or, include the read/write version that uses fuser file system.

at http://www.linux-ntfs.org/  There has been a strong beta version for about a year now.

 

From what I've  read, it  has made advances to where it is a potential for inclusion.

It would sure help many in their file transfers to the unRaid server.

 

Joe L.

 

Joe,

 

I responded to this in another thread (http://lime-technology.com/forum/index.php?topic=676.msg6109#msg6109); as it is being discussed here as well I thought it was worth mentioning again.

 

I ran into the same issue on unraid 4.1 however I discovered that the kernel module for ntfs support IS included.  It is just not loaded by default.

 

I loaded it temporarily using the following command:

 

modprobe ntfs

 

and the response to cat /proc/filesystems:

 

root@tower:~# cat /proc/filesystems
nodev   sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   debugfs
nodev   sockfs
nodev   usbfs
nodev   pipefs
nodev   anon_inodefs
nodev   futexfs
nodev   tmpfs
nodev   inotifyfs
nodev   devpts
        reiserfs
        ext2
nodev   ramfs
        msdos
        vfat
        iso9660
nodev   smbfs
nodev   mqueue
        ntfs

 

I hope this helps someone else trying to copy data from an ntfs disk.

 

-kenshin

 

-kenshin

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.