[RISOLTO]Montare in automatico partizione fat32 in (rw)

Community Pod OpenMandriva Italia
Post Reply
User avatar
Joker
Utente junior
Utente junior
Posts: 16
Joined: 27 September 2014, 21:26
ROSA: -
OpenMandriva: OpenMandriva 2014 Lx
Kernel: 3.15.10 NRJQL
Desktop: KDE
country: Italy

[RISOLTO]Montare in automatico partizione fat32 in (rw)

Post by Joker »

Salve a tutti!

Ho una partizione /dev/sda10 in fat32 che condivido con altre distro linux e windows e che in fase d'installazione ho montato come /dati:

Code: Select all

[openmand2014@localhost ~]$ cat /etc/fstab |grep dati
UUID=BFD3-2F2E /dati vfat defaults 0 0
[openmand2014@localhost ~]$
[openmand2014@localhost ~]$ mount | grep dati
/dev/sda10 on /dati type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
[openmand2014@localhost ~] 
non ho però i permessi di scrittura, come posso risolvere?

Grazie a tutti per l'aiuto.
Last edited by Joker on 4 October 2014, 11:58, edited 1 time in total.
You'll be praying till next Thursday to
all the gods that you can count.

User avatar
stefano1956
Utente senior
Utente senior
Posts: 385
Joined: 22 May 2012, 15:50
ROSA: Rosa2016.1
OpenMandriva: Oma 4.1 LX
Kernel: 4.9.124
Desktop: kde
country: Italia

Re: Montare in automatico partizione fat32 e permessi lett/s

Post by stefano1956 »

Molto grezzamente, probabilmente esiste una strada migliore...
Io faccio così: konsole >su e password, lancio dolphin con permessi di root, apro la cartella root o quella che contiene la partizione che vuoi usare, clicco destro sulla cartella incriminata e aggiusto i permessi...

User avatar
NicCo
Amministratore
Amministratore
Posts: 4765
Joined: 6 December 2007, 19:54

Re: Montare in automatico partizione fat32 e permessi lett/s

Post by NicCo »

Centro di Controllo KDE (systemsettings)
> Hardware
>> Dispositivi rimovibili
- abilita una spunta su > Abilita montaggio automatico dei supporti rimovibili > Applica

prova ad inserire adesso la periferica,
ho provato una chiavetta dati in Fat32,

inserita, me la trovo subito già montata con il nome della label stessa, su /media/abf
non credo che occorresse montarla in fase di installazione, come vedi è facile...

puoi anche decidere quale device montare, quale no, ed in quale occasione montare:
- Montaggio automatico all'accesso
- Montaggio automatico al collegamento
.
--- Professional experience ---
Kernel designer, engineer, maintainer and tester for ROSA Desktop and OpenMandriva Lx O.S.

--- currently I'm playing with ---
LTS Kernels > Linux 4.1.12-nrjQL <<< Linux 3.18.17-nrjQL <<< Linux 3.14.46-nrjQL
EOL Kernels > Linux 3.19.8-nrjQL <<< Linux 3.17.8-nrjQL <<< Linux 3.15.10-nrjQL

User avatar
Joker
Utente junior
Utente junior
Posts: 16
Joined: 27 September 2014, 21:26
ROSA: -
OpenMandriva: OpenMandriva 2014 Lx
Kernel: 3.15.10 NRJQL
Desktop: KDE
country: Italy

Re: Montare in automatico partizione fat32 e permessi lett/s

Post by Joker »

NicCo wrote: >> Dispositivi rimovibili
scusa NiCo ma non si tratta di un dispositivo rimovibile ma di una partizione del HD dove tengo i miei dati (musica, foto ecc..ecc..) alla quale appunto ho dato punto di mount /dati e vi accedo con mint xfce, ubuntu unity, windows e vorrei aggiungerci anche OpenMandriva, però non ho i permessi necessari per modificare un file creato in mint o ubuntu (non so se mi sono capito :mrgreen: [spiegato]).
You'll be praying till next Thursday to
all the gods that you can count.

User avatar
Joker
Utente junior
Utente junior
Posts: 16
Joined: 27 September 2014, 21:26
ROSA: -
OpenMandriva: OpenMandriva 2014 Lx
Kernel: 3.15.10 NRJQL
Desktop: KDE
country: Italy

