Evidentemente non ci capiamo.
ermastr ha scritto:Si
- Codice: Seleziona tutto
root@darkstar erman # ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Aug 27 15:34 21DE-6E1D -> ../../sdb1
lrwxrwxrwx 1 root root 10 Aug 27 15:31 2DC283C8584572D3 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Aug 27 15:05 42B83E2BB83E1E3B -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 27 15:05 486b7ee4-27ef-4bad-a8f0-fe846e78f6ac -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 27 13:05 f8c62182-e2e5-4ab7-9e0e-0b720fb14191 -> ../../sda3
root@darkstar erman # fdisk -l
Disk /dev/sda: 250.1 GB, 250059350016 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 2055 177532927 88765436+ 7 HPFS/NTFS/exFAT
/dev/sda2 177532928 178994842 730957+ 5 Extended
/dev/sda3 178994843 488397167 154701162+ 83 Linux
/dev/sda5 177532991 178994842 730926 82 Linux swap
Disk /dev/sdc: 320.1 GB, 320072933376 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 63 625137344 312568641 7 HPFS/NTFS/exFAT
Disk /dev/sdb: 4007 MB, 4007624704 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 63 7823654 3911796 b W95 FAT32
fstab:
/dev/sda5 swap swap defaults 0 0
/dev/sda3 / ext4 defaults 1 1
/dev/sda1 /win7 ntfs-3g fmask=111,dmask=000 0 0
/dev/sdb1 /penna vfat fmask=111,dmask=000 0 0
/dev/sdc1 /media/2DC283C8584572D3 ntfs-3g fmask=111,dmask=000 0 0
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
Cosa dovrei vedere da quello che mi hai riportato? Che hai sostituito i device names con gli UUID in fstab?
Beh, non è così. Il comando che ti ho riportato:
- Codice: Seleziona tutto
ls -l /dev/disk/by-uuid/
serve solo a
vedere gli UUID associati ai vari dispositivi attualmente collegati al pc.
Sta a te capire, innanzitutto, a quale device si riferiscono i vari /dev/sdXn (e qui fdisk può aiutare) e poi sostituire in fstab le righe
- Codice: Seleziona tutto
/dev/sdb1 /penna vfat fmask=111,dmask=000 0 0
/dev/sdc1 /media/2DC283C8584572D3 ntfs-3g fmask=111,dmask=000 0 0
con
- Codice: Seleziona tutto
UUID=21DE-6E1D /penna vfat defaults,users,rw,fmask=111,dmask=000 0 0
UUID=2DC283C8584572D3 /media/2DC283C8584572D3 ntfs-3g defaults,users,rw,fmask=111,dmask=000 0 0
In base a quanto hai riportato, dovrebbero essere gli UUID corretti.
Questo non toglie che se /media/2DC283C8584572D3 non esiste, un eventuale mount possa fallire.
In questo modo, dovresti poter montare penna e disco anche da utente, posto che i due mount point esistano e siano accessibili non solo a root.
ermastr ha scritto:Ora fa casino, se apro l'HD si apre la penna e se apro la penna si apre ma né da root né da utente posso scrivere
Se poi smonto la penna non mi permette di montare l'HD
- Codice: Seleziona tutto
root@darkstar erman # ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Aug 27 2011 2DC283C8584572D3 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Aug 27 2011 42B83E2BB83E1E3B -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 27 2011 486b7ee4-27ef-4bad-a8f0-fe846e78f6ac -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 27 16:01 f8c62182-e2e5-4ab7-9e0e-0b720fb14191 -> ../../sda3
Ora sdc1 è sdb1
- Codice: Seleziona tutto
root@darkstar erman # mount /dev/sdb1 /media/2DC283C8584572D3
mount: mount point /media/2DC283C8584572D3 does not exist
Continui ad insistere a voler montare manualmente un dispositivo in una directory non esistente.
Quando lanci mount ed ottieni quell'output è evidente che /media/2DC283C8584572D3
non esiste. Il fatto di indicare una directory sotto /media che abbia come nome l'UUID del disco
non provocherà il montaggio del disco con l'UUID specificato in quella directory. A riprova di questo, prova
- Codice: Seleziona tutto
mount UUID=2DC283C8584572D3 -o defaults,rw,umask=0000 /mnt/tmp
e vedrai che riuscirai a montare il disco (/mnt/tmp di solito è già esistente).
PS: usa i tag code per riportare output di comandi/spezzoni di codice (come ho fatto io nelle parti che ho citato). Altrimenti i post diventano lunghi e poco leggibili.