LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   USB flash drive (https://www.linuxquestions.org/questions/linux-newbie-8/usb-flash-drive-182465/)

crazyking 05-17-2004 10:41 AM

USB flash drive
 
I am a newbie using mandrake 10. I have trouble mounting my usb flash drive.

I have the usb-storage displayed when I type lsmod

When I type fdisk -l, it says the usb drive dont have a partition table
Disk /dev/sda: 132 MB, 132120576 bytes
5 heads, 51 sectors/track, 1011 cylinders
Units = cylinders of 255 * 512 = 130560 bytes
Disk /dev/sda doesn't contain a valid partition table

When I try to mount my usb memorystick, it says
(mount -t vfat /dev/sda /mnt/usbstick)
mount: wrong fs type, bad option, bad superblock on /dev/sda,
or too many mounted file systems

I know my usb drive has fat32 format. Does it equal to vfat in Linux?

Can someone tell me what to do to get my usb flash drive working?
Thank you,

hamish 05-17-2004 11:25 AM

I'm not at my linux box, but as far as I remeber, do this:

#mkdir /mnt/usbstick

then stick in your usb pen drive
go into /etc/fstab and add

/dev/sda /mnt/usbstick auto user,noauto 0 0

$mount /mnt/usbstick

this should work.

Otherwise, do all of that and then:
#mount -t usbfs /dev/sda /mnt/usbstick

If neither of those work, then try /dev/sda1 instead of /dev/sda and if that STILL doesn't work, then you might not have the usbfs module built into your kernel (but I guess you will).

Thanks
Hamish


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