However, if you’re using older version of Linux, or using UNIX operating system, or your Linux distro installation unable to detect and mount the USB storage device automatically, then you will have to manually install and mount the USB drive.
To manually mount a USB disk or USB drive or USB device in Linux or UNIX:
- Login as root. You can use the su command to switch to root user.
- Create a folder /mnt/USB with the command: mkdir /mnt/USB
- Add the following line in the file /etc/fstab (fstab is the file that tells Linux where to mount the various devices, and thus simplifying the mount command):
/dev/sda1 /mnt/USB auto noauto,owner,kuzu 0 0
Note: The “auto” on the above line means auto detection of filesystem. If your system unable to determine the filesystem type, change it accordingly to the USB drive’s filesystem (e.g. vfat or ntfs or ext2 or ext3).
- Mount the USB storage device with the following command: mount /dev/sda1
Without the need modifying fstab (step 3), you can also straight away issue the mount command (step 4) with the following syntax:
mount /dev/sda1 /mnt/USB
If you know the filesystem of the USB drive or the system unable to determine the correct filesystem, the -t option can be used to the filesystem type of the USB device:
mount -t vfat /dev/sda1 /mnt/usb (for vFAT filesystem)
mount -t ntfs /dev/sda1 /mnt/usb (for NTFS filesystem)
Sometimes, the USB drive or USB storage device is detected by the system but been assigned a different device name from sda1. If so, the correct device name need to be determined by viewing and OS log file. Usually the Linux and UNIX boot and log message is stored in /var/log/messages, and you can view the log messages with the following commands:
tail -f /var/log/messages
Check for the name of the device that appears after operating system detects the USB devices.
After using the USB disk, remember to unmount the USB drive with the following command to avoid any possible loss to the data or changes and risk messing up your partition.
Configure Gnome to automatically detect, install and mount USB drive
If you’re using Gnome yet unable to automatically detect and mount USB drive for usage, a few packages needed to be install. The packages to install are dbus, hald and Gnome-Volume-Manager. After installing these packages, configure dbus and hald setup to run via init scripts. Then in Gnome, some configuration has to be done. Click on the ‘Desktop’ menu, then go to ‘Preferences’, and then to ‘Removable Drives and Media’. Configure the settings to your liking. Once you plug-in a usb drive, an icon for the drive will appear on the desktop. Other possible setting is to have Gnome opens a window showing the contents of the USB drive.
Hata hivyo, kama wewe ni kutumia toleo la zamani la Linux, au kutumia UNIX mfumo wa uendeshaji, au yako Linux distro ufungaji haiwezi kugundua na mount USB kuhifadhi kifaa moja kwa moja, basi utakuwa na manually kufunga na mount USB gari. Ili manually mount USB disk au USB drive au USB kifaa katika Linux au UNIX: - Login kama mzizi. Unaweza kutumia amri su kubadili kwa mtumiaji mzizi. "Kupitia ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Msd"" na ""Sd."""" Kama mfumo wako haiwezi kuamua aina ya filesystem, kubadilisha ipasavyo kwa USB gari filesystem (kwa mfano, VFAT (NtF) au EXT2 "Kama unajua ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB"" au ""USB""."""" Kama hivyo, jina sahihi kifaa haja ya kuamua kwa kuangalia na OS faili log. Kwa kawaida, ujumbe wa boot na log wa Linux na UNIX huhifadhiwa katika varlogs na unaweza kuona ujumbe wa log kwa amri zifuatazo: tail-fvarlogs, kuangalia jina la kifaa kinachoonekana baada ya mfumo wa uendeshaji kugundua vifaa vya USB. Baada ya kutumia USB diski, kumbuka unmount USB gari na amri ifuatayo ili kuepuka hasara yoyote ya data au mabadiliko na hatari ya messing up sehemu yako. Configure Gnome kwa moja kwa moja kugundua, kufunga na mount USB gari Kama wewe ni kutumia Gnome bado haiwezi moja kwa moja kugundua na mount USB gari kwa ajili ya matumizi, vifurushi chache zinahitajika kuwa imewekwa. Vifurushi vya kufunga ni dbus, hald na Gnome-Volume-Manager. Baada ya kufunga vifurushi hivi, configure dbus na hald kuanzisha kukimbia kupitia init scripts. Kisha katika Gnome, baadhi ya usanidi ina kufanyika. Bonyeza kwenye <unk>Desktop<unk> orodha, kisha kwenda <unk>Preferences<unk>, na kisha <unk>Removable Drives and Media<unk>. Weka mipangilio kwa upendezi wako. Mara baada ya kuunganisha katika gari USB, icon kwa ajili ya gari itaonekana kwenye desktop. Mpangilio mwingine unaowezekana ni kuwa na Gnome hufungua dirisha linaloonyesha yaliyomo kwenye gari la USB.