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.

How to create two Windown shared drives located on a single unRAID server?

Featured Replies

New to unRAID... I just fired up my newly built unRAID server, it is currently formatting the HDDs (started through the webGUI). My goal is to see in Windows two shared drives located on this server: an "L:\" drive for data backups, and an "M:\" drive for media only (mostly my DVD collection).

 

I searched around, both webGUI and forum, and am unsure how I am supposed to partition the drive. Is it with Disk Management in Windows? Thanks!

All you need to do is create 2 shares in the unRAID webUI.

Then from windows map these shares to drive letters - right click on them from windows "\\tower\your-share-name" and choose map network drive.

 

  • Author

Thanks! Next one - I don't see how I can specify how large each share should be. Doesn't unRAID use this parameter? I.e. I can set up 2 shares on all HDDs (minus the parity one) and it'll keep writing till when all of the HDDs are full?

Yup, you can't limit a share to anything smaller than a whole disk. So, you could put the backups on one disk and the media on all the other disks.

 

Personally, I wouldn't created networked drives unless a program requires them. You'll likely have issues with them not being connected after booting the computer.  Just use the \\tower\Media and \\tower\backups as the locations.

 

Peter

 

  • Author

Thanks theone and Peter, as always fantastic support on this forum! I followed your instructions and am now happily moving DVDs from the local drive to the new M:\ "Media" drive. Backup to L:\ "Backup" will follow.

 

Slightly off-topic but following the conversation - I'll want to regularly backup Backup share on an external USB drive to keep the data safely off-site (I've been through an apartment fire before!). Is there a way to move the data directly from server to an external HDD, through the server USB and without getting the Ethernet involved? Would unMenu help?

Is there a way to move the data directly from server to an external HDD, through the server USB and without getting the Ethernet involved? Would unMenu help?

Absolutely. It would help.

 

  • Author

Thanks Joe. If I understant correctly it would seem that I need to familiarize myself with Telnet and Linux command line in order to use unMenu... let's go for it! By any chance is there a manual for unMenu somewhere? I couldn't find any.

  • Author

Thanks Joe. The link you mention doesn't seem to be related to unMenu; I found an unMenu documentation wiki (http://lime-technology.com/wiki/index.php?title=UnMENU_documentation) but it doesn't say anything about copying a share to a USB drive. Maybe another thing that needs to be done through the Linux command line?

Thanks Joe. The link you mention doesn't seem to be related to unMenu; I found an unMenu documentation wiki (http://lime-technology.com/wiki/index.php?title=UnMENU_documentation) but it doesn't say anything about copying a share to a USB drive. Maybe another thing that needs to be done through the Linux command line?

Sorry... wrong link.

 

http://lime-technology.com/wiki/index.php?title=UnRAID_Add_Ons#UnMENU

 

You'll need to use the package manager in unMENU to download and install the NTFS-3G driver. The driver built into unRAID is a read-only one.

 

It is only three button clicks to be install the driver neded to be able to write to an NTFS formatted drive. 

One click to select the package to be installed (ntfs-3g).

One click to download it.

One click to manually install it.

One more optional click to re-install it every time you reboot.  If not, you can select it again and press the manual-install button next time.

 

Once you install the ntfs-3g driver, and use the device administration page to mount the USB drive, then you can share it on the LAN, and make it writable.  (As I said, if you do not install the ntfs-3g driver, the disk will be read-only)

 

Here is a picture of an NTFS USB drive that has been mounted and ready to be shared on the LAN (if you press the button) using the disk-management screen in unMENU.

http://i35.tinypic.com/2w3n5zp.jpg

When you mount an NTFS  drive, after installing the ntfs-3g driver, an additional button will appear that allows you to make the read-only drive into a writable one.

 

Once shared on the LAN, you can use Window's explorer to move files.

Or, you can use the package-manager to install unRAID-Web.  It has a file-manager built into it that will work from your web-browser.  Using it, copies from one disk to another will not go over the LAN.

Or, you can log in on the system console or via telnet and use "mc" (midnight commander) to move/copy your files from disk to disk.

 

Joe L.

 

  • Author

Thanks Joe, this gives me many great pointers. I'll let you know how it goes! Quick question before I start - would the "mc" command work on a whole unRAID share?

Thanks Joe, this gives me many great pointers. I'll let you know how it goes! Quick question before I start - would the "mc" command work on a whole unRAID share?

Yes, it is part of the normal unRAID distribution.  You can use it to browse, move, copy and edit files on user or disk shares.

 

User shares are under

/mnt/user

