Mount USB Flashdisk Menggunakan Command Line

Cek partisi USB flashdisk akan di-mount dengan perintah fdisk -l:

naragnu@buras:~$ sudo fdisk -l
[sudo] password for naragnu:
no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000735a2

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 156301311 77899777 5 Extended
/dev/sda5 501760 156301311 77899776 8e Linux LVM

Disk /dev/mapper/buras--vg-root: 78.7 GB, 78701920256 bytes
255 heads, 63 sectors/track, 9568 cylinders, total 153714688 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/buras--vg-root doesn't contain a valid partition table

Disk /dev/mapper/buras--vg-swap_1: 1065 MB, 1065353216 bytes
255 heads, 63 sectors/track, 129 cylinders, total 2080768 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/buras--vg-swap_1 doesn't contain a valid partition table

Disk /dev/sdf: 4009 MB, 4009754624 bytes
32 heads, 63 sectors/track, 3884 cylinders, total 7831552 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7e7c7320

Device Boot Start End Blocks Id System
/dev/sdf1 * 63 7830143 3915040+ b W95 FAT32

hasil yang didapatkan dari perintah fdisk -l, terlihat bahwa alamat flashdisk ada di /dev/sdf1. Langkah berikutnya buat direktori untuk melakukan mount.

naragnu@buras:~$ sudo mkdir /media/flash

setelah itu lakukan mounting flashdisk kita dengan perintah:

naragnu@buras:~$ sudo mount -t vfat /dev/sdf1 /media/flash/

selesai, flashdisk siap anda gunakan. semoga bermanfaat 🙂