This is a follow-up question from Mounting USB mass storage devices without root access where I asked about mounting USB partitions without root access and without installing new packages in Ubuntu. This was after an observation that, by opening the "disks" utility manager in Ubuntu, root access is not required to mount USB thumb drive partitions whereas the "mount" command in terminal needs root access. The solution was using "udisksctl" to mount the USB thumb drive without root access.
The issue is that with this command I am only able to mount the drive, not to partition it. There may be a way by interacting with the "disksd" daemon as stated in the "disks" documentation but I was not able to achieve it.
I discovered then by reading the documentation and looking on the internet that in truth, what I called Ubuntu disks utility manager is in fact opened by the "gnome-disks" command. Hence I was looking for a way of using "gnome-diks" in the terminal to do the things I could to with the GUI. I haven't found a way of using "gnome-disks" in command line.
As I am able in the GUI of "gnome-disks" (standard Ubuntu disk manager I believe) to mount and partition USB drives (without root access), I have then the following question,
How to do what's done from the GUI "gnome-disks" from the command line (with the same permissions i.e. non-root access, without installing new packages)?
If it's not possible is there any other way of partitioning USB drives without root access or any additional package, from the command line ?
I may have missed the GUI "gnome-disks" utility asking for password but for this case (mounting/partitioning USB mass storage devices) I believe it doesn't. I also may have missed something easy to do this with but the others standard way of partitioning disks always (as far as I can tell) ask for root access (parted, fdisk, cfdisk, ...).