Kamis, 06 September 2012

15.45
mount flashdisk di ubuntu server  

ubuntu # fdisk -l

 Disk /dev/sda: 36.4 GB, 36419584000 bytes
255 heads, 63 sectors/track, 4427 cylinders, total 71132000 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: 0x2ddff28f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63     1959929      979933+  82  Linux swap / Solaris
/dev/sda2         1959930     9799649     3919860    5  Extended
/dev/sda3   *     9799650    71119754    30660052+  83  Linux
/dev/sda5         1959993     3919859      979933+  83  Linux
/dev/sda6         3919923     5879789      979933+  83  Linux
/dev/sda7         5879853     7839719      979933+  83  Linux
/dev/sda8         7839783     9799649      979933+  83  Linux

Disk /dev/sdb: 3869 MB, 3869544448 bytes
255 heads, 63 sectors/track, 470 cylinders, total 7557704 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

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *         128     7557631     3778752    b  W95 FAT32


nah, ketahuan untu flashdisknya ada di /dev/sdb1

 setelah mengetahui partisi hardisk ada di mana, kita buat mountingnya :

# mkdir /media/flashdisku
# mount /dev/sda1 /media/flashdisku



setelah berhasil kita bisa mengecek dengan :

ubuntu # df -h

 Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3              30G   23G  6.5G  78% /
none                  244M  144K  243M   1% /dev
none                   50M  272K   50M   1% /run
none                  5.0M     0  5.0M   0% /run/lock
none                  249M     0  249M   0% /run/shm
/dev/sda5             957M  641M  316M  67% /cache1
/dev/sda6             957M  636M  322M  67% /cache2
/dev/sda7             957M  522M  436M  55% /cache3
/dev/sda8             957M  615M  343M  65% /cache4
/dev/sdb1             3.6G  1.9G  1.8G  53% /media/flashdisku


*** untuk umounting :

ubuntu # umount /dev/sdb1
 
nah dah muncul.. flasdisku dengan kapasitas 4 G... :)

0 comments: