Pages

Monday, October 7, 2013

Mounting USB Flash Drive in linux ubuntu


Buka terminal Menggunakan

Menu: Applications menu -> Accessories -> Terminal.

Keyboard Shortcut: Ctrl + Alt + T

sudo fdisk -l

hasilnya :

Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+   3647-   3648-  29295616   83  Linux
/dev/sda2       3647+  35266-  31619- 253976577    5  Extended
/dev/sda3          0       -       0          0    0  Empty
/dev/sda4          0       -       0          0    0  Empty
/dev/sda5       3647+  34041-  30395- 244140032   83  Linux
/dev/sda6      34041+  34649-    608-   4881408   82  Linux swap / Solaris
/dev/sda7      34649+  35266-    617-   4953088   83  Linux

Disk /dev/sdb: 1022 cylinders, 61 heads, 62 sectors/track
Warning: The partition table looks like it was made
  for C/H/S=*/63/62 (instead of 1022/61/62).
For this listing I'll assume that geometry.
Units = cylinders of 1999872 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdb1          0+    989-    990-   1933244+   6  FAT16
start: (c,h,s) expected (0,2,12) found (0,2,10)
end: (c,h,s) expected (989,57,56) found (958,62,62)


kemudian ikuti langkah berikut ini

Untuk  NTFS file system:

anda bisa edit file fstab pada terminal.

sudo gedit /etc/fstab

tambahkan pada bagian paling bawah script berikut ini

/dev/sdb1       /media/Data ntfs-3g  defaults  0   0


Untuk  FAT 16/32 file system , anda bisa menjalankan script ini:

sudo mount -t vfat /dev/sdb1 /media/Datas -o uid=1000,gid=100,utf8,dmask=027,fmask=137


Note: Sebelumnya anda harus membuat directory untuk mountingnya :

sudo mkdir /media/Data


kemudian jalankan mountingnya:

sudo mount -a


untuk umountingnya :

sudo umount /media/Data




No comments:

Post a Comment