Can not write on an external USB Flash Drive

Asked by Chakib

Hello,

This is probably very simple, sorry about that, I am a new Ubuntu user.

I am using Ubuntu 7.10. I am trying to use an external Flash Drive (4GB). When I try to use it, the system detects it and I can see the contents; however, for some reason it detects it as full. I tried booting into Windows and formatting it in "fat32", but I am still having the same problem. IT shows as 3.7 GB Used and 13.5 MB Free.

I right clicked on it and when to Properties, then I went to the Permissions tab and found that I only have "read only" access. I tried to change it and received a message "The permissions could not be changed"

How can I format the Flash drive and start using it?

Thanks,

Chakib

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
naufal
Solved:
Last query:
Last reply:
Revision history for this message
Riku Eskelinen (kingi89) said :
#1

Hi Chakib, and thanks for your question.

Did you plug it in before logging in? If so, remove the drive and plug it in after you have logged in.

If that doesn't solve the problem for you, please run the following command on your Terminal (Applications » Utilities » Terminal / K » System » Konsole):

mount && echo "--------------------------------------------------" && cat /etc/fstab

And then copy&paste the printed information here.

Revision history for this message
Chakib (chakib007) said :
#2

Hello Rikku, thanks for the help. Unfortunately the problem was not resolved. I tried it again and had the same problem.

Below is the information I received after entering the command:

chakib@Ubuntu01:~$ mount && echo "--------------------------------------------------" && cat /etc/fstab
/dev/sdb2 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw)
/dev/sda1 on /media/sda1 type fuseblk (rw,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
/dev/sdc1 on /media/sdc1 type fuseblk (rw,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
securityfs on /sys/kernel/security type securityfs (rw)
/dev/sdi1 on /media/4GB FLASH type vfat (rw,nosuid,nodev,shortname=mixed,uid=1000,utf8,umask=077,usefree)
--------------------------------------------------
# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
# Entry for /dev/sdb2 :
UUID=8f12da22-56bc-4b7f-8f2c-056ba4499abc / ext3 defaults,errors=remount-ro 0 1
# Entry for /dev/sda1 :
UUID=12C805EFC805D1C1 /media/sda1 ntfs defaults,umask=007,gid=46 0 1
# Entry for /dev/sdc1 :
UUID=CCC628EEC628DA8A /media/sdc1 ntfs defaults,umask=007,gid=46 0 1
# Entry for /dev/sdb1 :
UUID=3a50791a-b1a8-461b-a9f6-c9c8c4c2ea4c none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
chakib@Ubuntu01:~$

Revision history for this message
Riku Eskelinen (kingi89) said :
#3

Could you tell me the output of command (again, run it in Terminal)
ls -lh /media/
?

Revision history for this message
Chakib (chakib007) said :
#4

Here you go.

chakib@Ubuntu01:~$ ls -lh /media/
total 48K
drwx------ 2 chakib root 8.0K 1970-01-01 07:30 4GB FLASH
lrwxrwxrwx 1 root root 6 2008-02-13 04:01 cdrom -> cdrom0
drwxr-xr-x 2 root root 4.0K 2008-02-13 04:01 cdrom0
drwxrwx--- 1 root plugdev 28K 2008-02-25 01:36 sda1
drwxrwx--- 1 root plugdev 8.0K 2008-02-24 19:07 sdc1
chakib@Ubuntu01:~$

Revision history for this message
Riku Eskelinen (kingi89) said :
#5

Ok, thanks.

It seems that you have the ownership of the device. Can you create a file to the disk by running
touch /media/4GB\ FLASH/test.file

You should see file called test.file on your device (/media/4GB FLASH) after running the command above.

Revision history for this message
Chakib (chakib007) said :
#6

Yes, I see the file in it. The challenge is that it is being detected as if most of it is in use, but the flash drive is empty. Right now is detecting 3.3 GB used and the rest free. If I write more than 482MB it says the disk is full.

The permissions are read-only too.

Revision history for this message
Dines683 (dines683) said :
#7

Might seem like a silly question but regarding the the issue with the flash drive appering as full:
have you emptied the recycle/trash can of the flash drive?

Revision history for this message
Chakib (chakib007) said :
#8

Good question.. But yes, I did, and I just did it again.

Revision history for this message
Chakib (chakib007) said :
#9

Just to add, this flash drive was formatted to NTFS in Windows vista, then, I formatted it to fat32 using Windows XP. I just tried another flash drive I have and I have the same problem...

Revision history for this message
Dines683 (dines683) said :
#10

try to type ls -a when you are in the /media/4GB\ FLASH/ directory..it should show you all the contents of the drive

Revision history for this message
Dines683 (dines683) said :
#11

you might wanna use vfat instead... VFAT is an extension to FAT32 that has been used since the mid-90's, you may want to reformat to it

Revision history for this message
Dines683 (dines683) said :
#12

fat32 has an annoying filesize restriction which I believe is 3 gigs.

Revision history for this message
Dines683 (dines683) said :
#13

hmmm..maybe you should just forget the last 2 post's from me. I have read a little more about the subject and now i am not so sure...sorry..

Revision history for this message
Dines683 (dines683) said :
#14
Revision history for this message
Best naufal (musp-student) said :
#15

hello,
try to scan it with any antivirus....
hope this help..

Revision history for this message
Chakib (chakib007) said :
#16

Thanks naufal, that solved my question.

Revision history for this message
naufal (musp-student) said :
#17

Youre welcome..