[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux-team] asmount
> vincent louviaux wrote:
>
> > savez-vous pourquoi quand je veux monter mon cdrom avec "asmount" j ai
> > le message:
> > mount: only root can do that
> >
> > alors que manuelement ca marche (mount /cdrom), l option user est bien
> > mis dans fstab
>
Deux problemes:
- Si le nombre de repertoire monte est trop grand, asmount ne
detectera pas que le CD est deja monte. Pour corriger cela,
tu edites le fichier asmount.c et dans la fonction mountcheck
tu changes les nombres 256 en 1000 par exemple.
En fait avec un 'cat /proc/mounts | wc' tu peux voir la taille
que devrait au moins avoir ce nombre.
- Tu changes dans la fonction MainLoop ceci:
if (IsMounted==0)
{
sprintf(CommandLine,"mount %s %s",device,mountpoint);
if (!readwrite)
sprintf(CommandLine,"%s -r",CommandLine);
system (CommandLine);
}
en cela (pour qu'il tienne compte de /etc/fstab):
if (IsMounted==0)
{
sprintf(CommandLine,"mount %s",mountpoint);
system (CommandLine);
}
Ainsi au lieu de faire un 'mount /dev/cdrom /cdrom', il fera un 'mount /cdrom'.
A+
Ludo.
---------
This message was send by Majordomo 1.94.3. Please repport problems to
manu@rtfm.be. If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.