Categories
gadgets tech

How to make use of NTFS and EXT4 drives within QNAP NAS

The central level of this phase is to mount NTFS and EXT4 drives and lead them to visual by way of the NAS internet interface and to be had by means of a community.

1. Create directories for slots 3 and 4

We must create bodily folders on NAS to affiliate them with laborious drives. Let’s hook up with NAS by means of PuTTY and input the next instructions:

mkdir /proportion/CACHEDEV1_DATA/my_disks
mkdir /proportion/CACHEDEV1_DATA/my_disks/slot3
mkdir /proportion/CACHEDEV1_DATA/my_disks/slot4

2. Determine the title of walls

The following step might be to determine how the NAS discovers the put in drives.

fdisk -l

In my case, the command published this data:

Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/observe, 15566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 15567 125034839+ ee EFI GPT
Disk /dev/sdb: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/observe, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 243202 1953514583+ ee EFI GPT
Disk /dev/sdc: 0 MB, 0 bytes
256 heads, 63 sectors/observe, 0 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 266306 2147483647+ ee EFI GPT
Disk /dev/sdd: 0 MB, 0 bytes
256 heads, 63 sectors/observe, 0 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 266306 2147483647+ ee EFI GPT

Each put in and as it should be came upon disk has its title. According to the broadcast knowledge, we have an interest within the two ultimate drives that experience /dev/sdc and /dev/sdd names.

Each disk has simplest one partition: /dev/sdc1 and /dev/sdd1. We must have in mind them.

3. Create autorun.sh record to mount disks routinely when NAS is beginning

To have get entry to to create and edit the autorun record, we must mount its folder. Enter the instructions:

ubiattach -m 6 -d 2
mount -t ubifs ubi2:config /tmp/config

Let’s run Midnight Commander to create an autorun.sh record and upload instructions to it.

mc

Go to /tmp/config
If autorun.sh doesn’t exist on this folder input this to create it:

>autorun.sh

Navigate to the newly created record and press F4 to begin enhancing it. In the editor, input the next traces:

mount -t u.s.a. /dev/sdc1 /proportion/CACHEDEV1_DATA/my_disks/slot3
mount -t ext4 /dev/sdd1 /proportion/CACHEDEV1_DATA/my_disks/slot4

the place /dev/sdc1 and /dev/sdd1 are names that we decided previous. Press F2 to save lots of all adjustments and press F10 to go out the editor. Then you must trade the permissions to permit the record to be executable.

chmod +x /tmp/config/autorun.sh

Finally, you want to unmount the config folder.

umount /tmp/config
ubidetach -m 6

If you employ the newest QTS, then you want to set the extra permission that permits you to get started a customized script.

  • Log in to QNAP internet interface
  • Jump to Control Panel -> System -> Hardware
  • Check Run consumer outlined processes all through startup
  • Press Apply

If you’ve gotten a unique QNAP NAS, you want to accomplish different mount / unmount instructions for the config folder. You can learn Running Your Own Application at Startup to know how to try this.

4. Create shared folders

Now the whole lot is ready to create get entry to to our disks by means of a community.

  • Log in to QNAP internet interface
  • Go to Control Panel -> Privilege -> Shared Folders -> Shared Folder
  • Press Create and make a selection Shared Folder

Then we wish to input the specified Folder Name, make a choice Disk Volume, make a selection Enter trail manually, and input the trail to the fastened disk.

It can appear to be this:

Press Edit to configure get entry to privileges to your customers. To end the advent process, we wish to press Create.

Let’s apply the similar steps to create the second one shared folder for the second one disk.

Go to File Station to test if our newly shared folders are out there.

Open File Explorer on Windows and pass to Network -> NAS to have a look at our disks:

We did what we needed to.