У меня есть установка двойной загрузки с несколькими разделами NTFS, совместно использованными Ubuntu и Windows. Я хочу, чтобы те разделы были автосмонтированы при запуске, но как обычный пользователь, потому что, монтируясь, поскольку корень иногда вызывает проблемы как это для меня. Я пытался монтироваться с fstab
но это монтирует раздел как корень. Утилита pmount
только работы для съемных дисков.
Там кто-либо - утилита или сценарий, который я могу использовать для монтирования, те разделы как обычный пользователь (как файловые менеджеры делают) при запуске?
Читать man mount.ntfs
, это скажет Вам, как смонтировать Ваши разделы как пользователь (с uid=
и gid
параметры. От man mount.ntfs
страница:
Access Handling and Security
By default, files and directories are owned by the effective user and group of the mounting process, and everybody has
full read, write, execution and directory browsing permissions. You can also assign permissions to a single user by
using the uid and/or the gid options together with the umask, or fmask and dmask options.
Doing so, Windows users have full access to the files created by ntfs-3g.
But, by setting the permissions option, you can benefit from the full ownership and permissions features as defined by
POSIX. Moreover, by defining a Windows-to-Linux user mapping, the ownerships and permissions are even applied to Windows
users and conversely.
If ntfs-3g is set setuid-root then non-root users will be also able to mount volumes.
Однако root
все еще включен (потому что "монтируют", что луг является вещью системного уровня), и немонтируемые диски NTFS заставят его зависать, они автосмонтированы, не, используют - также auto
в Вашем /etc/fstab
запись.
Читать man mount
, особенно о user
параметр:
The non-superuser mounts.
Normally, only the superuser can mount filesystems. However, when fstab contains the user option on a line, any‐
body can mount the corresponding filesystem.