I might have missed it but some other guys asked about it:
What to do after a mSATA disk has been installed in the PCIe slot?
First I saw an advise about just to unscrew the wifi module in the middle from the bottom. Then move it to the left position.
Then install the mSATA disk in the middle of the box.
After boot the wifi did not work. Login as root and run:
cd /etc/config
mv wireless wireless.old
wifi detect > /etc/config/wireless
Reboot and check the wifi is running again in the LuCI interface http://192.168.1.1/cgi-bin/luci/admin/status/overview . Now the status is back to normal as before moving the wifi.
I could not find anywhere in the LuCI interface to partition and format the disk so I logged in with ssh to root@192.168.1.1
First I checked if the new disk was there with cat /proc/partitions :
root@turris:~# grep -v ram /proc/partitions | sed -e 's/^/ /'
major minor #blocks name
31 0 1024 mtdblock0
31 1 7168 mtdblock1
8 0 234431064 sda
179 0 7634944 mmcblk0
179 1 7633920 mmcblk0p1
179 24 4096 mmcblk0rpmb
179 16 4096 mmcblk0boot1
179 8 4096 mmcblk0boot0
and then spotted sda which was big.
To partition it run fdisk:
root@turris:~# fdisk /dev/sda
Welcome to fdisk (util-linux 2.29.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x7a924c4c.
Command (m for help): p
Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x7a924c4c
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-468862127, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-468862127, default 468862127):
Created a new partition 1 of type 'Linux' and of size 223.6 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
After partition it has to be formatted. I chose “Butter Filesystem” but you can choose what you want:
root@turris:~# mkfs.btrfs /dev/sda1
btrfs-progs v4.17.1
See http://btrfs.wiki.kernel.org for more information.
Detected a SSD, turning off metadata duplication. Mkfs with -m dup if you want to force metadata duplication.
Performing full device TRIM /dev/sda1 (223.57GiB) ...
Label: (null)
UUID: c3ed7dcb-49c0-4e49-8d90-df42074e8aa3
Node size: 16384
Sector size: 4096
Filesystem size: 223.57GiB
Block group profiles:
Data: single 8.00MiB
Metadata: single 8.00MiB
System: single 4.00MiB
SSD detected: yes
Incompat features: extref, skinny-metadata
Number of devices: 1
Devices:
ID SIZE PATH
1 223.57GiB /dev/sda1
Now reboot the router and go into the LuCI interface at System -> Mount Points http://192.168.1.1/cgi-bin/luci/admin/system/fstab
Scroll down to “Mount Points” and click the [Add] button. Check “Enable this mount”. Select UUID of the new device. Click the “Mount point” drop down and choose “-- custom --”. Type “/srv” or what you want. I chose “/srv” as I wanted my LXC (Linux Containers) to be located at the new disk.
Click [Save & apply], reboot and you are done. Now the new disk is working.