come fare in modo che la cartella condivisa sia montata automaticamente all'avvio

Asked by azul

ho istallato ubuntu 8.04 e ho creato una cartella condivisa. Per vederla ogni volta digito il seguente comando:
sudo mount -t vboxsf share /home/pegasus/Scrivania/share -o rw

E' possibile fare in modo che la cartella codivisa sia montata automaticamente ad ogni avvio di ubuntu? Come?

Graie

Question information

Language:
Italian Edit question
Status:
Answered
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nicola Rosati (supernaicol) said :
#1

Vuoi che la cartella condivisa sia montata in fase di avvio del sistema anche prima dell'avvio della tua sessione gnome (e quindi visibile anche per altri utenti del computer), oppure quando ti logghi?

Revision history for this message
azul (mrcarboni) said :
#2

quando mi loggo

-------------------------
2008/7/21 supernaicol <email address hidden>:
> Your question #39487 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/39487
>
> Status: Open => Answered
>
> supernaicol proposed the following answer:
> Vuoi che la cartella condivisa sia montata in fase di avvio del sistema
> anche prima dell'avvio della tua sessione gnome (e quindi visibile anche
> per altri utenti del computer), oppure quando ti logghi?
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/39487/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/39487
>
> You received this question notification because you are a direct
> subscriber of the question.
>

--
"Un sorriso non costa nulla e dona tanta felicità a chi lo riceve e di
riflesso a chi lo ha emanato! Sorridi e la vita ti sorriderà! :-) :-)
:-) "

Marco Carboni

Revision history for this message
Daniel Schwitzgebel (schwitzd) said :
#3

la devi mettere in /etc/fstab solo che non ricordo la sintassi...

oppure ti fai uno scriptino

#!/bin/sh
sudo mount -t vboxsf share /home/pegasus/Scrivania/share -o rw

poi lo rendi eseguibile
chmod +x mountscript.sh

e vai in modo che parta all'avvio del sistema
Sistema -> Preferenze -> Sessione -> Programmi all'avvio
e metti come comando
sh /home/utente/mountscript.sh

secondo me cosi funziona.... ma sarebbe molto più semplice mettere la riga in fstab :)

Revision history for this message
azul (mrcarboni) said :
#4

ti ringrazio per la risposta ma non sono riuscito in nessuno dei 2 modi a risolvere il problema.
nel primo modo non so come fare e nel secondo modo lo script funziona ma non viene lanciato all'avvio del pc.
penso che sia sbagliato il comando.
Sei sicuro che sia:
sh /home/utente/mountscript.sh

serve sh prima del percorso?

comunque io ho fatto così:
1. sono andato nella cartella documenti ed ho creato un file txt
2. ho meso dendro il comado
3. lo reso eseguibile

va bene ugualmente?

ciao e grazie

Revision history for this message
Daniel Schwitzgebel (schwitzd) said :
#5

no... il file si deve chiamare mountscript.sh l'estensione non deve essere txt ma sh poi al posto di utente devi mettere il tuo nome utente

Revision history for this message
azul (mrcarboni) said :
#6

si ho fatto proprio così, il file si chiama mountscript.sh e l'utente
l'ho cambiato, ma lo script non viene caricato all'avvio.
Come posso fare?
grazie

---------------------------
2008/9/17 Daniel Schwitzgebel <email address hidden>:
> Your question #39487 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/39487
>
> Status: Open => Answered
>
> Daniel Schwitzgebel proposed the following answer:
> no... il file si deve chiamare mountscript.sh l'estensione non deve
> essere txt ma sh poi al posto di utente devi mettere il tuo nome utente
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/39487/+confirm?answer_id=4
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/39487
>
> You received this question notification because you are a direct
> subscriber of the question.
>

--
"Un sorriso non costa nulla e dona tanta felicità a chi lo riceve e di
riflesso a chi lo ha emanato! Sorridi e la vita ti sorriderà! :-) :-)
:-) "

Marco Carboni

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
azul (mrcarboni) said :
#8

Per favore, qualcuno può spiegarmi passo per passo come fare? :(
Grazie

2008/10/4 Launchpad Janitor <email address hidden>

> Your question #39487 on util-linux in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/util-linux/+question/39487
>
> Status: Open => Expired
>
> Launchpad Janitor expired the question:
> This question was expired because it remained in the 'Open' state
> without activity for the last 15 days.
>
> --
> If you're still having this problem, you can reopen your question either
> by replying to this email or by going to the following page and
> entering more information about your problem:
> https://answers.launchpad.net/ubuntu/+source/util-linux/+question/39487
>
> You received this question notification because you are a direct
> subscriber of the question.
>

--
"Un sorriso non costa nulla e dona tanta felicità a chi lo riceve e di
riflesso a chi lo ha emanato! Sorridi e la vita ti sorriderà! :-) :-) :-) "

Marco Carboni

Revision history for this message
paper0k (paper0k) said :
#9

Prova a seguire la guida presente qui http://wiki.ubuntu-it.org/AmministrazioneSistema/Fstab e qui http://ubuntuforums.org/showthread.php?t=283131 così potrai inserire la partizione per essere montata direttamente all'avvio

Ciao

Can you help with this problem?

Provide an answer of your own, or ask azul for more information if necessary.

To post a message you must log in.