Sunday, June 27, 2010

[Debian] Format USB

Berikut ini adalah panduan dalam membuat partisi pada USB kita cotoh disinih mengunakan USB kingstone 2GB.
Berikut lampirannya :
root@argentum:~# fdisk -l
Disk /dev/sda: 250.0 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0004a1d7

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1912    15358108+   7  HPFS/NTFS
/dev/sda2            1913        4951    24410767+  83  Linux
/dev/sda3            4952       30158   202475227+  83  Linux

Disk /dev/sdb: 2031 MB, 2031091712 bytes
255 heads, 63 sectors/track, 246 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x003c22a7

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         247     1983456+   b  W95 FAT32   ---> posisi USB kita
Partition 1 has different physical/logical endings:
phys=(245, 254, 63) logical=(246, 237, 55)
root@argentum:~# cfdisk /dev/sdb                                          --> gagal tidak tampil window untuk partisi

root@argentum:~# fdisk /dev/sdb                                            ---> kita cek erronya dimana

Command (m for help): m
Command action
a   toggle a bootable flag
b   edit bsd disklabel
c   toggle the dos compatibility flag
d   delete a partition
l   list known partition types
m   print this menu
n   add a new partition
o   create a new empty DOS partition table
p   print the partition table
q   quit without saving changes
s   create a new empty Sun disklabel
t   change a partition's system id
u   change display/entry units
v   verify the partition table
w   write table to disk and exit
x   extra functionality (experts only)

Command (m for help): p

Disk /dev/sdb: 2031 MB, 2031091712 bytes
255 heads, 63 sectors/track, 246 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x003c22a7

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         247     1983456+   b  W95 FAT32
Partition 1 has different physical/logical endings:                        ------->> ini yang bermasalah
phys=(245, 254, 63) logical=(246, 237, 55)

Command (m for help): d                                                             -------->> kita hapus saja
Selected partition 1

Command (m for help): p

Disk /dev/sdb: 2031 MB, 2031091712 bytes
255 heads, 63 sectors/track, 246 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x003c22a7

Device Boot      Start         End      Blocks   Id  System
----->> sudah bersih :D
Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
root@argentum:~# cfdisk /dev/sdb                                              ----->> mulai lagi utility yang tadi :D
(ops tidak telihat apa saja yang kita lakukan :D )

1. Pilih primary dahulu tentukan besarnya berapa (partisi pertama digunakan buat data2 kita) saya masukan 1.5GB

2. pilih pimary ke 2 dengan ukuran sisanya

3. ubah type partisi pertama dengan W95 FAT32 atau ketik (0B) ---> agar terbaca saat kita colok di windows

4. write kedua partisi tadi sdb1 dan 2

5 quit

Disk has been changed.

WARNING: If you have created or modified any
DOS 6.x partitions, please see the cfdisk manual
page for additional information.
root@argentum:~# fdisk -l

Disk /dev/sda: 250.0 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0004a1d7

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1912    15358108+   7  HPFS/NTFS
/dev/sda2            1913        4951    24410767+  83  Linux
/dev/sda3            4952       30158   202475227+  83  Linux

Disk /dev/sdb: 2031 MB, 2031091712 bytes
63 heads, 62 sectors/track, 1015 cylinders
Units = cylinders of 3906 * 512 = 1999872 bytes
Disk identifier: 0x003c22a7

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         750     1464719    b  W95 FAT32
/dev/sdb2             751        1015      517545   83  Linux

root@argentum:~# mke2fs /dev/sdb2                                         --> format dulu yah
mke2fs 1.41.3 (12-Oct-2008)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
129536 inodes, 517544 blocks
25877 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67633152
64 block groups
8192 blocks per group, 8192 fragments per group
2024 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409

Writing inode tables: done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
root@argentum:~# mkdosfs -F 32 -n ADPIT /dev/sdb1                      ---> format lagi
bash: mkdosfs: command not found                                                  ---> ups belum di isntall toolnya :D

root@argentum:~# apt-get install dosfstools

root@argentum:~# mkdosfs -F 32 -n ADPIT /dev/sdb1                     ---> ulang lagi
mkdosfs 3.0.1 (23 Nov 2008)

Selesai deh cabut aja usb nya dan coba colok di windos reff: disinih

carauntuk.com

No comments:

Post a Comment

Recommend Visit