LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB 2.0 Flash Drive (http://www.linuxquestions.org/questions/linux-hardware-18/usb-2-0-flash-drive-170978/)

fusee 04-16-2004 01:08 PM

USB 2.0 Flash Drive
 
I've just got a fantastic new ByteStor USB 2.0 Flash Drive for my RH9 (2.4.20-18.9) installation. It appears to work OK, I can mount it, dismount it, and write to it with no problems.

The problem is, it's a 512Mb drive but I can only ever write 1.3Mb to it before I get a "No space left on device" message.

"df -k" shows the following, when the device is filed to capacity-

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 506080 1344 504736 1% /mnt/pen

"cat /etc/fstab" shows the various configs I've tried so far -

# /dev/sda1 /mnt/pen auto user,noauto 0 0
# /dev/sda1 /mnt/pen vfat noatime,auto,users,umask=000 0 0
/dev/sda1 /mnt/pen vfat noauto,user 0 0


Any of you guys have any suggestions with this one? Any help greatly appreciated.

Genesee 04-16-2004 03:47 PM

can't offer much help, but I noticed that the USB Flash HOWTO was very recently updated - may be of some help:

http://www.tldp.org/HOWTO/Flash-Memory-HOWTO/index.html

fusee 04-16-2004 05:17 PM

Thanks for that Genesee.

I finally cracked it (seems so obvious now!), by using mkdosfs which created a filesystem across the entire Pen Drive! The command was -

# mkdosfs -F 32 -n PenDrive -v /dev/sda1

I can now access the full 500Mb of storage. I hope this may be helpful to other people.

Thanks again.

Genesee 04-16-2004 05:46 PM

cool
:cool:

(and thanks for posting your solution)


All times are GMT -5. The time now is 11:45 AM.