... mais c'est un poil du bricolage.
En gros, tu t'arranges pour faire tes losetup au boot, dans un rc.local par exemple.
Ensuite, tu utilises ce bon vieux fstab et son option users:
The fourth field, (fs_mntops), describes the mount options associated
with the filesystem.
It is formatted as a comma separated list of options. It contains at
least the type of mount plus any additional options appropriate to the
filesystem type. For documentation on the available options for non-
nfs file systems, see mount(8). For documentation on all nfs-specific
options have a look at nfs(5). Common for all types of file system are
the options ``noauto'' (do not mount when "mount -a" is given, e.g., at
boot time), ``user'' (allow a user to mount), and ``owner'' (allow
device owner to mount), and ``comment'' (e.g., for use by fstab-main-
taining programs). The ``owner'' and ``comment'' options are Linux-
specific. For more details, see mount(8).
# Il y a bien une méthode ...
Posté par LaBienPensanceMaTuer . En réponse au message Monter une image-disque sans être root. Évalué à 1.
En gros, tu t'arranges pour faire tes losetup au boot, dans un rc.local par exemple.
Ensuite, tu utilises ce bon vieux fstab et son option users:
The fourth field, (fs_mntops), describes the mount options associated
with the filesystem.
It is formatted as a comma separated list of options. It contains at
least the type of mount plus any additional options appropriate to the
filesystem type. For documentation on the available options for non-
nfs file systems, see mount(8). For documentation on all nfs-specific
options have a look at nfs(5). Common for all types of file system are
the options ``noauto'' (do not mount when "mount -a" is given, e.g., at
boot time), ``user'' (allow a user to mount), and ``owner'' (allow
device owner to mount), and ``comment'' (e.g., for use by fstab-main-
taining programs). The ``owner'' and ``comment'' options are Linux-
specific. For more details, see mount(8).