The main idea here is to preserve the periodic boundary conditions when creating a fractional supercell. Therefore, not all combinations are possible, such as $\sqrt{2}\times\sqrt{2}$ or$\sqrt{5}\times\sqrt{5}$ for the case of MoS$_2$.
Basically, you need to define a rotation matrix for creating such supercells.
e.g.,
B=RA (in matrix form), where A is the original lattice vectors (in matrix form), R is the rotation matrix and B is the result.
For example, one can define a rotation matrix R to create $\sqrt{3}\times\sqrt{3}R30^{0}$ supercell as following:\begin{bmatrix}2 & 1 & 0\\-1 & 1& 0 \\0 & 0& 1\end{bmatrix}
I showed here three pictures for comparison of a fractional supercell of Sqrt3xSqrt3R30 to normal cells, see how the supercell looks like and how you define matrix.
So, to make a cell of size Sqrt3xSqrt3R30, you traverse 2 time x and then 1 time y, making [2 1 0] the first line of matrix, similarly, 1 times in -x and 1 time y makes [-1 1 0] the second line of matrix. You can't have any combination giving Sqrt2xSqrt2 with periodic boundary conditions.
Hope it will be clear now.