SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
'mount -t vfat /dev/sda1 /mnt/usbstick' is not working.
Error message:
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
You have to make sure you have support for FAT filesystem enabled in the kernel. Which kernel are you using? If it's a 2.6 the you should have something like:
Code:
/dev/sdf1 /mnt/sandisk vfat noauto,user,rw 0 0
in your /etc/fstab if you don't want to have to manually mount it every time. And the directory you are mounting it at has to exist.
You may not have hal support on your system. On my 2.6 system, I find using the uuid number instead of the device to be better because the next time you insert the usb pendrive, it could have a different device number, depending on the other devices plugged in, the order they are plugged in and the port used.
The "user" option will allow the user who matches the "uid=" value to mount the drive as a normal user. The "uid=" value will make the user the owner of the partition when mounting.
Using "users" will allow any user to mount the device. So the choice is yours.
Did you format the pendrive yourself, or is it as it was when you purchased it?
If it is the later, it probably has the the fat16 filesystem, but the partition type byte may have been altered somehow. You could use fdisk to change the type from 83 to 6.
there are some other problems:
1) i can't see any files by opening flash drive from explorer
2) i can write just about 110mb in the flash(not 128, as it used to be)
3) why is it still blinking, when i use 'safely remove hardware'?
I may have missed one of your posts. If you can mount it, then you have the filesystem. Sometimes using "auto" for the filetype, the right one is selected. If you can see files in it, run "mount" by itself and see what filesystem was used.
Code:
/dev/hda5 on /boot type ext3 (rw,acl,user_xattr,debug,acl,user_xattr)
Then you could check the filesystem after umount'ing it.
In this case, I would use "sudo /sbin/fsck.ext3 /dev/hda5". If it said vfat, I would use the fsck.vfat program instead.
Since you are having problems with the device, it probably would be best if you backed up all of the files to your hard drive first. And since you will be doing that, reformatting the filesystem and copying back the files may be the best option.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.