How to Mount an External USB Drive in Debian Linux

104 15

Instructions

Mounting With the Terminal

1

Insert your USB device, then start a terminal session by clicking “Activities” on the GNOME panel, typing “terminal” and clicking the resulting icon.
2

Type “su” followed by the “Enter” key to log in as the root, or administrator, account. Note that terminal commands are case-sensitive and the examples should be entered without the quotes. Type the account's password when prompted, then press the “Enter” key.
3

Type “fdisk -l” and press “Enter” to find the device name of your USB drive. If your drive is 8GB, for example, it will be listed by size as “8004 MB.” A 500GB drive will be listed as “500 GB.” On the same line, just before the size of the drive, you will find the device name. It will look similar to “/dev/sdb/."
4

Type the command “file -s /dev/sdb” and press “Enter” to find the file system of the drive, replacing “/dev/sdb” with the correct device name. The FAT32 file system will be listed after “OEM-ID” as “mkdosfs” and the NTFS file system will be listed as “NTFS.” If “EXT4” is listed in the results of the command, the drive uses the Linux EXT4 file system.
5

Create a mount point for your device by typing “mkdir /mnt/external” and pressing “Enter.” A mount point is simply a directory where the files from your drive will be linked so that you can locate them. The directory name, “external” in the example, can be any name that you would like, just avoid using spaces and remember that the name is case-sensitive.
6

Mount the device with the “mount -t vfat /dev/sdb /mnt/external” command, followed by the “Enter” key. Replace “sdb” and “external” with the appropriate device and directory. Replace “vfat” (used for FAT32 file systems) with “ntfs-3g” for NTFS file systems or “ext4” for EXT4 file systems. To unmount the drive when you are finished, type “umount /dev/sdb” and press “Enter.”

Mounting With the Disk Utility

1

Start typing “Disk Utility” in the “Activities” menu and click the resulting icon.
2

Click on your USB drive, which will be located in the “Peripheral Devices” section of the left pane. Information about the device will be displayed in the right pane.
3

Select the “Mount” option from the “Volumes” section to mount the drive. When prompted, choose “Open in Files” to start the file manager. When you are finished using your drive, you can either click the eject icon in the left pane of the file manager or click “Unmount” in Disk Utility.
Source...

Leave A Reply

Your email address will not be published.