Re: Montare in automatico partizione fat32 e permessi lett/s

Post by Joker »

Forse potrei vedere il file /etc/fstab di mint o ubuntu, vedere come viene montata la partizione /dati e aggiungere gli stessi parametri in openmandriva ?? (.......cosi ho avuto un'illuminazione :idea: )
You'll be praying till next Thursday to
all the gods that you can count.

User avatar
Joker
Utente junior
Utente junior
Posts: 16
Joined: 27 September 2014, 21:26
ROSA: -
OpenMandriva: OpenMandriva 2014 Lx
Kernel: 3.15.10 NRJQL
Desktop: KDE
country: Italy

Re: Montare in automatico partizione fat32 e permessi lett/s

Post by Joker »

stefano1956 wrote:Molto grezzamente, probabilmente esiste una strada migliore...
Io faccio così: konsole >su e password, lancio dolphin con permessi di root, apro la cartella root o quella che contiene la partizione che vuoi usare, clicco destro sulla cartella incriminata e aggiusto i permessi...
si ok, però (se non sbaglio) in questo modo vale solo per la sessione corrente.....al prossimo riavvio si deve ripetere !?!?! (non ne sono sicurissimo :mrgreen: )
You'll be praying till next Thursday to
all the gods that you can count.

User avatar
stefano1956
Utente senior
Utente senior
Posts: 385
Joined: 22 May 2012, 15:50
ROSA: Rosa2016.1
OpenMandriva: Oma 4.1 LX
Kernel: 4.9.124
Desktop: kde
country: Italia

Re: Montare in automatico partizione fat32 e permessi lett/s

Post by stefano1956 »

No, io l'ho fatto all'inizio e non ho più dovuto rifarlo...

User avatar
Joker
Utente junior
Utente junior
Posts: 16
Joined: 27 September 2014, 21:26
ROSA: -
OpenMandriva: OpenMandriva 2014 Lx
Kernel: 3.15.10 NRJQL
Desktop: KDE
country: Italy

Re: Montare in automatico partizione fat32 e permessi lett/s

Post by Joker »

Allora provo subito :)
You'll be praying till next Thursday to
all the gods that you can count.

User avatar
Joker
Utente junior
Utente junior
Posts: 16
Joined: 27 September 2014, 21:26
ROSA: -
OpenMandriva: OpenMandriva 2014 Lx
Kernel: 3.15.10 NRJQL
Desktop: KDE
country: Italy

Re: Montare in automatico partizione fat32 e permessi lett/s

Post by Joker »

Purtroppo non funziona....ora devo andare a nanna....domani 1° turno, sveglia alle 4:00 :evil: :evil:
You'll be praying till next Thursday to
all the gods that you can count.

User avatar
azioga
Utente senior
Utente senior
Posts: 336
Joined: 8 December 2010, 22:06
ROSA: -
OpenMandriva: 2010.2 32bit
Kernel: 3.2.28-nrj-desktop-p
Desktop: kde 4.5.5
country: italy

Re: Montare in automatico partizione fat32 e permessi lett/s

Post by azioga »

hai provato a settare dmask e fmask = 0000 in fstab ?

Ciao, Luca.

User avatar
Joker
Utente junior
Utente junior
Posts: 16
Joined: 27 September 2014, 21:26
ROSA: -
OpenMandriva: OpenMandriva 2014 Lx
Kernel: 3.15.10 NRJQL
Desktop: KDE
country: Italy

Re: Montare in automatico partizione fat32 e permessi lett/s

Post by Joker »

Ho provato ad aggiungere

Code: Select all

