Sunday 23 October 2011

Flashdisk 16 GB nggak bisa ditulisi

Saya nggak bisa nulis di flashdisk.
Dari list, sudah benar bahwa saya bisa nulis (rwx)

$ ls -l /media/
total 48
drwx------ 24 budi budi 32768 1970-01-01 07:00 BUDI
lrwxrwxrwx 1 root root 6 2011-05-03 19:52 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2009-07-17 22:07 cdrom0
drwxrwxr-x 2 root root 4096 2010-04-01 17:26 DATA
lrwxrwxrwx 1 root root 7 2011-05-03 19:52 floppy -> floppy0
drwxr-xr-x 2 root root 4096 2009-07-17 22:07 floppy0
drwxr-xr-x 2 root root 4096 2010-04-13 14:17 windows

Kalau mbikin file baru, ternyata Read Only file system:
$ touch /media/BUDI/testingz
touch: cannot touch `/media/BUDI 16GB K/testingz': Read-only file system

Solusinya adalah (kecuali hardwarenya nggak stabil karena 16GB) adalah dengan format ulang:

$ sudo umount /media/BUDI
budi@pucung:~$ sudo fdisk -l
Disk /dev/sdb: 16.0 GB, 16047407104 bytes
94 heads, 30 sectors/track, 11114 cylinders
Units = cylinders of 2820 * 512 = 1443840 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18

Device Boot Start End Blocks Id System
/dev/sdb1 3 11115 15667264 c W95 FAT32 (LBA)

budi@pucung:~$ sudo fdisk /dev/sdb

hapus partisi 1, keluar setelah write, masuk fdisk lagi (sekedar biar yakin), bikin partisi 1 sebagai vfat (kodenya 0B). Kalau mau gampang, gunakan cfdisk atau gparted (?)

Format partisi 1 sebagai vfat:
$ sudo mkfs.vfat /dev/sdb1
mkfs.vfat 3.0.7 (24 Dec 2009)

Copot flashdisk dan pasang lagi.

No comments:

Post a Comment