Mengembalikan USB Flash Drive ke posisi awal di Linux dengan perintah fdisk
Check directory USB flash drive dengan perintah fdisk -l
~ $ sudo fdisk -l
Disk /dev/sdb: 132 MB, 132120576 bytes
terlihat di atas USB flash drive terdeteksi sebagai /dev/sdb
lalu jalankan perintah fdisk /dev/sdb
~ $ sudo fdisk /dev/sdb
Command (m for help):
ketik m untuk melihat daftar command
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)
ketik p untuk melihat daftar partisi
Command (m for help): p
Disk /dev/sdb: 132 MB, 132120576 bytes
5 heads, 51 sectors/track, 1011 cylinders
Units = cylinders of 255 * 512 = 130560 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 1011 128877 83 Linux
Hapus semua partisi dengan ketik d
Command (m for help): d
Selected partition 1
Ketik n untuk add partisi lalu pilih p untuk primary partition
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1011, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1011, default 1011):
Using default value 1011
Default dari pembuatan partisi ini adalah ext3,
Ketik t lalu ketik b di halaman konfirmasi HEX code untuk merubahnya menjadi FAT32
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): b
Changed system type of partition 1 to b (W95 FAT32)
simpan perubahan dengan mengetikan w
Command (m for help): w
The partition table has been altered!
kini check USB flash drive anda dengan perintah fdisk -l
~ $ sudo fdisk -l
Device Boot Start End Blocks Id System
/dev/sdb1 1 1011 128877 b W95 FAT32
terlihat System sudah menjadi W95 FAT32.
kini format USB flash drive dengan perintah mkfs.vfat /dev/sdb1
~$ sudo mkfs.vfat /dev/sdb1
mkfs.vfat 2.11 (12 Mar 2005)
selesai!!