dmask=0000 fmask=0000 
in questo modo posso accedere alla directory /dati (/dev/sda10), creare e leggere file, però quelli creati da un'altra distribuzione li posso aprire solo in lettura (read only).
Joker wrote:Forse potrei vedere il file /etc/fstab di mint o ubuntu, vedere come viene montata la partizione /dati e aggiungere gli stessi parametri in openmandriva ?? (.......cosi ho avuto un'illuminazione :idea: )
provato a copiare i parametri di /etc/fstab si mint 17 xfce:

Code: Select all

UUID=BFD3-2F2E /dati vfat utf8,umask=007,gid=46 0 1
ma cosi non riesco nemmeno ad accedere a /dati :? :?
You'll be praying till next Thursday to
all the gods that you can count.

User avatar
azioga
Utente senior
Utente senior
Posts: 336
Joined: 8 December 2010, 22:06
ROSA: -
OpenMandriva: 2010.2 32bit
Kernel: 3.2.28-nrj-desktop-p
Desktop: kde 4.5.5
country: italy

Re: Montare in automatico partizione fat32 e permessi lett/s

Post by azioga »

il gruppo 46 su mint chi è? come utente ne fai parte?
che permessi ha la root del filesystem che hai montato?
che permessi hanno i file scritti da altre distro?
e che user e gruppo?

controlla sul manuale di mount cosa fanno
umask, fmask, dmask, gid e uid

User avatar
Joker
Utente junior
Utente junior
Posts: 16
Joined: 27 September 2014, 21:26
ROSA: -
OpenMandriva: OpenMandriva 2014 Lx
Kernel: 3.15.10 NRJQL
Desktop: KDE
country: Italy

Re: Montare in automatico partizione fat32 e permessi lett/s

Post by Joker »

Fatta una ricerca su google di umask, fmask, dmask, gid e uid, alla fine (anche se non ho capito molto di permessi, gruppi, proprietari....) ho inserito in /etc/fstab:

Code: Select all

UUID=BFD3-2F2E /dati vfat defaults,umask=0000 0 0
infatti ora i file presenti in /dati hanno permessi per TUTTI:

Code: Select all

[rosa12_lxde_df@localhost ~]$ ls -l /dati/
totale 672
-rwxrwxrwx  1 root root    179 ott  2 17:36 1024.sh*
-rwxrwxrwx  1 root root    182 set 18 12:50 1024.sh~*
-rwxrwxrwx  1 root root 182372 set  5 17:51 3098.pdf*
-rwxrwxrwx  1 root root  45465 ott  3 17:51 AGGIORNARE IL KERNEL SU LINUX UBUNTU.odt*
-rwxrwxrwx  1 root root  17258 ott  3 19:05 Comandi linux.odt*
drwxrwxrwx  4 root root  32768 ott  4 11:12 Documenti/
drwxrwxrwx  2 root root  32768 ott  3 18:05 Download/
drwxrwxrwx  4 root root  32768 ott  3 18:04 Immagini/
drwxrwxrwx  3 root root  32768 ott  3 18:05 ISO/
drwxrwxrwx  2 root root  32768 ott  3 18:01 Musica/
drwxrwxrwx 17 root root  32768 ott  4 11:11 Profilo Firefox/
drwxrwxrwx  9 root root  32768 ott  3 20:18 Profolo Thunderbird/
drwxrwxrwx  2 root root  32768 set  2 19:34 $RECYCLE.BIN/
drwxrwxrwx  2 root root  32768 ott  3 18:01 Video/
drwxrwxrwx  2 root root  32768 set  8 22:05 VintageRockForum/
[rosa12_lxde_df@localhost ~]$ 
per tutte le altre domande che mi hai fatto purtroppo non so come verificare (è un argomento che non conosco).
Comunque ho risolto cosi :D
You'll be praying till next Thursday to
all the gods that you can count.

User avatar
stefano1956
Utente senior
Utente senior
Posts: 385
Joined: 22 May 2012, 15:50
ROSA: Rosa2016.1
OpenMandriva: Oma 4.1 LX
Kernel: 4.9.124
Desktop: kde
country: Italia

Re: [RISOLTO]Montare in automatico partizione fat32 in (rw)

Post by stefano1956 »

Io quando voglio usare sul mio pc (in questo momento lo faccio) una cartella condivisa tra tutti i sistemi installati (al momento ne ho 4: Rosa, OpenMandriva, Mageia e Ubuntu), quando creo gli utenti nelle varie distro sto attento a dare lo stesso nome e a metterli nello stesso ordine, in modo che abbiano lo stesso UID. In questo modo non ho mai avuto problemi di accesso in lettura e scrittura alla partizione condivisa.
Ciao

Post Reply