disk shares are under

/mnt/disk1 through /mnt/disk19

the flash drive is mounted at

/boot

looking at it from window's file-explorer, it would be

\\tower\flash

 

the config folder would then be

/boot/config

looking at it from window's file-explorer, it would be

\\tower\flash\config

 

unmenu, if you elect to install it, would in linux be at

/boot/unmenu

looking at it from window's file-explorer, it would be

\\tower\flash\unmenu

 

Joe L.

  • Author

Fantastic, thanks Joe!

mc is Midnight Commander which is a kind of file utility program. If you're just looking at copying the whole backup share to the USB drive then a copy command would be simpler. USe a command like this;

 

cp /mnt/user/backup/* /mnt/disk/sdd1

 

You'd use whatever mount point is given for the USB drive. If you have a monitor and keyboard attached then you just login by using "root" and would type that command. Otherwise, you can just telnet and type the command but you have to leave the telnet window open during the copy or it will get cancelled. Hopefully someone else will correct me if I didn't get that copy command right.

 

The command is case sensitive so if your share is called Backup then you have to use the capitol B.

 

Peter

 

  • Author

Thanks guys! I've made great progress, installed unMenu etc. (and getting to know Linux) but I am now stuck... when I connect via Telnet and enter the command line cp -r /mnt/user/backup /mnt/disk/sdd1 I get the message "cp cannot create directory ... no such file or directory" (i double-checked, no spelling errors). If I create the directory in advance (via Windows) I get a long series of I/O error. Any ideas? Thank you!

Thanks guys! I've made great progress, installed unMenu etc. (and getting to know Linux) but I am now stuck... when I connect via Telnet and enter the command line cp -r /mnt/user/backup /mnt/disk/sdd1 I get the message "cp cannot create directory ... no such file or directory" (i double-checked, no spelling errors). If I create the directory in advance (via Windows) I get a long series of I/O error. Any ideas? Thank you!

It probably indicates that

either

  A.  the mount-point directory /mnt/disk/sdd1 does not exist., and the /dev/sdd1 partition on the disk drive is not mounted on it)

or

  B.  the disk was mounted as read-only.

 

Type:

mount

to see if the disk is mounted and if mounted as "ro" (read-only)

 

or possibly "C" that /mnt/user/backup does not exist.  (or, It may exist, but with different capitalization of the name "backup")

type

ls -l /mnt/user

to see the actual capitalization.

 

You do realize that the command you typed will copy

FROM the entire directory hierarchy under /mnt/user/backup

TO the disk mounted at /mnt/disk/sdd1?

 

If using unMENU, and if the /dev/sdd disk is formatted as NTFS, then you'll need to use the package-manager to install the ntfs-3g driver so you can write to the disk.  The driver built into unRAID is read-only.

 

If you use the buttons on the disk-management page in unMENU, it should all be pretty easy.  It creates the directory for the mount-point for you named as appropriate for the disk/partition being mounted, and it mounts the disk on it for you when you press the "Mount" button.  You'll then need to press the "Re-Mount as Writable" button to make the drive writable as initially it is mounted read-only.

 

Joe L.

  • Author

Thanks Joe.

A) /mnt/disk/sdd1 shows up when I launch mount so it exists

B) mount returns "/dev/sdd1 on /mnt/disk/sdd1 type fuseblk (rw,allow_others,blksize=4096,default_permissions)" so I assume it is read-write (I used unMenu + ntfs-3g driver to mount, make WR, and share the USB drive)

C) the folder /mnt/user/backup shows up in ls ...

 

Joe, am I correct in my understanding that my command would create a new directory in sdd1 called backup, and copy into it the entire directory hierarchy under /mnt/user/backup? Linux seems to be struggling with creating this new directory backup in sdd1 "cp: cannot create directory /mnt/disk/sdd1/backup': No such file or directory"...

Thanks Joe.

A) /mnt/disk/sdd1 shows up when I launch mount so it exists

B) mount returns "/dev/sdd1 on /mnt/disk/sdd1 type fuseblk (rw,allow_others,blksize=4096,default_permissions)" so I assume it is read-write (I used unMenu + ntfs-3g driver to mount, make WR, and share the USB drive)

C) the folder /mnt/user/backup shows up in ls ...

 

Joe, am I correct in my understanding that my command would create a new directory in sdd1 called backup, and copy into it the entire directory hierarchy under /mnt/user/backup?

Yes, that is my understanding, unless the directory or file permissions prevent it.

Linux seems to be struggling with creating this new directory backup in sdd1 "cp: cannot create directory /mnt/disk/sdd1/backup': No such file or directory"...

 

What happens when you type

ls -al /mnt/disk

and what do you get when you type

ls -al /mnt/disk/sdd1

 

Lastly, you are typing "/mnt/disk/sdd1" (last character is a numeral one) not "/mnt/disk/sddl" (last character is L).  The former is correct, the latter is incorrect.

 

Joe L.

 

 

  • 4 weeks later...
  • Author

Joe, sorry I'm replying only now, I was convinced I had done so a long time ago. I went back today to the challenge of copying files directly from my unRAID server to an NTSF drive connected via USB, and I still cannot do that - all what I wrote before still applies. Continuing from where we left our conversation (thanks for your help!) these are some key elements of what I see/experience:

 

*The USB drive seems to be mounted correctly as read/write*

root@Server:~# mount

fusectl on /sys/fs/fuse/connections type fusectl (rw)

usbfs on /proc/bus/usb type usbfs (rw)

/dev/sde1 on /boot type vfat (rw,noatime,nodiratime,umask=0,shortname=mixed)

/dev/md2 on /mnt/disk2 type reiserfs (rw,noatime,nodiratime,noacl,nouser_xattr)

/dev/md1 on /mnt/disk1 type reiserfs (rw,noatime,nodiratime,noacl,nouser_xattr)

shfs on /mnt/user type fuse.shfs (rw,nosuid,nodev,noatime,allow_other,default_pe

rmissions)

/dev/md3 on /mnt/disk3 type reiserfs (rw,noatime,nodiratime,noacl,nouser_xattr)

/dev/sdf1 on /mnt/disk/sdf1 type fuseblk (rw,allow_other,blksize=4096,default_pe

rmissions)

 

*Nevertheless I cannot write on the USB drive, see this example*

root@Server:~# mkdir '/mnt/disk/sdf1/test'

mkdir: cannot create directory `/mnt/disk/sdf1/test': No such file or directory

 

*This is the answer to your last question, using the ls command*

root@Server:~# ls -al /mnt/disk

total 8

drwxr-xr-x 3 root root    0 Jul 17 18:41 ./

drwxr-xr-x 7 root root    0 Jul 17 18:41 ../

drwxrwxrwx 1 root root 8192 Jul 17 00:10 sdf1/

root@Server:~# ls -al /mnt/disk/sdf1

total 20

drwxrwxrwx 1 root root 4096 Sep  5  2009 $RECYCLE.BIN/

drwxrwxrwx 1 root root 8192 Jul 17 00:10 ./

drwxr-xr-x 3 root root    0 Jul 17 18:41 ../

drwxrwxrwx 1 root root    0 Jul  9 16:33 GA\ Ghost\ KEEP/

drwxrwxrwx 1 root root 4096 Jul 16 23:44 HTC\ Desire/

drwxrwxrwx 1 root root 4096 Jul 17 11:00 System\ Volume\ Information/

drwxrwxrwx 1 root root    0 Jul 17 00:10 VProRecovery/

 

I also checked the Pkg Manager page in unMenu and ntfs-3g is listed as "Currently Installed"; on the Disk Management page the USB drive is listed as "Drive is currently mounted as writable". Any idea of what is going on? Thank you!

You are logged in as root?

 

Look like a synax problem or command problem to me, likely with your copy command and with the mkdir command. Try to cd to the directory and then just use mkdir test.

 

Or try this;

 

"The -p (i.e., parents) option creates the specified intermediate directories for a new directory if they do not already exist. For example, it can be used to create the following directory structure:

 

mkdir -p food/fruit/citrus/oranges"

 

I don't think the ' ' single quotes in your test are correct either.

 

Peter

 

If you plan on regularly mounting USB or eSATA drives external to the array I'd take a look at queeg's S.N.A.P. application (http://lime-technology.com/forum/index.php?topic=5904.0). After initial set-up it automatically mounts an external device when it is plugged in. Very convenient.

  • Author

Thanks guys!

lionelhutz:

- yes I'm logged in as root

- I tried the -p option, no luck

- I tried running mkdir from /mnt/disk/sdf1, no luck

- I tried taking out the ' single quotes (not needed since there are no names with spaces), no luck

I'm at a loss. It behaves as if /disk/sdf1 weren't Read/Write, but it shows as writeable in unMenu and when I run "mount" it returns "/dev/sdf1 on /mnt/disk/sdf1 type fuseblk (*rw*" etc.

 

razmajazz: thanks for the tip, I'll definitely look into it once I solve this problem.

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.