USB Storage Devices (Italiano)

From ArchWiki

Jump to: navigation, search
Image:Tango-preferences-desktop-locale.png This page (or parts of it) was marked to be translated.
If you speak the original and target languages of the page, feel free to finish the translation. After you have finished the translation, remove the {{translateme}} flag from the document.
i18n
English
Italiano
Español

Questo documento mostra come utilizzare le memory stick USB con Linux. In ogni caso, funziona anche per altre periferiche, come le macchine digitali che agiscono come se fossero periferiche di archiviazione USB

Contents

[edit] Scaricare un Kernel che supporti l'usb storage

Se non utilizzate un kernel realizzato ad-hox da voi stessti, avete già tutto l'occorrente poichè i kernel standard di Arch Linux sono già correttamente configurati. Se invece utilizzate un vostro kernel, assicuratevi che sia stato compilato con il supporto SCSI, SCSI-Disk-Support e usb_storage. Se usate l'ultima versione di udev, sarà necessario solamente collegare la periferica alla porta USB, e il sistema caricherà automaticamente tutti i moduli del kernel necessari. Le versioni più vecchie di udev potrebbero necessitare anche dell'installazione di hotplug o in alternativa, potreste caricare manualmente il modulo:

# modprobe usb-storage
# modprobe sd_mod      (solo per kernel non-SCSI)

[edit] Montare una periferica di memoria USB

Dopo aver inserito lo spinotto nella porta USB, potete montare la periferica da root con

# mount -t vfat /dev/sda1 /mnt/usbstick

Nota: /dev/sda1 è variabile. Se il vostro Hard Disk principale è identificato come /dev/sda1, probabilmente dovrete usare /dev/sdb1 al suo posto. Per capire con certezza a quale device sia collegata la vostra periferica esterna, utilizzate il comando dmesg | grep /dev/sd . Usate inoltre il comando lsusb per verificare che la periferica sia effettivamente riconosciuta dal sistema, se avete a che fare con degli errori.

L'opzione -t specifica il tipo di filesystem. Se la periferica è formattata come fat32, usate il parametro vfat. Di default, una periferica sdx si assume come formattata come fat32, quindi in questo caso questa opzione potrebbe essere omessa.

Note: la cartella dove volete montare la periferica, deve essere già esistente prima che diate il comando di montaggio.

Se usate KDE o GNOME, essi dovrebbero visualizzare automaticamente la periferica inserita sul desktop, quindi non vi sarà necessario montarla manualmente.

Se ottenete un errore del tipo "Error org.freedesktop.DBus.Error.AccessDenied.", provate ad aggiungere il vostro utente al gruppo 'storage':

# gpasswd -a nomeutente storage

[edit] Repartitioning the USB memory

Sometimes the stick is separated in up to four partitions, and Linux can't read anything. To fix this you have to repartition the stick with fdisk. Make sure that there are no files left on the stick (if you used it before in Windows, Mac OS or anywhere else). Type:

# modprobe usb_storage
# fdisk /dev/sda

Delete all available partitions (d and partition number), create a new partition with n (I would suggest you use a single partition), press q to write everything and quit.

Create a filesystem on the stick:

# mkfs.vfat /dev/sda1

If you do not have mkfs.vfat on your system then use pacman to install dosfstools:

# pacman -Sy dosfstools

Now you can mount or unmount it as mentioned above.

[edit] Montare una penna USB come utente normale

Se desiderate che i normali utenti non-root siano abilitati a montare delle penne USB, aggiungete la seguente riga al file /etc/fstab:

/dev/sda1 /mnt/usbstick vfat noauto,user 0 0

potete sostituire /mnt/usbstick con la cartella che preferite.

Personal tools