Voglio sapere come umountunità USB tramite riga di comando. Sto usando Ubuntu 12.04 LTS a 32 bit.
Voglio sapere come umountunità USB tramite riga di comando. Sto usando Ubuntu 12.04 LTS a 32 bit.
Risposte:
Supponiamo che l'unità USB sia montata su, /media/usbquindi sarebbe sufficiente farlo
sudo umount /media/usb
Supponiamo che il tuo usb sia /dev/sdb1allora potresti anche fare
sudo umount /dev/sdb1
Puoi anche dare un'occhiata alle risposte di una delle mie domande, come smontare tutti i dispositivi USB collegati con un solo comando: Smonta tutti i dischi USB collegati con un solo comando
sudo fdisk -lpuò essere utile se non sai dove è montata un'unità.
umountno uNmount, nel caso in cui qualcun altro si chieda perché il comando non sia riconosciuto.
Puoi anche usare
udisks --unmount /dev/sdb1
che non richiede root.
udisksctl unmount -b /dev/sdb1
Meglio che utilizzare sudoper smontare come root, basta installare il pacchetto pmount ed eseguire:
pumount /media/usb
Come man pumountdice:
NAME
pumount - umount arbitrary hotpluggable devices as normal user
SYNOPSIS
pumount [ options ] device
DESCRIPTION
pumount is a wrapper around the standard umount program which permits
normal users to umount removable devices without a matching /etc/fstab
entry.
pumountsul mio sistema, nessuno nel mio repository di pacchetti da installare.
pmount(motivo per cui pumountnon è stato trovato alcun risultato durante la ricerca nel gestore pacchetti). manpages.ubuntu.com/manpages/xenial/man1/pumount.1.html
man umount?